diff --git a/projects/alt-site/nginx.conf b/projects/alt-site/nginx.conf index a162caf9..e3d4ea5f 100644 --- a/projects/alt-site/nginx.conf +++ b/projects/alt-site/nginx.conf @@ -44,6 +44,10 @@ server { ssl_certificate /etc/letsencrypt/live/fanshare.id/fullchain.pem; ssl_certificate_key /etc/letsencrypt/live/fanshare.id/privkey.pem; + if ($request_uri ~ .*.php.*) { + return 301 https://www.youtube.com/watch?v=dQw4w9WgXcQ; + } + root /home/bifeldy/www/fansubid/dist/alt-site; index index.html; diff --git a/projects/main-site/nginx.conf b/projects/main-site/nginx.conf index 839bf4d5..c4d8aa62 100644 --- a/projects/main-site/nginx.conf +++ b/projects/main-site/nginx.conf @@ -44,6 +44,10 @@ server { ssl_certificate /etc/letsencrypt/live/fansub.id/fullchain.pem; ssl_certificate_key /etc/letsencrypt/live/fansub.id/privkey.pem; + if ($request_uri ~ .*.php.*) { + return 301 https://www.youtube.com/watch?v=dQw4w9WgXcQ; + } + root /home/bifeldy/www/fansubid/dist/main-site/browser; index index.html;