Learn about Centmin Mod LEMP Stack today
Become a Member

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:
    12:29 AM
    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. RoldanLT

    RoldanLT Well-Known Member

    3,975
    965
    113
    May 25, 2014
    Phillipines
    Ratings:
    +1,329
    Local Time:
    4:29 PM
    1.11
    10.2
    Using Centminmod? Looks like not.
     
  3. sophatvathana

    sophatvathana New Member

    6
    0
    1
    Oct 25, 2014
    Pursat Cambodia
    Ratings:
    +0
    Local Time:
    12:29 AM
    latest
    i used ubuntu and install nginx front of apache2 ...
     
  4. RoldanLT

    RoldanLT Well-Known Member

    3,975
    965
    113
    May 25, 2014
    Phillipines
    Ratings:
    +1,329
    Local Time:
    4:29 PM
    1.11
    10.2
    Wrong Forum then :D
     
  5. RoldanLT

    RoldanLT Well-Known Member

    3,975
    965
    113
    May 25, 2014
    Phillipines
    Ratings:
    +1,329
    Local Time:
    4:29 PM
    1.11
    10.2
  6. sophatvathana

    sophatvathana New Member

    6
    0
    1
    Oct 25, 2014
    Pursat Cambodia
    Ratings:
    +0
    Local Time:
    12:29 AM
    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:
    12:29 AM
    latest
  8. eva2000

    eva2000 Administrator Staff Member

    30,895
    6,907
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,402
    Local Time:
    6:29 PM
    Nginx 1.13.x
    MariaDB 5.5
  9. sophatvathana

    sophatvathana New Member

    6
    0
    1
    Oct 25, 2014
    Pursat Cambodia
    Ratings:
    +0
    Local Time:
    12:29 AM
    latest
  10. eva2000

    eva2000 Administrator Staff Member

    30,895
    6,907
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,402
    Local Time:
    6:29 PM
    Nginx 1.13.x
    MariaDB 5.5
    /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