LINUX.ORG.RU

История изменений

Исправление kuper, (текущая версия) :

proxy_pass не перезапускается никс если указываю IP виртуалки

Хотя может поторопился, попробую так

server { listen 188.0.0.183:443 ssl; server_name вася www.вася; error_log /var/log/apache2/domains/вася.error.log error;

ssl_certificate     /home/radio/conf/web/вася/ssl/вася.pem;
ssl_certificate_key /home/radio/conf/web/вася/ssl/вася.key;
ssl_stapling        on;
ssl_stapling_verify on;

# TLS 1.3 0-RTT anti-replay
if ($anti_replay = 307) { return 307 https://$host$request_uri; }
if ($anti_replay = 425) { return 425; }

include /home/radio/conf/web/вася/nginx.hsts.conf*;

location ~ /\.(?!well-known\/|file) {
	deny all;
	return 404;
}

location / {
	proxy_pass https://192.168.0.10:8443;

	location ~* ^.+\.(css|htm|html|js|mjs|json|xml|apng|avif|bmp|cur|gif|ico|jfif|jpg|jpeg|pjp|pjpeg|png|svg|tif|tiff|webp|aac|caf|flac|m4a|midi|mp3|ogg|opus|wav|3gp|av1|avi|m4v|mkv|mov|mpg|mpeg|mp4|mp4v|webm|otf|ttf|woff|woff2|doc|docx|odf|odp|ods|odt|pdf|ppt|pptx|rtf|txt|xls|xlsx|7z|bz2|gz|rar|tar|tgz|zip|apk|appx|bin|dmg|exe|img|iso|jar|msi|webmanifest)$ {
		try_files  $uri @fallback;

		root       /home/radio/web/вася/public_html;
		access_log /var/log/apache2/domains/вася.log combined;
		access_log /var/log/apache2/domains/вася.bytes bytes;

		expires    max;
	}
}

location @fallback {
	proxy_pass https://192.168.0.10:8443;
}

location /error/ {
	alias /home/radio/web/вася/document_errors/;
}

proxy_hide_header Upgrade;

include /home/radio/conf/web/вася/nginx.ssl.conf_*;

}

Исходная версия kuper, :

proxy_pass не перезапускается никс если указываю IP виртуалки