How To Disable 403 Forbidden Nginx 1.0.11 On TRIOND
With this configuration XenForo’s friendly URLs work perfectly, as well as external access is cut off for some directories like libraries and internal_data.
server { listen [::]:80; server_name example.com www.example.com; root /var/www/example.com; index index.html index.htm index.php; access_log /var/www/logs/example.com.access.log; location / { try_files $uri $uri/ /index.php?$uri&$args; } location ~ /(internal_data|library) { internal; } location ~ \.php$ { fastcgi_pass unix:/tmp/php.socket; fastcgi_index index.php; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; include fastcgi_params; } }
You've added this content to your favorites.
Post your comment
Load More