certbot/certbot-compatibility-test/nginx/nginx-roundtrip-testdata/likeapache/nginx.conf

12 lines
337 B
Nginx Configuration File
Raw Permalink Normal View History

server {
listen myhost:80;
server_name myhost;
location / {
root /path/to/myapp/public;
proxy_set_header X-Forwarded-Host $host:$server_port;
proxy_set_header X-Forwarded-Server $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_pass http://myapp:8080;
}
}