1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

nginx config not working for xenforo

Discussion in 'Installation, Upgrade, and Import Support' started by Luxus, Feb 20, 2013.

  1. Luxus

    Luxus Well-Known Member

    I have nginx set and running for Joomla on localhost windows environment. However I can't seem to get nginx to work with xenforo. Here is my vhosts file for xenforo:

    server {
        server_name  localhost;
        root home/xenforo;
        index   index.php index.html;
        access_log  home/xenforo.access.log; 
        location / {
            try_files $uri $uri/ /index.php?$uri&$args;
            index index.php index.html;
        location ~ /(internal_data|library) {
        location ~ \.php$ {
            try_files $uri /index.php
            fastcgi_param   SCRIPT_FILENAME $document_root$fastcgi_script_name;
            fastcgi_index index.php;
            include         fastcgi_params;
    Please help.
  2. Jarod

    Jarod Active Member


    Can you try : root /home/xenforo; not root home/xenforo;
  3. Luxus

    Luxus Well-Known Member

    Still not working. And there are no error messages. Is it possible to debug this?
  4. Luxus

    Luxus Well-Known Member

    Oh I think I know the issue. My forum isn't on localhost (joomla is), but on a subdomain. How do I enter a subdomain in the server_name line without getting a couldn't find server message?

    Edit: Never mind, I had a typo.

Share This Page