Want more timely Centmin Mod News Updates?
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:
    11:22 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 Premium Member Premium Member

    4,255
    1,034
    113
    May 25, 2014
    Ratings:
    +1,486
    Local Time:
    2:22 PM
    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:
    11:22 PM
    latest
    i used ubuntu and install nginx front of apache2 ...
     
  4. rdan

    rdan Premium Member Premium Member

    4,255
    1,034
    113
    May 25, 2014
    Ratings:
    +1,486
    Local Time:
    2:22 PM
    Mainline
    10.2
    Wrong Forum then :D
     
  5. rdan

    rdan Premium Member Premium Member

    4,255
    1,034
    113
    May 25, 2014
    Ratings:
    +1,486
    Local Time:
    2:22 PM
    Mainline
    10.2
  6. sophatvathana

    sophatvathana New Member

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

    eva2000 Administrator Staff Member

    36,012
    7,898
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +12,179
    Local Time:
    4:22 PM
    Nginx 1.15.x
    MariaDB 5.5/10.x
  9. sophatvathana

    sophatvathana New Member

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

    eva2000 Administrator Staff Member

    36,012
    7,898
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +12,179
    Local Time:
    4:22 PM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    /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
..