Changeset View
Changeset View
Standalone View
Standalone View
roles/webserver-legacy/nginx/files/vhosts/hypership.space/www.conf
Show First 20 Lines • Show All 111 Lines • ▼ Show 20 Lines | |||||
# Development and staging area | # Development and staging area | ||||
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||||
server { | server { | ||||
listen 80; | listen 80; | ||||
listen [::]:80; | listen [::]:80; | ||||
server_name zed51.dereckson.be; | 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/hypership.space/zed51-error.log; | |||||
access_log /var/log/www/hypership.space/zed51-access.log; | |||||
root /var/51-wwwroot/zed; | |||||
index index.html index.php; | |||||
include includes/letsencrypt; | 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 / { | location / { | ||||
return 503; | try_files $uri $uri/ @app; | ||||
location ~ [^/]\.php(/|$) { | |||||
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; | |||||
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/hypership.space/php-fpm.sock; | |||||
fastcgi_param SCRIPT_FILENAME /var/51-wwwroot/zed/index.php; | |||||
include includes/fastcgi_params; | |||||
} | } | ||||
} | } |
Nasqueron DevCentral · If it had been much bigger the moon would have had a core of ice. · Powered by Phabricator