Discover Centmin Mod today
Register Now

Xenforo Xenforo Friendly Urls Stopped Working

Discussion in 'Forum software usage' started by Itworx4me, Mar 21, 2024.

  1. Itworx4me

    Itworx4me Active Member

    316
    29
    28
    Mar 14, 2017
    Ratings:
    +52
    Local Time:
    11:09 PM
    Nginx 1.27.4
    MariaDB 10.6.21
    Today for some reason my xenforo friendly urls stopped working. Here is my nginx config:
    Code (Text):
    location / {
         index index.php index.html index.htm;
         try_files $uri $uri/ /index.php?$uri&$args;
    }
    
    #location /admin.php {
        #auth_basic "Private";
        #auth_basic_user_file /usr/local/nginx/conf/htpasswd_admin_php;
            #include /usr/local/nginx/conf/php.conf;
            #allow ;
            #allow ;
            #deny all;
    #}
    
    location /install/data/ {
         internal;
    }
    
    location /install/templates/ {
         internal;
    }
    
    location /internal_data/ {
         internal;
    }
    
    location /library/ {
            internal;
    }
    
    # xenforo 2 uncomment / remove hash from next 3 lines
    location /src/ {
         internal;
    }

    They were working yesterday but not today. They give a 404 not found error. I am at a loss as to why this happened. Any help would be much appreciated.

    Thanks,
    Itworx4me

     
  2. eva2000

    eva2000 Administrator Staff Member

    55,417
    12,256
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,837
    Local Time:
    4:09 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    Nginx rules won't suddenly not work usually. Probably something on Xenforo side or missing files or incorrect file permissions? Tried Xenforo admin file integrity check?
     
  3. Itworx4me

    Itworx4me Active Member

    316
    29
    28
    Mar 14, 2017
    Ratings:
    +52
    Local Time:
    11:09 PM
    Nginx 1.27.4
    MariaDB 10.6.21
    Screenshot 2024-03-21 194036.png

    All files accounted for.

    I ran these command to make sure before posting this issue here:
    Code (Text):
    find /home/nginx/domains/newdomain.com/public/ -type f -print0 | xargs -0 chmod 0644
    find /home/nginx/domains/newdomain.com/public/ -type d -print0 | xargs -0 chmod 0755
    find /home/nginx/domains/newdomain.com/public/internal_data/ -type f -print0 | xargs -0 chmod 0777
    find /home/nginx/domains/newdomain.com/public/data/ -type f -print0 | xargs -0 chmod 0777
    find /home/nginx/domains/newdomain.com/public/internal_data/ -type d -print0 | xargs -0 chmod 0777
    find /home/nginx/domains/newdomain.com/public/data/ -type d -print0 | xargs -0 chmod 0777
    chmod 0755 /home/nginx/domains/newdomain.com/public
     
    Last edited: Mar 22, 2024
  4. eva2000

    eva2000 Administrator Staff Member

    55,417
    12,256
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,837
    Local Time:
    4:09 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    After accessing friendly urls with 404 not found, so a nginx service restart to flush/write nginx log buffer to disk and then check your Nginx access and error logs for clues Centmin Mod Configuration Files - CentminMod.com LEMP Nginx web stack for CentOS