Created
April 6, 2020 12:02
-
-
Save manhg/916bb293e541a50bd9f9dcfac64f964b to your computer and use it in GitHub Desktop.
This file contains 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_name "~^(?P<app_group>\w+)?(?:\.)?(?P<app_name>\w+)-(?P<app_port>\d{4})\.devel$"; | |
root /work/$app_name/public; | |
location / { | |
proxy_set_header Host $host; | |
proxy_set_header X-Real-IP $remote_addr; | |
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | |
proxy_pass http://127.0.0.1:$app_port; | |
proxy_redirect http://127.0.0.1:$app_port /; | |
proxy_redirect http://localhost:$app_port /; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment