Created
May 13, 2017 14:59
-
-
Save inbrogues/93e00b154b671ff8f2e5f9580df81132 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
user apache; | |
worker_processes auto; | |
timer_resolution 100ms; | |
error_log /var/log/nginx/error.log warn; | |
pid /var/run/nginx.pid; | |
events { | |
worker_connections 1024; | |
} | |
http { | |
include /etc/nginx/mime.types; | |
default_type application/octet-stream; | |
log_format main '$remote_addr - $remote_user [$time_local] "$request" ' | |
'$status $body_bytes_sent "$http_referer" ' | |
'"$http_user_agent" "$http_x_forwarded_for"'; | |
access_log /var/log/nginx/access.log main; | |
server_tokens off; | |
sendfile on; | |
#tcp_nopush on; | |
keepalive_timeout 65; | |
gzip on; | |
gzip_http_version 1.1; | |
gzip_disable msie6; | |
gzip_types text/plain application/xml application/x-javascript text/css; | |
include /etc/nginx/conf.d/stub.conf; | |
include /etc/nginx/conf.d/default_server.conf; | |
include /usr/local/ispmgr/etc/nginx.domain; | |
client_max_body_size 16M; | |
log_format isp '$bytes_sent $request_length'; | |
server { | |
server_name arthouse.od.ua www.arthouse.od.ua; | |
listen 95.183.8.188; | |
disable_symlinks if_not_owner from=$root_path; | |
set $root_path /var/www/arthouse/data/www/arthouse.od.ua; | |
location ~* ^.+\.(jpg|jpeg|gif|png|svg|js|css|mp3|ogg|mpe?g|avi|zip|gz|bz2?|rar|swf)$ { | |
root $root_path; | |
access_log /var/www/nginx-logs/arthouse isp; | |
access_log /var/www/httpd-logs/arthouse.od.ua.access.log ; | |
error_page 404 = @fallback; | |
} | |
location / { | |
proxy_pass http://95.183.8.188:81; | |
proxy_redirect http://95.183.8.188:81/ /; | |
proxy_set_header Host $host; | |
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | |
proxy_set_header X-Forwarded-Proto $scheme; | |
proxy_set_header X-Real-IP $remote_addr; | |
} | |
location ~* ^/(webstat|awstats|webmail|myadmin|pgadmin)/ { | |
proxy_pass http://95.183.8.188:81; | |
proxy_redirect http://95.183.8.188:81/ /; | |
proxy_set_header Host $host; | |
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | |
proxy_set_header X-Forwarded-Proto $scheme; | |
proxy_set_header X-Real-IP $remote_addr; | |
} | |
location @fallback { | |
proxy_pass http://95.183.8.188:81; | |
proxy_set_header Host $host; | |
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | |
proxy_set_header X-Forwarded-Proto $scheme; | |
proxy_set_header X-Real-IP $remote_addr; | |
} | |
location ^~ /webstat/ { | |
auth_basic "Restricted area"; | |
auth_basic_user_file /var/www/arthouse/data/etc/270458.passwd; | |
try_files $uri @fallback; | |
} | |
include /usr/local/ispmgr/etc/nginx.inc; | |
} | |
server { | |
server_name kvartira-design.od.ua www.kvartira-design.od.ua; | |
listen 95.183.8.188; | |
disable_symlinks if_not_owner from=$root_path; | |
set $root_path /var/www/kvartira/data/www/kvartira-design.od.ua; | |
location ~* ^.+\.(jpg|jpeg|gif|png|svg|js|css|mp3|ogg|mpe?g|avi|zip|gz|bz2?|rar|swf)$ { | |
root $root_path; | |
access_log /var/www/nginx-logs/kvartira isp; | |
access_log /var/www/httpd-logs/kvartira-design.od.ua.access.log ; | |
error_page 404 = @fallback; | |
} | |
location / { | |
proxy_pass http://95.183.8.188:81; | |
proxy_redirect http://95.183.8.188:81/ /; | |
proxy_set_header Host $host; | |
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | |
proxy_set_header X-Forwarded-Proto $scheme; | |
proxy_set_header X-Real-IP $remote_addr; | |
} | |
location ~* ^/(webstat|awstats|webmail|myadmin|pgadmin)/ { | |
proxy_pass http://95.183.8.188:81; | |
proxy_redirect http://95.183.8.188:81/ /; | |
proxy_set_header Host $host; | |
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | |
proxy_set_header X-Forwarded-Proto $scheme; | |
proxy_set_header X-Real-IP $remote_addr; | |
} | |
location @fallback { | |
proxy_pass http://95.183.8.188:81; | |
proxy_set_header Host $host; | |
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | |
proxy_set_header X-Forwarded-Proto $scheme; | |
proxy_set_header X-Real-IP $remote_addr; | |
} | |
location ^~ /webstat/ { | |
auth_basic "Restricted area"; | |
auth_basic_user_file /var/www/kvartira/data/etc/399925.passwd; | |
try_files $uri @fallback; | |
} | |
include /usr/local/ispmgr/etc/nginx.inc; | |
} | |
server { | |
server_name be-koval.ru www.be-koval.ru; | |
listen 95.183.8.188; | |
disable_symlinks if_not_owner from=$root_path; | |
set $root_path /var/www/arthouse/data/www/be-koval.ru/public; | |
location ~* ^.+\.(jpg|jpeg|gif|png|svg|js|css|mp3|ogg|mpe?g|avi|zip|gz|bz2?|rar|swf)$ { | |
root $root_path; | |
access_log /var/www/nginx-logs/arthouse isp; | |
access_log /var/www/httpd-logs/be-koval.ru.access.log ; | |
error_page 404 = @fallback; | |
} | |
location / { | |
proxy_pass http://95.183.8.188:81; | |
proxy_redirect http://95.183.8.188:81/ /; | |
proxy_set_header Host $host; | |
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | |
proxy_set_header X-Forwarded-Proto $scheme; | |
proxy_set_header X-Real-IP $remote_addr; | |
} | |
location ~* ^/(webstat|awstats|webmail|myadmin|pgadmin)/ { | |
proxy_pass http://95.183.8.188:81; | |
proxy_redirect http://95.183.8.188:81/ /; | |
proxy_set_header Host $host; | |
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | |
proxy_set_header X-Forwarded-Proto $scheme; | |
proxy_set_header X-Real-IP $remote_addr; | |
} | |
location @fallback { | |
proxy_pass http://95.183.8.188:81; | |
proxy_set_header Host $host; | |
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | |
proxy_set_header X-Forwarded-Proto $scheme; | |
proxy_set_header X-Real-IP $remote_addr; | |
} | |
include /usr/local/ispmgr/etc/nginx.inc; | |
} | |
server { | |
server_name fitness-baza.od.ua www.fitness-baza.od.ua; | |
listen 95.183.8.188; | |
disable_symlinks if_not_owner from=$root_path; | |
set $root_path /var/www/kvartira/data/www/fitness-baza.od.ua; | |
location ~* ^.+\.(jpg|jpeg|gif|png|svg|js|css|mp3|ogg|mpe?g|avi|zip|gz|bz2?|rar|swf)$ { | |
root $root_path; | |
access_log /var/www/nginx-logs/kvartira isp; | |
access_log /var/www/httpd-logs/fitness-baza.od.ua.access.log ; | |
error_page 404 = @fallback; | |
} | |
location / { | |
proxy_pass http://95.183.8.188:81; | |
proxy_redirect http://95.183.8.188:81/ /; | |
proxy_set_header Host $host; | |
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | |
proxy_set_header X-Forwarded-Proto $scheme; | |
proxy_set_header X-Real-IP $remote_addr; | |
} | |
location ~* ^/(webstat|awstats|webmail|myadmin|pgadmin)/ { | |
proxy_pass http://95.183.8.188:81; | |
proxy_redirect http://95.183.8.188:81/ /; | |
proxy_set_header Host $host; | |
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | |
proxy_set_header X-Forwarded-Proto $scheme; | |
proxy_set_header X-Real-IP $remote_addr; | |
} | |
location @fallback { | |
proxy_pass http://95.183.8.188:81; | |
proxy_set_header Host $host; | |
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | |
proxy_set_header X-Forwarded-Proto $scheme; | |
proxy_set_header X-Real-IP $remote_addr; | |
} | |
location ^~ /webstat/ { | |
auth_basic "Restricted area"; | |
auth_basic_user_file /var/www/kvartira/data/etc/1437333.passwd; | |
try_files $uri @fallback; | |
} | |
include /usr/local/ispmgr/etc/nginx.inc; | |
} | |
server { | |
server_name gridina.od.ua www.gridina.od.ua; | |
listen 95.183.8.188; | |
disable_symlinks if_not_owner from=$root_path; | |
set $root_path /var/www/leets/data/www/gridina.od.ua; | |
location ~* ^.+\.(jpg|jpeg|gif|png|svg|js|css|mp3|ogg|mpe?g|avi|zip|gz|bz2?|rar|swf)$ { | |
root $root_path; | |
access_log /var/www/nginx-logs/leets isp; | |
error_page 404 = @fallback; | |
expires 30d; | |
} | |
location / { | |
proxy_pass http://95.183.8.188:81; | |
proxy_redirect http://95.183.8.188:81/ /; | |
proxy_set_header Host $host; | |
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | |
proxy_set_header X-Forwarded-Proto $scheme; | |
proxy_set_header X-Real-IP $remote_addr; | |
} | |
location ~* ^/(webstat|awstats|webmail|myadmin|pgadmin)/ { | |
proxy_pass http://95.183.8.188:81; | |
proxy_redirect http://95.183.8.188:81/ /; | |
proxy_set_header Host $host; | |
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | |
proxy_set_header X-Forwarded-Proto $scheme; | |
proxy_set_header X-Real-IP $remote_addr; | |
} | |
location @fallback { | |
proxy_pass http://95.183.8.188:81; | |
proxy_set_header Host $host; | |
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | |
proxy_set_header X-Forwarded-Proto $scheme; | |
proxy_set_header X-Real-IP $remote_addr; | |
} | |
location ^~ /webstat/ { | |
auth_basic "Restricted area"; | |
auth_basic_user_file /var/www/leets/data/etc/270953.passwd; | |
try_files $uri @fallback; | |
} | |
include /usr/local/ispmgr/etc/nginx.inc; | |
} | |
server { | |
server_name leets.com.ua www.leets.com.ua; | |
listen 95.183.8.188; | |
disable_symlinks if_not_owner from=$root_path; | |
set $root_path /var/www/arthouse/data/www/leets.com.ua; | |
location ~* ^.+\.(jpg|jpeg|gif|png|svg|js|css|mp3|ogg|mpe?g|avi|zip|gz|bz2?|rar|swf)$ { | |
root $root_path; | |
access_log /var/www/nginx-logs/arthouse isp; | |
access_log /var/www/httpd-logs/leets.com.ua.access.log ; | |
error_page 404 = @fallback; | |
} | |
location / { | |
proxy_pass http://95.183.8.188:81; | |
proxy_redirect http://95.183.8.188:81/ /; | |
proxy_set_header Host $host; | |
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | |
proxy_set_header X-Forwarded-Proto $scheme; | |
proxy_set_header X-Real-IP $remote_addr; | |
} | |
location ~* ^/(webstat|awstats|webmail|myadmin|pgadmin)/ { | |
proxy_pass http://95.183.8.188:81; | |
proxy_redirect http://95.183.8.188:81/ /; | |
proxy_set_header Host $host; | |
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | |
proxy_set_header X-Forwarded-Proto $scheme; | |
proxy_set_header X-Real-IP $remote_addr; | |
} | |
location @fallback { | |
proxy_pass http://95.183.8.188:81; | |
proxy_set_header Host $host; | |
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | |
proxy_set_header X-Forwarded-Proto $scheme; | |
proxy_set_header X-Real-IP $remote_addr; | |
} | |
location ^~ /webstat/ { | |
auth_basic "Restricted area"; | |
auth_basic_user_file /var/www/arthouse/data/etc/266420.passwd; | |
try_files $uri @fallback; | |
} | |
include /usr/local/ispmgr/etc/nginx.inc; | |
} | |
server { | |
server_name climattehnika.com.ua *.climattehnika.com.ua www.climattehnika.com.ua; | |
listen 95.183.8.188; | |
disable_symlinks if_not_owner from=$root_path/$subdomain; | |
set $root_path /var/www/konder/data/www/climattehnika.com.ua; | |
set $subdomain ""; | |
# Включаем gzip-сжатие картинок, css-файлов, js-скриптов | |
gzip_static on; | |
gzip on; | |
gzip_comp_level 5; | |
gzip_types application/x-javascript application/javascript text/css image/jpeg image/png image/svg+xml; | |
location ~* ^.+\.(jpg|jpeg|gif|png|svg|js|css|mp3|ogg|mpe?g|avi|zip|gz|bz2?|rar|swf)$ { | |
root $root_path/$subdomain; | |
access_log /var/www/nginx-logs/konder isp; | |
access_log /var/www/httpd-logs/climattehnika.com.ua.access.log ; | |
error_page 404 = @fallback; | |
expires 168h; | |
add_header Cache-Control private; | |
} | |
location / { | |
proxy_pass http://95.183.8.188:81; | |
proxy_redirect http://95.183.8.188:81/ /; | |
proxy_set_header Host $host; | |
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | |
proxy_set_header X-Forwarded-Proto $scheme; | |
proxy_set_header X-Real-IP $remote_addr; | |
} | |
location ~* ^/(webstat|awstats|webmail|myadmin|pgadmin)/ { | |
proxy_pass http://95.183.8.188:81; | |
proxy_redirect http://95.183.8.188:81/ /; | |
proxy_set_header Host $host; | |
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | |
proxy_set_header X-Forwarded-Proto $scheme; | |
proxy_set_header X-Real-IP $remote_addr; | |
} | |
location @fallback { | |
proxy_pass http://95.183.8.188:81; | |
proxy_set_header Host $host; | |
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | |
proxy_set_header X-Forwarded-Proto $scheme; | |
proxy_set_header X-Real-IP $remote_addr; | |
} | |
location ^~ /webstat/ { | |
auth_basic "Restricted area"; | |
auth_basic_user_file /var/www/konder/data/etc/1052670.passwd; | |
try_files $uri @fallback; | |
} | |
include /usr/local/ispmgr/etc/nginx.inc; | |
if ($host ~* ^((.*).climattehnika.com.ua)$) { | |
set $subdomain ../$1; | |
} | |
} | |
server { | |
server_name mebelsiti.ua www.mebelsiti.ua; | |
listen 95.183.8.188; | |
listen 95.183.8.188:443 ssl; | |
disable_symlinks if_not_owner from=$root_path; | |
set $root_path /var/www/mebelsiti/data/www/mebelsiti.ua/public; | |
location ~* ^.+\.(jpg|jpeg|gif|png|svg|js|css|mp3|ogg|mpe?g|avi|zip|gz|bz2?|rar|swf)$ { | |
root $root_path; | |
access_log /var/www/nginx-logs/mebelsiti isp; | |
access_log /var/www/httpd-logs/mebelsiti.ua.access.log ; | |
error_page 404 = @fallback; | |
} | |
location / { | |
proxy_pass http://95.183.8.188:81; | |
proxy_redirect http://95.183.8.188:81/ /; | |
proxy_set_header Host $host; | |
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | |
proxy_set_header X-Forwarded-Proto $scheme; | |
proxy_set_header X-Real-IP $remote_addr; | |
} | |
location ~* ^/(webstat|awstats|webmail|myadmin|pgadmin)/ { | |
proxy_pass http://95.183.8.188:81; | |
proxy_redirect http://95.183.8.188:81/ /; | |
proxy_set_header Host $host; | |
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | |
proxy_set_header X-Forwarded-Proto $scheme; | |
proxy_set_header X-Real-IP $remote_addr; | |
} | |
location @fallback { | |
proxy_pass http://95.183.8.188:81; | |
proxy_set_header Host $host; | |
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | |
proxy_set_header X-Forwarded-Proto $scheme; | |
proxy_set_header X-Real-IP $remote_addr; | |
} | |
location ^~ /public/webstat/ { | |
auth_basic "Restricted area"; | |
auth_basic_user_file /var/www/mebelsiti/data/etc/1045165.passwd; | |
try_files $uri @fallback; | |
} | |
include /usr/local/ispmgr/etc/nginx.inc; | |
ssl_certificate /var/www/httpd-cert/mebelsiti/mebelsiti.ua.chained.crt; | |
ssl_certificate_key /var/www/httpd-cert/mebelsiti/mebelsiti.ua.key; | |
} | |
server { | |
server_name megaklimat.com.ua www.megaklimat.com.ua; | |
listen 95.183.8.188; | |
disable_symlinks if_not_owner from=$root_path; | |
set $root_path /var/www/kvartira/data/www/megaklimat.com.ua; | |
location ~* ^.+\.(jpg|jpeg|gif|png|svg|js|css|mp3|ogg|mpe?g|avi|zip|gz|bz2?|rar|swf)$ { | |
root $root_path; | |
access_log /var/www/nginx-logs/kvartira isp; | |
access_log /var/www/httpd-logs/megaklimat.com.ua.access.log ; | |
error_page 404 = @fallback; | |
} | |
location / { | |
proxy_pass http://95.183.8.188:81; | |
proxy_redirect http://95.183.8.188:81/ /; | |
proxy_set_header Host $host; | |
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | |
proxy_set_header X-Forwarded-Proto $scheme; | |
proxy_set_header X-Real-IP $remote_addr; | |
} | |
location ~* ^/(webstat|awstats|webmail|myadmin|pgadmin)/ { | |
proxy_pass http://95.183.8.188:81; | |
proxy_redirect http://95.183.8.188:81/ /; | |
proxy_set_header Host $host; | |
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | |
proxy_set_header X-Forwarded-Proto $scheme; | |
proxy_set_header X-Real-IP $remote_addr; | |
} | |
location @fallback { | |
proxy_pass http://95.183.8.188:81; | |
proxy_set_header Host $host; | |
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | |
proxy_set_header X-Forwarded-Proto $scheme; | |
proxy_set_header X-Real-IP $remote_addr; | |
} | |
location ^~ /webstat/ { | |
auth_basic "Restricted area"; | |
auth_basic_user_file /var/www/kvartira/data/etc/394765.passwd; | |
try_files $uri @fallback; | |
} | |
include /usr/local/ispmgr/etc/nginx.inc; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment