Page MenuHomeDevCentral
Paste P287

nginx configuration to restore
ActivePublic

Authored by dereckson on Apr 13 2019, 17:50.
Referenced Files
F715679: nginx configuration to restore
Apr 13 2019, 17:50
Subscribers
None
/usr/local/etc/nginx/vhosts/dereckson.be/mediawiki.conf
root /var/51-wwwroot/mediawiki-dereckson/core;
index index.html index.php;
- include includes/letsencrypt;
-
location / {
try_files $uri $uri/ /index.php?$query_string;
}
/usr/local/etc/nginx/vhosts/hypership.space/www.conf:
@@ -27,13 +27,6 @@
error_log /var/log/www/hypership.space/www-error.log;
access_log /var/log/www/hypership.space/www-access.log;
- root /var/wwwroot/hypership.space/www;
- index index.html index.php;
-
- error_page 503 /503.html;
-
- include includes/letsencrypt;
-
location /content {
return 403;
}
@@ -52,34 +45,13 @@
}
}
- location = /tour {
- return 302 /tour.html;
- }
-
location / {
- try_files $uri $uri/ @app;
-
- location ~ \.php$ {
- return 503;
-
- #fastcgi_pass unix:/var/run/web/hypership.space/php-fpm.sock;
- #fastcgi_index index.php;
- #fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
- #include includes/fastcgi_params;
- }
- }
-
- location @app {
return 503;
-
- #fastcgi_pass unix:/var/run/web/hypership.space/php-fpm.sock;
- #fastcgi_param SCRIPT_FILENAME /var/wwwroot/hypership.space/www/index.php;
- #include includes/fastcgi_params;
}
}
# -------------------------------------------------------------
-# Redirections from port 80 and alternative domains
+# Redirects from port 80 and alternative domains
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
server {
@@ -119,58 +91,9 @@
listen [::]:80;
server_name zed51.dereckson.be;
- include includes/tls;
- ssl_certificate /usr/local/etc/letsencrypt/live/hypership.space/fullchain.pem;
- ssl_certificate_key /usr/local/etc/letsencrypt/live/hypership.space/privkey.pem;
-
- error_log /var/log/www/dereckson.be/zed51-error.log;
- access_log /var/log/www/dereckson.be/zed51-access.log;
-
- root /var/51-wwwroot/zed;
- index index.html index.php;
-
include includes/letsencrypt;
- location /content {
- return 403;
- }
-
- location /content/users {
- alias /srv/zed/content/users;
- }
-
- location /content/scenes {
- alias /srv/zed/content/scenes;
-
- location ~ \.tpl$ {
- # This folder contains templates intended to be rendered,
- # and not directly served.
- return 403;
- }
- }
-
- location = /tour {
- return 302 /tour.html;
- }
-
- location / {
- try_files $uri $uri/ @app;
-
- location ~ [^/]\.php(/|$) {
- fastcgi_pass unix:/var/run/web/zed51.dereckson.be/php-fpm.sock;
- fastcgi_index index.php;
- fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
- include includes/fastcgi_params;
-
- fastcgi_split_path_info ^((?U).+\.php)(.*)$;
- fastcgi_param PATH_INFO $fastcgi_path_info;
- fastcgi_param PATH_TRANSLATED $document_root$fastcgi_path_info;
- }
- }
-
- location @app {
- fastcgi_pass unix:/var/run/web/zed51.dereckson.be/php-fpm.sock;
- fastcgi_param SCRIPT_FILENAME /var/51-wwwroot/zed/index.php;
- include includes/fastcgi_params;
+ return 503;
}
}
/usr/local/etc/nginx/vhosts/nasqueron.org/labs.conf
@@ -35,6 +35,4 @@
access_log /var/log/www/nasqueron.org/labs-access.log;
root /var/wwwroot/nasqueron.org/labs;
-
- include includes/letsencrypt;
}
/usr/local/etc/nginx/vhosts/nasqueron.org/rain.conf
access_log /var/log/www/nasqueron.org/rain-access.log;
root /var/wwwroot/nasqueron.org/rain;
-
- include includes/letsencrypt;
}
server {
@@ -60,6 +58,4 @@
access_log /var/log/www/nasqueron.org/rain51-access.log;
root /var/51-wwwroot/rain;
-
- include includes/letsencrypt;
}