Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
You make two locations , the first with a strict url match /
, the second with a prefix one.
location /phpmyadmin/ {
deny all;
return 555;
root /usr/share/phpmyadmin/;
}
location /webmail/ {
rewrite ^/(.*)$ https://$http_host:8080/$1 permanent;
}
# letsencrypt
location /.well-known/acme-challenge/ {
alias /usr/local/ispconfig/interface/acme/;
default_type text/plain;
}
# default location
location / {
index index.php index.html index.htm;
proxy_pass http://127.0.0.1:82;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question