имеется задача для url отдавать контент без сертификата (https) остальной сайт будет работать по https(с сертификатом)
[codesyntax lang="php" blockstate="expanded"]
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
server { listen 80; server_name testmy.test.ru; location /transparent-auth { root /var/www/html/transparent-auth; index index.html index.php; fastcgi_pass backend; fastcgi_index index.php; include fastcgi_params; fastcgi_read_timeout 300; } location / { rewrite ^ https://$server_name$request_uri? permanent; } } upstream backend { server 192.168.1.10:9000; server 192.168.1.11:9000; keepalive 32; } |
[/codesyntax]