Learn about Centmin Mod LEMP Stack today
Become a Member

Xenforo Xenforo Friendly Urls Stopped Working

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

  1. Itworx4me

    Itworx4me Active Member

    289
    27
    28
    Mar 14, 2017
    Ratings:
    +47
    Local Time:
    2:00 AM
    Nginx 1.25.X
    MariaDB 10.6.X
    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

    51,616
    11,933
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,420
    Local Time:
    7:00 PM
    Nginx 1.25.x
    MariaDB 10.x
    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

    289
    27
    28
    Mar 14, 2017
    Ratings:
    +47
    Local Time:
    2:00 AM
    Nginx 1.25.X
    MariaDB 10.6.X
    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

    51,616
    11,933
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,420
    Local Time:
    7:00 PM
    Nginx 1.25.x
    MariaDB 10.x
    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