Your IP : 18.224.66.138


Current Path : /etc/nginx/vhosts/admin_ftp_12/
Upload File :
Current File : //etc/nginx/vhosts/admin_ftp_12/gcba.ru.conf

server {
	server_name gcba.ru www.gcba.ru;
	charset UTF-8;
	index index.php index.html index.htm index.phtml index.phtm;
	disable_symlinks if_not_owner from=$root_path;
	include /etc/nginx/vhosts-includes/*.conf;
	include /etc/nginx/vhosts-resources/gcba.ru/*.conf;
	access_log /var/www/httpd-logs/gcba.ru.access.log;
	error_log /var/www/httpd-logs/gcba.ru.error.log notice;
	set $root_path /var/www/admin_ftp_12/data/www/httpdocs;
	root $root_path;
	gzip on;
	gzip_comp_level 5;
	gzip_disable "msie6";
	gzip_types text/plain text/css application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript application/javascript image/svg+xml;
	location / {
		location ~ [^/]\.ph(p\d*|tml)$ {
			try_files /does_not_exists @fallback;
		}
		location ~* ^.+\.(ac3|avi|bmp|bz2|css|cue|dat|doc|docx|dts|eot|exe|flv|gif|gz|htm|html|ico|img|iso|jpeg|jpg|js|mkv|mp3|mp4|mpeg|mpg|ogg|pdf|png|ppt|pptx|qt|rar|rm|svg|swf|tar|tgz|ttf|txt|wav|woff|woff2|xls|xlsx|zip)$ {
			expires 24h;
			try_files $uri $uri/ @fallback;
		}
		location / {
			try_files /does_not_exists @fallback;
		}
	}
	location /webstat/ {
		charset UTF-8;
		index index.html;
		location ~ [^/]\.ph(p\d*|tml)$ {
			try_files /does_not_exists @fallback;
		}
		location ~* ^.+\.(ac3|avi|bmp|bz2|css|cue|dat|doc|docx|dts|eot|exe|flv|gif|gz|htm|html|ico|img|iso|jpeg|jpg|js|mkv|mp3|mp4|mpeg|mpg|ogg|pdf|png|ppt|pptx|qt|rar|rm|svg|swf|tar|tgz|ttf|txt|wav|woff|woff2|xls|xlsx|zip)$ {
			expires 24h;
			try_files $uri $uri/ @fallback;
		}
		location /webstat/ {
			try_files /does_not_exists @fallback;
		}
		auth_basic "Access limited by ispmanager";
		auth_basic_user_file /var/www/admin_ftp_12/data/etc/access.gcba.ru.VihQs/3k.passwd;
	}
	location @fallback {
		include /etc/nginx/vhosts-resources/gcba.ru/dynamic/*.conf;
		proxy_pass http://127.0.0.1:8080;
		proxy_redirect http://127.0.0.1:8080 /;
		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-Forwarded-Port $server_port;
		access_log off;
	}
	return 301 https://$host:443$request_uri;
	listen 89.253.231.240:80;
}
server {
	server_name gcba.ru www.gcba.ru;
	ssl_certificate "/var/www/httpd-cert/admin_ftp_12/gcba.ru.crtca";
	ssl_certificate_key "/var/www/httpd-cert/admin_ftp_12/gcba.ru.key";
	ssl_ciphers EECDH:+AES256:-3DES:RSA+AES:!NULL:!RC4;
	ssl_prefer_server_ciphers on;
	ssl_protocols TLSv1.2 TLSv1.3;
	charset UTF-8;
	index index.php index.html index.htm index.phtml index.phtm;
	disable_symlinks if_not_owner from=$root_path;
	include /etc/nginx/vhosts-includes/*.conf;
	include /etc/nginx/vhosts-resources/gcba.ru/*.conf;
	access_log /var/www/httpd-logs/gcba.ru.access.log;
	error_log /var/www/httpd-logs/gcba.ru.error.log notice;
	set $root_path /var/www/admin_ftp_12/data/www/httpdocs;
	root $root_path;
	gzip on;
	gzip_comp_level 5;
	gzip_disable "msie6";
	gzip_types text/plain text/css application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript application/javascript image/svg+xml;
	location / {
		location ~ [^/]\.ph(p\d*|tml)$ {
			try_files /does_not_exists @fallback;
		}
		location ~* ^.+\.(ac3|avi|bmp|bz2|css|cue|dat|doc|docx|dts|eot|exe|flv|gif|gz|htm|html|ico|img|iso|jpeg|jpg|js|mkv|mp3|mp4|mpeg|mpg|ogg|pdf|png|ppt|pptx|qt|rar|rm|svg|swf|tar|tgz|ttf|txt|wav|woff|woff2|xls|xlsx|zip)$ {
			expires 24h;
			try_files $uri $uri/ @fallback;
		}
		location / {
			try_files /does_not_exists @fallback;
		}
	}
	location /webstat/ {
		charset UTF-8;
		index index.html;
		location ~ [^/]\.ph(p\d*|tml)$ {
			try_files /does_not_exists @fallback;
		}
		location ~* ^.+\.(ac3|avi|bmp|bz2|css|cue|dat|doc|docx|dts|eot|exe|flv|gif|gz|htm|html|ico|img|iso|jpeg|jpg|js|mkv|mp3|mp4|mpeg|mpg|ogg|pdf|png|ppt|pptx|qt|rar|rm|svg|swf|tar|tgz|ttf|txt|wav|woff|woff2|xls|xlsx|zip)$ {
			expires 24h;
			try_files $uri $uri/ @fallback;
		}
		location /webstat/ {
			try_files /does_not_exists @fallback;
		}
		auth_basic "Access limited by ispmanager";
		auth_basic_user_file /var/www/admin_ftp_12/data/etc/access.gcba.ru.VihQs/3k.passwd;
	}
	location @fallback {
		include /etc/nginx/vhosts-resources/gcba.ru/dynamic/*.conf;
		proxy_pass http://127.0.0.1:8080;
		proxy_redirect http://127.0.0.1:8080 /;
		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-Forwarded-Port $server_port;
		access_log off;
	}
	if ($host = www.gcba.ru) {
		return 301 https://gcba.ru$request_uri;
	}
	ssl_dhparam /etc/ssl/certs/dhparam4096.pem;
	listen 89.253.231.240:443 ssl;
}