Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #######################################
- # Some essential stuff
- #######################################
- user apache;
- worker_processes 6;
- error_log logs/error.log;
- #error_log logs/error.log notice;
- #error_log logs/error.log info;
- pid logs/nginx.pid;
- events
- {
- worker_connections 10000;
- use epoll;
- }
- #################################################
- # Start of the webserver handling
- #################################################
- http
- {
- include mime.types;
- default_type application/octet-stream;
- #####################################################
- # Access logging disabled, is it needed?
- #####################################################
- access_log off;
- #####################################################
- # Some more standard stuff
- #####################################################
- sendfile on;
- tcp_nopush on;
- tcp_nodelay on;
- keepalive_timeout 180;
- server_name_in_redirect off;
- server_tokens off;
- ##################################
- # The Gzip compression
- ##################################
- gzip on;
- gzip_disable "MSIE [1-6].(?!.*SV1)";
- gzip_vary on;
- gzip_proxied any;
- gzip_comp_level 3;
- gzip_buffers 32 8k;
- gzip_http_version 1.1;
- gzip_types text/plain text/css application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript;
- ##############################################
- # Some more shit
- ##############################################
- client_body_buffer_size 256k;
- client_body_in_file_only on;
- client_body_timeout 60s;
- client_header_buffer_size 256k;
- client_header_timeout 20s;
- client_max_body_size 128m;
- connection_pool_size 256;
- directio 4m;
- ignore_invalid_headers on;
- large_client_header_buffers 4 256k;
- output_buffers 4 256k;
- postpone_output 1460;
- request_pool_size 32k;
- send_timeout 60s;
- reset_timedout_connection on;
- open_file_cache max=5000 inactive=30s;
- open_file_cache_valid 120s;
- open_file_cache_min_uses 2;
- open_file_cache_errors off;
- open_log_file_cache max=1024 inactive=30s min_uses=2;
- server
- {
- listen 80;
- server_name fivestargamerz.com;
- rewrite ^/(.*) http://www.fivestargamerz.com/$1 permanent;
- }
- ######################################################
- # http://www.fivestargamerz.com - Main handler
- ######################################################
- server
- {
- listen 80;
- server_name www.fivestargamerz.com;
- #access_log logs/host.access.log main;
- root /home/fivestar/domains/fivestargamerz.com/public_html;
- index index.php index.html index.htm;
- error_page 500 502 503 504 /503.html;
- #####################################################################
- # Main access point
- #####################################################################
- location /
- {
- rewrite ^/((urllist|sitemap_).*\.(xml|txt)(\.gz)?)$ /vbseo_sitemap/vbseo_getsitemap.php?sitemap=$1 last;
- try_files $uri $uri/ @vbseo;
- }
- location ~* \.(3gp|gif|jpg|jpeg|png|ico|wmv|avi|asf|asx|mpg|mpeg|mp4|pls|mp3|mid|wav|swf|flv|txt|js|css|exe|zip|tar|rar|tgz|bz2|uha|7z|doc|docx|xls|xlsx|pdf|iso)$
- {
- add_header Pragma public;
- add_header Cache-Control "public, must-revalidate, proxy-revalidate";
- access_log off;
- expires 30d;
- break;
- }
- ##########################################################
- # Secure Sysinfo Folder
- ##########################################################
- location ~ /sysinfo/index.php
- {
- auth_basic "System Info";
- auth_basic_user_file /home/fivestar/domains/fivestargamerz.com/public_html/sysinfo/.htpasswd;
- fastcgi_pass unix:/opt/shared/php-fpm.sock;
- fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
- include fastcgi_params;
- }
- ##########################################################
- # Secure Xcache Folder
- ##########################################################
- location ~ /xcacheadmin/index.php
- {
- auth_basic "Xcache Control";
- auth_basic_user_file /home/fivestar/domains/fivestargamerz.com/public_html/sysinfo/.htpasswd;
- fastcgi_pass unix:/opt/shared/php-fpm.sock;
- fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
- include fastcgi_params;
- }
- ##########################################################
- # Secure Memcached Folder
- ##########################################################
- location ~ /memcached/index.php
- {
- auth_basic "MemCache Control";
- auth_basic_user_file /home/fivestar/domains/fivestargamerz.com/public_html/sysinfo/.htpasswd;
- fastcgi_pass unix:/opt/shared/php-fpm.sock;
- fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
- include fastcgi_params;
- }
- location @vbseo
- {
- try_files $uri $uri/ /vbseo.php?$args;
- fastcgi_pass unix:/opt/shared/php-fpm.sock;
- fastcgi_param SCRIPT_FILENAME $document_root/vbseo.php;
- fastcgi_param QUERY_STRING vbseourl=$request_uri;
- include fastcgi_params;
- internal;
- }
- location = /inlinemod.php
- {
- fastcgi_pass unix:/opt/shared/php-fpm.sock;
- fastcgi_param SCRIPT_FILENAME $document_root/vbseo.php;
- fastcgi_param QUERY_STRING vbseourl=$request_uri;
- include fastcgi_params;
- }
- ##########################################################################
- # PHP files handled here
- ##########################################################################
- location ~ \.php$
- {
- try_files $uri =404;
- fastcgi_pass unix:/opt/shared/php-fpm.sock;
- fastcgi_index index.php;
- fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
- include fastcgi_params;
- }
- location /pinger
- {
- access_log off;
- fastcgi_pass unix:/opt/shared/php-fpm.sock;
- fastcgi_index index.php;
- fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
- include fastcgi_params;
- }
- ##########################################
- # Deny .htaccess files
- ##########################################
- location ~ /\.ht
- {
- deny all;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement