Skip to content

Instantly share code, notes, and snippets.

@noc2spam
Created July 21, 2023 13:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save noc2spam/241b1a0e0b9083b8769c37937463775c to your computer and use it in GitHub Desktop.
Save noc2spam/241b1a0e0b9083b8769c37937463775c to your computer and use it in GitHub Desktop.
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