Skip to content

Instantly share code, notes, and snippets.

@zclongpop123
Last active March 9, 2020 05:00
Show Gist options
  • Save zclongpop123/2f694db7c2923286046ba25cfd047a10 to your computer and use it in GitHub Desktop.
Save zclongpop123/2f694db7c2923286046ba25cfd047a10 to your computer and use it in GitHub Desktop.
nginx reverse proxy
server {
listen 80;
server_name wiki.domain.com;
client_max_body_size 20m;
location / {
root html;
index index.html index.htm;
proxy_pass http://localhost:8090;
proxy_set_header Host $host;
proxy_set_header X-real-ip $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
}
server {
listen 80;
server_name jira.domain.com;
client_max_body_size 20m;
location / {
root html;
index index.html index.htm;
proxy_pass http://localhost:8070;
proxy_set_header Host $host;
proxy_set_header X-real-ip $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment