Changeset View
Changeset View
Standalone View
Standalone View
roles/webserver-legacy/nginx/files/vhosts/hypership.space/www.conf
Show All 21 Lines | server { | ||||
include includes/tls; | include includes/tls; | ||||
ssl_certificate /usr/local/etc/letsencrypt/live/hypership.space/fullchain.pem; | ssl_certificate /usr/local/etc/letsencrypt/live/hypership.space/fullchain.pem; | ||||
ssl_certificate_key /usr/local/etc/letsencrypt/live/hypership.space/privkey.pem; | ssl_certificate_key /usr/local/etc/letsencrypt/live/hypership.space/privkey.pem; | ||||
error_log /var/log/www/hypership.space/www-error.log; | error_log /var/log/www/hypership.space/www-error.log; | ||||
access_log /var/log/www/hypership.space/www-access.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; | |||||
location /content { | location /content { | ||||
return 403; | return 403; | ||||
} | } | ||||
location /content/users { | location /content/users { | ||||
alias /srv/zed/content/users; | alias /srv/zed/content/users; | ||||
} | } | ||||
location /content/scenes { | location /content/scenes { | ||||
alias /srv/zed/content/scenes; | alias /srv/zed/content/scenes; | ||||
location ~ \.tpl$ { | location ~ \.tpl$ { | ||||
# This folder contains templates intended to be rendered, | # This folder contains templates intended to be rendered, | ||||
# and not directly served. | # and not directly served. | ||||
return 403; | return 403; | ||||
} | } | ||||
} | } | ||||
location = /tour { | |||||
return 302 /tour.html; | |||||
} | |||||
location / { | location / { | ||||
try_files $uri $uri/ @app; | |||||
location ~ \.php$ { | |||||
return 503; | 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 | # Redirections from port 80 and alternative domains | ||||
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||||
server { | server { | ||||
▲ Show 20 Lines • Show All 42 Lines • Show Last 20 Lines |
Nasqueron DevCentral · If it had been much bigger the moon would have had a core of ice. · Powered by Phabricator