Created
July 21, 2023 13:05
-
-
Save noc2spam/241b1a0e0b9083b8769c37937463775c 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 { | |
listen 80; | |
listen [::]:80; | |
server_name yourdomain.com; | |
location / { | |
proxy_pass http://127.0.0.1:2023; | |
} | |
} | |
server { | |
listen 80; | |
listen [::]:80; | |
server_name phpmyadmin.yourdomain.com; | |
location / { | |
proxy_pass http://127.0.0.1:2024; | |
} | |
} | |
server { | |
server_name www.yourdomain.com; | |
rewrite ^(.*) https://yourdomain.com$1 permanent; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment