Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- server {
- listen *:80;
- if ( $is_bot ) {
- return 444;
- }
- more_set_headers 'Server: my-server';
- server_name die-kellerkinder.eu www.die-kellerkinder.eu;
- root /var/www/die-kellerkinder.eu/web/;
- index index.html index.htm index.php index.cgi index.pl index.xhtml;
- error_log /var/log/ispconfig/httpd/die-kellerkinder.eu/error.log;
- access_log /var/log/ispconfig/httpd/die-kellerkinder.eu/access.log combined buffer=32k;
- location ~ /\.(?!well-known/acme-challenge/) {
- 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/client1/web4/web/stats/.htpasswd_stats;
- }
- location ^~ /awstats-icon {
- alias /usr/share/awstats/icon;
- }
- location ~ \.php$ {
- try_files /de0d9873ff9f0930cf019a30c4b944d6.htm @php;
- }
- location @php {
- try_files $uri =404;
- include /etc/nginx/fastcgi_params;
- fastcgi_pass unix:/var/lib/php5-fpm/web4.sock;
- fastcgi_index index.php;
- fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
- fastcgi_intercept_errors on;
- fastcgi_buffer_size 128k;
- fastcgi_buffers 256 16k;
- fastcgi_busy_buffers_size 256k;
- fastcgi_temp_file_write_size 256k;
- fastcgi_read_timeout 3000;
- }
- location /webmail {
- root /var/www/;
- index index.php index.html index.htm;
- location ~ ^/webmail/(.+\.php)$ {
- try_files $uri =404;
- root /var/www/;
- fastcgi_pass 127.0.0.1:9000;
- fastcgi_index index.php;
- fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
- include /etc/nginx/fastcgi_params;
- fastcgi_buffer_size 128k;
- fastcgi_buffers 256 4k;
- fastcgi_busy_buffers_size 256k;
- fastcgi_temp_file_write_size 256k;
- fastcgi_intercept_errors on;
- }
- location ~* ^/webmail/(.+\.(jpg|jpeg|gif|css|png|js|ico|html|xml|txt))$ {
- root /var/www/;
- }
- }
- location / {
- try_files $uri $uri/ /index.html /index.php?$args;
- }
- location ~* \.(jpg|jpeg|png|gif|ico|pdf|woff|css|js)$ {
- expires 7d;
- add_header Cache-Control public;
- }
- pagespeed RewriteLevel CoreFilters;
- pagespeed EnableFilters collapse_whitespace,insert_dns_prefetch,move_css_to_head,move_css_above_scripts,rewrite_style_attributes,defer_javascript,insert_image_dimensions,sprite_images,prioritize_critical_css,inline_google_font_css,lazyload_images;
- pagespeed Disallow *wp-admin/*;
- pagespeed Disallow *wp-login.php*;
- location ~ "\.pagespeed\.([a-z]\.)?[a-z]{2}\.[^.]{10}\.[^.]+" {
- add_header "" "";
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement