Page MenuHomeDevCentral

zed51.conf
No OneTemporary

zed51.conf

# -------------------------------------------------------------
# Webserver
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# Site: zed51.dereckson.be
# Description: Staging area for hypership.space
# License: Trivial work, not eligible to copyright
# Source file: roles/webserver-alkane/nginx/files/vhosts/dereckson.be/zed51.conf
# -------------------------------------------------------------
#
# <auto-generated>
# This file is managed by our rOPS SaltStack repository.
#
# Changes to this file may cause incorrect behavior
# and will be lost if the state is redeployed.
# </auto-generated>
# -------------------------------------------------------------
# Redirect from port 80
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
server {
listen 80;
listen [::]:80;
server_name zed51.dereckson.be;
include includes/letsencrypt;
location / {
return 301 https://zed51.dereckson.be$request_uri;
}
}
# -------------------------------------------------------------
# Development and staging area
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
server {
server_name zed51.dereckson.be;
include includes/tls;
ssl_certificate /usr/local/etc/letsencrypt/live/zed51.dereckson.be/fullchain.pem;
ssl_certificate_key /usr/local/etc/letsencrypt/live/zed51.dereckson.be/privkey.pem;
include includes/letsencrypt;
location /content {
return 403;
}
location /content/users {
alias /var/dataroot/zed/content/users;
}
location /content/scenes {
alias /var/dataroot/zed/content/scenes;
location ~ \.tpl$ {
# This folder contains templates intended to be rendered,
# and not directly served.
return 403;
}
}
location / {
root /var/51-wwwroot/zed;
# Currently not try_files as we use this block to add caching information in prod
if (-f $request_filename) {
break;
}
# Sends all non existing file or directory requests to index.php
if (!-e request_filename) {
rewrite ^/api\.php /api.php last;
rewrite ^/do\.php /do.php last;
rewrite ^(.+)$ /index.php last;
}
}
#location ~ [^/]\.php(/|$) {
location ~ \.php$ {
fastcgi_pass unix:/var/run/web/zed51.dereckson.be/php-fpm.sock;
fastcgi_param SCRIPT_FILENAME /var/51-wwwroot/zed$fastcgi_script_name;
include includes/fastcgi;
fastcgi_index index.php;
# fastcgi_split_path_info ^((?U).+\.php)(.*)$;
# fastcgi_param PATH_INFO $fastcgi_path_info;
# fastcgi_param PATH_TRANSLATED $document_root$fastcgi_path_info;
}
}

File Metadata

Mime Type
text/plain
Expires
Sat, Nov 7, 02:56 (1 d, 7 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
4156805
Default Alt Text
zed51.conf (2 KB)

Event Timeline