Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- server {
- listen 80 default_server;
- listen [::]:80 default_server;
- server_name _;
- root /home/admin/web/vestahost.example.com/public_html;
- index index.php index.html index.htm;
- access_log /var/log/nginx/domains/vestahost.example.com.log combined;
- access_log /var/log/nginx/domains/vestahost.example.com.bytes bytes;
- error_log /var/log/nginx/domains/vestahost.example.com.error.log error;
- location / {
- error_page 404 = /404.php;
- error_page 500 501 502 503 504 /5xx.htm;
- location / {
- rewrite ^/robots.txt$ /robots.php;
- rewrite ^/sitemap.xml$ /sitemap.php;
- rewrite ^/yandex_(.*).html$ /wm.php?id=$1;
- rewrite ^/wmail_(.*).html$ /wm.php?id=$1;
- rewrite ^/google(.*).html$ /google.txt;
- rewrite ^/(.*).html$ /index.php;
- index index.php;
- }
- location ~ /(content.db|hitlog.db|hosts.txt|keywords.txt|tpl.txt|tpl_punbb.txt|la.txt|noref.txt) {
- deny all;
- }
- location ~* ^.+\.(jpeg|jpg|png|gif|bmp|ico|svg|css|js)$ {
- expires max;
- }
- location ~ [^/]\.php(/|$) {
- fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
- if (!-f $document_root$fastcgi_script_name) {
- return 404;
- }
- fastcgi_pass 127.0.0.1:9001;
- fastcgi_index index.php;
- include /etc/nginx/fastcgi_params;
- }
- }
- include /etc/nginx/conf.d/phpmyadmin.inc*;
- include /etc/nginx/conf.d/phppgadmin.inc*;
- include /etc/nginx/conf.d/webmail.inc*;
- include /home/admin/conf/web/nginx.vestahost.example.com.conf*;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement