Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- cat /home/admin/conf/web/nginx.conf
- server {
- listen 127.0.0.1;
- server_name localhost;
- location /nginx_status {
- stub_status on;
- access_log off;
- allow 127.0.0.1;
- allow 92.60.185.77;
- allow 176.36.183.36;
- deny all;
- }
- }
- server {
- listen 443;
- ssl on;
- ssl_certificate /etc/ssl/goldwell.pp.ua_bundle.crt;
- ssl_certificate_key /etc/ssl/goldwell.pp.ua.key;
- server_name goldwell.pp.ua;
- access_log /var/log/nginx/nginx.vhost.access.log;
- error_log /var/log/nginx/nginx.vhost.error.log;
- location / {
- root /home/admin/web/goldwell.pp.ua/public_shtml;
- index index.html;
- }
- }
- server {
- listen 94.23.162.51:80;
- server_name www.goldwell.pp.ua;
- return 301 http://goldwell.pp.ua$request_uri;
- }
- server {
- listen 94.23.162.51:80;
- server_name goldwell.pp.ua;
- root /home/admin/web/goldwell.pp.ua/public_html;
- index index.php index.html index.htm;
- access_log /var/log/nginx/domains/goldwell.pp.ua.log combined;
- access_log /var/log/nginx/domains/goldwell.pp.ua.bytes bytes;
- error_log /var/log/nginx/domains/goldwell.pp.ua.error.log error;
- rewrite ^([^.\?]*[^/])$ $1/ permanent;
- location /munin {
- alias /var/www/html/munin/;
- allow 127.0.0.1;
- allow 92.60.185.77;
- allow 176.36.183.36;
- deny all;
- # index index.html;
- location ~* \.(png|jpg|jpeg|gif|ico)$ {
- }
- }
- location ~ \.(tpl|ini|log) {
- deny all;
- }
- location ~ ^/(status|ping)$ {
- fastcgi_pass 127.0.0.1:9002;
- fastcgi_index index.php;
- fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
- include fastcgi_params;
- access_log off;
- allow 127.0.0.1;
- allow 92.60.185.77;
- deny all;
- }
- location /nginx_status {
- stub_status on;
- access_log off;
- allow 127.0.0.1;
- allow 92.60.185.77;
- allow 176.36.183.36;
- deny all;
- }
- location /download {
- alias /index.php?route=error/not_found;
- }
- location = /sitemap.xml {
- rewrite ^(.*)$ /index.php?route=feed/fast_sitemap;
- }
- ###############################
- location / {
- 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:9002;
- fastcgi_index index.php;
- include /etc/nginx/fastcgi_params;
- }
- }
- error_page 403 /error/404.html;
- error_page 404 /index.php?route=error/not_found;
- error_page 500 502 503 504 /error/50x.html;
- location /error/ {
- alias /home/admin/web/goldwell.pp.ua/document_errors/;
- }
- location ~* "/\.(htaccess|htpasswd)$" {
- deny all;
- return 404;
- }
- include /etc/nginx/conf.d/phpmyadmin.inc*;
- include /etc/nginx/conf.d/phppgadmin.inc*;
- include /etc/nginx/conf.d/webmail.inc*;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement