More redirect config
This commit is contained in:
parent
ddd92fca2e
commit
77d49e58ce
@ -60,8 +60,11 @@ http {
|
|||||||
}
|
}
|
||||||
|
|
||||||
server {
|
server {
|
||||||
|
listen 443 ssl;
|
||||||
server_name apps.miti.sh;
|
server_name apps.miti.sh;
|
||||||
|
|
||||||
|
root /var/www/sites/apps.miti.sh;
|
||||||
|
|
||||||
location ^~ /.well-known/acme-challenge {
|
location ^~ /.well-known/acme-challenge {
|
||||||
alias /var/www/dehydrated;
|
alias /var/www/dehydrated;
|
||||||
}
|
}
|
||||||
@ -82,8 +85,18 @@ http {
|
|||||||
alias /var/www/dehydrated;
|
alias /var/www/dehydrated;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
location / {
|
||||||
return 301 https://miti.sh$request_uri;
|
return 301 https://miti.sh$request_uri;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
location ~ ^/git/(.*)$ {
|
||||||
|
return 301 https://git.miti.sh/ccm/$1;
|
||||||
|
}
|
||||||
|
|
||||||
|
location ~ ^/apps/(.*)$ {
|
||||||
|
return 301 https://apps.miti.sh/$1;
|
||||||
|
}
|
||||||
|
}
|
||||||
server {
|
server {
|
||||||
listen 443 ssl;
|
listen 443 ssl;
|
||||||
server_name git.webdevcat.me;
|
server_name git.webdevcat.me;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user