Last active
March 9, 2020 05:00
-
-
Save zclongpop123/2f694db7c2923286046ba25cfd047a10 to your computer and use it in GitHub Desktop.
nginx reverse proxy
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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; | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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