Welcome to Centmin Mod Community
Register Now

Xenforo How To fix 404 error Nginx in Xenforo??

Discussion in 'Forum software usage' started by sophatvathana, Oct 25, 2014.

  1. sophatvathana

    sophatvathana New Member

    6
    0
    1
    Oct 25, 2014
    Pursat Cambodia
    Ratings:
    +0
    Local Time:
    1:35 PM
    latest
    I have install nginx front of apache2 and make rewrite for xenforo .. but, it's work only homepage (index.php) and when i click to read threads or other pages i get 404 Not found .. please help me please ..thank you..

     
  2. rdan

    rdan Well-Known Member

    5,446
    1,408
    113
    May 25, 2014
    Ratings:
    +2,201
    Local Time:
    5:35 AM
    Mainline
    10.2
    Using Centminmod? Looks like not.
     
  3. sophatvathana

    sophatvathana New Member

    6
    0
    1
    Oct 25, 2014
    Pursat Cambodia
    Ratings:
    +0
    Local Time:
    1:35 PM
    latest
    i used ubuntu and install nginx front of apache2 ...
     
  4. rdan

    rdan Well-Known Member

    5,446
    1,408
    113
    May 25, 2014
    Ratings:
    +2,201
    Local Time:
    5:35 AM
    Mainline
    10.2
    Wrong Forum then :D
     
  5. rdan

    rdan Well-Known Member

    5,446
    1,408
    113
    May 25, 2014
    Ratings:
    +2,201
    Local Time:
    5:35 AM
    Mainline
    10.2
  6. sophatvathana

    sophatvathana New Member

    6
    0
    1
    Oct 25, 2014
    Pursat Cambodia
    Ratings:
    +0
    Local Time:
    1:35 PM
    latest
    This Nginx i have config
    Code:
    server {
            listen   80;
            server_name name.com ;
    #rewrite ^/(.*) http://name.com/$1 permanent;
            root /var/www/bundle;
            index index.php index.html index.htm;
    location  / {
          proxy_pass        http://backend;
          include   /etc/nginx/proxy.conf;
          try_files $uri $uri/ /index.php?$uri&$args;
    
            }
    location ~ ^/(internal_data|library)/(.*)$ {
                internal;
            }
    location ~ \.php$ {
    
          proxy_pass  http://backend;
         include     /etc/nginx/proxy.conf;
    }
    location @apache {
          proxy_pass  http://backend;
          include     /etc/nginx/proxy.conf;
      }
      log_not_found off;
    # error_page 404 403 = @apache;
      location ~ /\.ht {
          deny  all;
      }
     
  7. sophatvathana

    sophatvathana New Member

    6
    0
    1
    Oct 25, 2014
    Pursat Cambodia
    Ratings:
    +0
    Local Time:
    1:35 PM
    latest
  8. eva2000

    eva2000 Administrator Staff Member

    54,519
    12,211
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,780
    Local Time:
    7:35 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
  9. sophatvathana

    sophatvathana New Member

    6
    0
    1
    Oct 25, 2014
    Pursat Cambodia
    Ratings:
    +0
    Local Time:
    1:35 PM
    latest
  10. eva2000

    eva2000 Administrator Staff Member

    54,519
    12,211
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,780
    Local Time:
    7:35 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    /threads and /forums are xenforo default routes you'd need to ask on xenforo support forums see Route Filters | XenForo
     
    Last edited: Oct 26, 2014