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:
    2:03 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. RoldanLT

    RoldanLT Well-Known Member

    3,829
    929
    113
    May 25, 2014
    Phillipines
    Ratings:
    +1,258
    Local Time:
    5:03 AM
    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:
    2:03 PM
    latest
    i used ubuntu and install nginx front of apache2 ...
     
  4. RoldanLT

    RoldanLT Well-Known Member

    3,829
    929
    113
    May 25, 2014
    Phillipines
    Ratings:
    +1,258
    Local Time:
    5:03 AM
    1.11
    10.2
    Wrong Forum then :D
     
  5. RoldanLT

    RoldanLT Well-Known Member

    3,829
    929
    113
    May 25, 2014
    Phillipines
    Ratings:
    +1,258
    Local Time:
    5:03 AM
    1.11
    10.2
  6. sophatvathana

    sophatvathana New Member

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

    eva2000 Administrator Staff Member

    29,016
    6,584
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +9,774
    Local Time:
    7:03 AM
    Nginx 1.13.x
    MariaDB 5.5
  9. sophatvathana

    sophatvathana New Member

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

    eva2000 Administrator Staff Member

    29,016
    6,584
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +9,774
    Local Time:
    7:03 AM
    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