Skip to content

Commit

Permalink
testing with redirect AND proxy pass
Browse files Browse the repository at this point in the history
  • Loading branch information
acozine committed May 20, 2024
1 parent 3efb03b commit a9548da
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions roles/nginxplus/files/conf/http/pulcheck_staging.conf
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,11 @@ server {
ssl_session_cache shared:SSL:1m;
ssl_prefer_server_ciphers on;

# Redirect top level traffic to /pulmonitor/
location / {
return 302 https://$server_name/pulmonitor/;
}
location /pulmonitor/ {
proxy_pass http://pulcheck-staging/pulmonitor/;
proxy_set_header X-Forwarded-Host $host;
proxy_cache pulcheck-stagingcache;
Expand Down

0 comments on commit a9548da

Please sign in to comment.