Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- server {
- listen x.x.x.x:80;
- server_name forum.co.uk www.forum.co.uk;
- root /var/www/forum.co.uk/web;
- index index.html index.htm index.php index.cgi index.pl index.xhtml;
- error_page 400 /error/400.html;
- error_page 401 /error/401.html;
- error_page 403 /error/403.html;
- error_page 404 /error/404.html;
- error_page 405 /error/405.html;
- error_page 500 /error/500.html;
- error_page 502 /error/502.html;
- error_page 503 /error/503.html;
- error_log /var/log/ispconfig/httpd/forum.co.uk/error.log;
- access_log /var/log/ispconfig/httpd/forum.co.uk/access.log combined;
- ## Disable .htaccess and other hidden files
- location ~ /\. {
- deny all;
- access_log off;
- log_not_found off;
- }
- location = /favicon.ico {
- log_not_found off;
- access_log off;
- }
- location = /robots.txt {
- allow all;
- log_not_found off;
- access_log off;
- }
- location /stats {
- index index.html index.php;
- auth_basic "Members Only";
- auth_basic_user_file /var/www/clients/clientx/web5/.htpasswd_stats;
- }
- location ~ \.php$ {
- try_files $uri =404;
- include /etc/nginx/fastcgi_params;
- fastcgi_pass unix:/var/lib/php5-fpm/web5.sock;
- fastcgi_index index.php;
- fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
- fastcgi_param PATH_INFO $fastcgi_script_name;
- fastcgi_intercept_errors on;
- }
- location ~* ^.+\.(jpg|jpeg|gif|png)$ {
- access_log off;
- expires 30d;
- }
- set_real_ip_from 204.93.240.0/24;
- set_real_ip_from 204.93.177.0/24;
- set_real_ip_from 199.27.128.0/21;
- set_real_ip_from 173.245.48.0/20;
- set_real_ip_from 103.22.200.0/22;
- set_real_ip_from 141.101.64.0/18;
- set_real_ip_from 108.162.192.0/18;
- real_ip_header CF-Connecting-IP;
- client_max_body_size 28M;
- client_body_buffer_size 128k;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement