More redirect config
This commit is contained in:
parent
53a582be83
commit
babcbd78e3
@ -60,8 +60,11 @@ http {
|
||||
}
|
||||
|
||||
server {
|
||||
listen 443 ssl;
|
||||
server_name apps.miti.sh;
|
||||
|
||||
root /var/www/sites/apps.miti.sh;
|
||||
|
||||
location ^~ /.well-known/acme-challenge {
|
||||
alias /var/www/dehydrated;
|
||||
}
|
||||
@ -82,8 +85,18 @@ http {
|
||||
alias /var/www/dehydrated;
|
||||
}
|
||||
|
||||
location / {
|
||||
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 {
|
||||
listen 443 ssl;
|
||||
server_name git.webdevcat.me;
|
||||
|
Loading…
x
Reference in New Issue
Block a user