Internet Explorer is not supported. Please upgrade to a more modern browser.
I am encountering a persistent issue after updating my NamelessMC installation. Initially, I received an "Internal Server Error" (500). Through troubleshooting, I've identified that commenting out the line # Prevent Apache from removing the Authorization header, we need to check it for the API.
followed by CGIPassAuth On
in my .htaccess
file resolves the "Internal Server Error".
However, when this line is commented out, the website loads but displays the "Sorry! Something went wrong while loading the page. Please contact the administrator." message, indicating an internal application error.
It seems there might be an incompatibility or a change in how the API authorization headers are handled in the updated version, potentially related to the CGIPassAuth On
directive.
My current .htaccess
file is as follows:
Options +FollowSymLinks
<IfModule mod_negotiation.c>
Options -MultiViews
</IfModule>
Options -Indexes
RewriteEngine on
IndexIgnore *
<IfModule mod_headers.c>
Header append X-FRAME-OPTIONS "SAMEORIGIN"
</IfModule>
RewriteCond %{REQUEST_URI}::$1 ^(.*?/)(.*)::\2$
RewriteRule ^(.*)$ - [E=BASE:%1]
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^avatar/([^/]+)/([^/]+)/(f|l|r|b|front|left|right|back)/?$ %{ENV:BASE}core/avatar/face.php?u=$1&s=$2&v=$3
RewriteRule ^avatar/([^/]+)/(f|l|r|b|front|left|right|back)/?$ %{ENV:BASE}core/avatar/face.php?u=$1&v=$2
RewriteRule ^avatar/([^/]+)/([^/]+)/?$ %{ENV:BASE}core/avatar/face.php?u=$1&s=$2
RewriteRule ^avatar/([^/]+)/?$ %{ENV:BASE}core/avatar/face.php?u=$1 [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ %{ENV:BASE}index.php?route=/$1 [NC,L,QSA]
# Prevent access to template files
<files "*.tpl">
Deny from all
</files>
# Prevent access to GeoIP database
<files "*.mmdb">
Deny from all
</files>
# Prevent access to log files
<files "*.log">
Deny from all
</files>
# Prevent Apache from removing the Authorization header, we need to check it for the API.
CGIPassAuth On
Could you please investigate this issue? It seems the handling of API authorization in the updated version might need review, especially concerning the .htaccess
configuration.
Thank you for your time and assistance.
The update broke my website, it is unusable.
Received | Given | |
---|---|---|
1 | 0 | |
0 | 0 | |
0 | 0 | |
0 | 0 | |
0 | 0 | |
0 | 0 |