.claude
./data/www/.claude/public
default
server {
listen 443 ssl http2;
server_name .claude.dvl.to;
access_log "/var/log/httpd/.claude_ssl-access.log" combined;
error_log "/var/log/httpd/.claude_ssl-error.log" warn;
ssl_certificate /etc/httpd/cert/mass/.claude.dvl.to.crt;
ssl_certificate_key /etc/httpd/cert/mass/.claude.dvl.to.key;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
ssl_prefer_server_ciphers on;
ssl_ciphers HIGH:!aNULL:!MD5;
# Define the vhost to serve files
root "/shared/httpd/.claude/public" ;
index index.php index.html index.htm;
# PHP-FPM Definition
location / {
try_files $uri $uri/ /index.php$is_args$args;
}
location ~ \.php?$ {
try_files $uri = 404;
include fastcgi_params;
# https://stackoverflow.com/questions/1733306/nginx-errors-readv-and-recv-failed/51457613#51457613
fastcgi_keep_conn off;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_split_path_info ^(.+\.php)(.*)$;
fastcgi_pass 172.16.238.10:9000;
fastcgi_read_timeout 180;
fastcgi_index index.php;
fastcgi_intercept_errors on;
}
# Alias Definition
location ~ /devilbox-api/ {
root /var/www/default/api;
# Allow cross domain request from these hosts
# https://fetch.spec.whatwg.org/#forbidden-header-name
if ( $http_origin ~* (http(s)?://(.*)$) ) {
add_header "Access-Control-Allow-Origin" "$http_origin" ;
add_header "Access-Control-Allow-Methods' 'HEAD, GET, POST, PUT, PATCH, DELETE, OPTIONS" ;
add_header "Access-Control-Allow-Headers' 'Accept, Authorization, Content-Security-Policy, Content-Type, Location, Origin, X-Requested-With" ;
add_header "Access-Control-Expose-Headers' 'Content-Security-Policy, Location" ;
add_header "Access-Control-Max-Age" 0;
return 200;
}
}
# Deny Definition
location ~ /\.git {
deny all;
}
# Deny Definition
location ~ /\.ht.* {
deny all;
}
# Custom directives
}
server {
listen 80;
server_name .claude.dvl.to;
access_log "/var/log/httpd/.claude-access.log" combined;
error_log "/var/log/httpd/.claude-error.log" warn;
# Define the vhost to serve files
root "/shared/httpd/.claude/public" ;
index index.php index.html index.htm;
# PHP-FPM Definition
location / {
try_files $uri $uri/ /index.php$is_args$args;
}
location ~ \.php?$ {
try_files $uri = 404;
include fastcgi_params;
# https://stackoverflow.com/questions/1733306/nginx-errors-readv-and-recv-failed/51457613#51457613
fastcgi_keep_conn off;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_split_path_info ^(.+\.php)(.*)$;
fastcgi_pass 172.16.238.10:9000;
fastcgi_read_timeout 180;
fastcgi_index index.php;
fastcgi_intercept_errors on;
}
# Alias Definition
location ~ /devilbox-api/ {
root /var/www/default/api;
# Allow cross domain request from these hosts
# https://fetch.spec.whatwg.org/#forbidden-header-name
if ( $http_origin ~* (http(s)?://(.*)$) ) {
add_header "Access-Control-Allow-Origin" "$http_origin" ;
add_header "Access-Control-Allow-Methods' 'HEAD, GET, POST, PUT, PATCH, DELETE, OPTIONS" ;
add_header "Access-Control-Allow-Headers' 'Accept, Authorization, Content-Security-Policy, Content-Type, Location, Origin, X-Requested-With" ;
add_header "Access-Control-Expose-Headers' 'Content-Security-Policy, Location" ;
add_header "Access-Control-Max-Age" 0;
return 200;
}
}
# Deny Definition
location ~ /\.git {
deny all;
}
# Deny Definition
location ~ /\.ht.* {
deny all;
}
# Custom directives
}
.git
./data/www/.git/public
default
server {
listen 443 ssl http2;
server_name .git.dvl.to;
access_log "/var/log/httpd/.git_ssl-access.log" combined;
error_log "/var/log/httpd/.git_ssl-error.log" warn;
ssl_certificate /etc/httpd/cert/mass/.git.dvl.to.crt;
ssl_certificate_key /etc/httpd/cert/mass/.git.dvl.to.key;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
ssl_prefer_server_ciphers on;
ssl_ciphers HIGH:!aNULL:!MD5;
# Define the vhost to serve files
root "/shared/httpd/.git/public" ;
index index.php index.html index.htm;
# PHP-FPM Definition
location / {
try_files $uri $uri/ /index.php$is_args$args;
}
location ~ \.php?$ {
try_files $uri = 404;
include fastcgi_params;
# https://stackoverflow.com/questions/1733306/nginx-errors-readv-and-recv-failed/51457613#51457613
fastcgi_keep_conn off;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_split_path_info ^(.+\.php)(.*)$;
fastcgi_pass 172.16.238.10:9000;
fastcgi_read_timeout 180;
fastcgi_index index.php;
fastcgi_intercept_errors on;
}
# Alias Definition
location ~ /devilbox-api/ {
root /var/www/default/api;
# Allow cross domain request from these hosts
# https://fetch.spec.whatwg.org/#forbidden-header-name
if ( $http_origin ~* (http(s)?://(.*)$) ) {
add_header "Access-Control-Allow-Origin" "$http_origin" ;
add_header "Access-Control-Allow-Methods' 'HEAD, GET, POST, PUT, PATCH, DELETE, OPTIONS" ;
add_header "Access-Control-Allow-Headers' 'Accept, Authorization, Content-Security-Policy, Content-Type, Location, Origin, X-Requested-With" ;
add_header "Access-Control-Expose-Headers' 'Content-Security-Policy, Location" ;
add_header "Access-Control-Max-Age" 0;
return 200;
}
}
# Deny Definition
location ~ /\.git {
deny all;
}
# Deny Definition
location ~ /\.ht.* {
deny all;
}
# Custom directives
}
server {
listen 80;
server_name .git.dvl.to;
access_log "/var/log/httpd/.git-access.log" combined;
error_log "/var/log/httpd/.git-error.log" warn;
# Define the vhost to serve files
root "/shared/httpd/.git/public" ;
index index.php index.html index.htm;
# PHP-FPM Definition
location / {
try_files $uri $uri/ /index.php$is_args$args;
}
location ~ \.php?$ {
try_files $uri = 404;
include fastcgi_params;
# https://stackoverflow.com/questions/1733306/nginx-errors-readv-and-recv-failed/51457613#51457613
fastcgi_keep_conn off;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_split_path_info ^(.+\.php)(.*)$;
fastcgi_pass 172.16.238.10:9000;
fastcgi_read_timeout 180;
fastcgi_index index.php;
fastcgi_intercept_errors on;
}
# Alias Definition
location ~ /devilbox-api/ {
root /var/www/default/api;
# Allow cross domain request from these hosts
# https://fetch.spec.whatwg.org/#forbidden-header-name
if ( $http_origin ~* (http(s)?://(.*)$) ) {
add_header "Access-Control-Allow-Origin" "$http_origin" ;
add_header "Access-Control-Allow-Methods' 'HEAD, GET, POST, PUT, PATCH, DELETE, OPTIONS" ;
add_header "Access-Control-Allow-Headers' 'Accept, Authorization, Content-Security-Policy, Content-Type, Location, Origin, X-Requested-With" ;
add_header "Access-Control-Expose-Headers' 'Content-Security-Policy, Location" ;
add_header "Access-Control-Max-Age" 0;
return 200;
}
}
# Deny Definition
location ~ /\.git {
deny all;
}
# Deny Definition
location ~ /\.ht.* {
deny all;
}
# Custom directives
}
.tmb
./data/www/.tmb/public
default
server {
listen 443 ssl http2;
server_name .tmb.dvl.to;
access_log "/var/log/httpd/.tmb_ssl-access.log" combined;
error_log "/var/log/httpd/.tmb_ssl-error.log" warn;
ssl_certificate /etc/httpd/cert/mass/.tmb.dvl.to.crt;
ssl_certificate_key /etc/httpd/cert/mass/.tmb.dvl.to.key;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
ssl_prefer_server_ciphers on;
ssl_ciphers HIGH:!aNULL:!MD5;
# Define the vhost to serve files
root "/shared/httpd/.tmb/public" ;
index index.php index.html index.htm;
# PHP-FPM Definition
location / {
try_files $uri $uri/ /index.php$is_args$args;
}
location ~ \.php?$ {
try_files $uri = 404;
include fastcgi_params;
# https://stackoverflow.com/questions/1733306/nginx-errors-readv-and-recv-failed/51457613#51457613
fastcgi_keep_conn off;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_split_path_info ^(.+\.php)(.*)$;
fastcgi_pass 172.16.238.10:9000;
fastcgi_read_timeout 180;
fastcgi_index index.php;
fastcgi_intercept_errors on;
}
# Alias Definition
location ~ /devilbox-api/ {
root /var/www/default/api;
# Allow cross domain request from these hosts
# https://fetch.spec.whatwg.org/#forbidden-header-name
if ( $http_origin ~* (http(s)?://(.*)$) ) {
add_header "Access-Control-Allow-Origin" "$http_origin" ;
add_header "Access-Control-Allow-Methods' 'HEAD, GET, POST, PUT, PATCH, DELETE, OPTIONS" ;
add_header "Access-Control-Allow-Headers' 'Accept, Authorization, Content-Security-Policy, Content-Type, Location, Origin, X-Requested-With" ;
add_header "Access-Control-Expose-Headers' 'Content-Security-Policy, Location" ;
add_header "Access-Control-Max-Age" 0;
return 200;
}
}
# Deny Definition
location ~ /\.git {
deny all;
}
# Deny Definition
location ~ /\.ht.* {
deny all;
}
# Custom directives
}
server {
listen 80;
server_name .tmb.dvl.to;
access_log "/var/log/httpd/.tmb-access.log" combined;
error_log "/var/log/httpd/.tmb-error.log" warn;
# Define the vhost to serve files
root "/shared/httpd/.tmb/public" ;
index index.php index.html index.htm;
# PHP-FPM Definition
location / {
try_files $uri $uri/ /index.php$is_args$args;
}
location ~ \.php?$ {
try_files $uri = 404;
include fastcgi_params;
# https://stackoverflow.com/questions/1733306/nginx-errors-readv-and-recv-failed/51457613#51457613
fastcgi_keep_conn off;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_split_path_info ^(.+\.php)(.*)$;
fastcgi_pass 172.16.238.10:9000;
fastcgi_read_timeout 180;
fastcgi_index index.php;
fastcgi_intercept_errors on;
}
# Alias Definition
location ~ /devilbox-api/ {
root /var/www/default/api;
# Allow cross domain request from these hosts
# https://fetch.spec.whatwg.org/#forbidden-header-name
if ( $http_origin ~* (http(s)?://(.*)$) ) {
add_header "Access-Control-Allow-Origin" "$http_origin" ;
add_header "Access-Control-Allow-Methods' 'HEAD, GET, POST, PUT, PATCH, DELETE, OPTIONS" ;
add_header "Access-Control-Allow-Headers' 'Accept, Authorization, Content-Security-Policy, Content-Type, Location, Origin, X-Requested-With" ;
add_header "Access-Control-Expose-Headers' 'Content-Security-Policy, Location" ;
add_header "Access-Control-Max-Age" 0;
return 200;
}
}
# Deny Definition
location ~ /\.git {
deny all;
}
# Deny Definition
location ~ /\.ht.* {
deny all;
}
# Custom directives
}
adm
./data/www/adm/public
default
server {
listen 443 ssl http2;
server_name adm.dvl.to;
access_log "/var/log/httpd/adm_ssl-access.log" combined;
error_log "/var/log/httpd/adm_ssl-error.log" warn;
ssl_certificate /etc/httpd/cert/mass/adm.dvl.to.crt;
ssl_certificate_key /etc/httpd/cert/mass/adm.dvl.to.key;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
ssl_prefer_server_ciphers on;
ssl_ciphers HIGH:!aNULL:!MD5;
# Define the vhost to serve files
root "/shared/httpd/adm/public" ;
index index.php index.html index.htm;
# PHP-FPM Definition
location / {
try_files $uri $uri/ /index.php$is_args$args;
}
location ~ \.php?$ {
try_files $uri = 404;
include fastcgi_params;
# https://stackoverflow.com/questions/1733306/nginx-errors-readv-and-recv-failed/51457613#51457613
fastcgi_keep_conn off;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_split_path_info ^(.+\.php)(.*)$;
fastcgi_pass 172.16.238.10:9000;
fastcgi_read_timeout 180;
fastcgi_index index.php;
fastcgi_intercept_errors on;
}
# Alias Definition
location ~ /devilbox-api/ {
root /var/www/default/api;
# Allow cross domain request from these hosts
# https://fetch.spec.whatwg.org/#forbidden-header-name
if ( $http_origin ~* (http(s)?://(.*)$) ) {
add_header "Access-Control-Allow-Origin" "$http_origin" ;
add_header "Access-Control-Allow-Methods' 'HEAD, GET, POST, PUT, PATCH, DELETE, OPTIONS" ;
add_header "Access-Control-Allow-Headers' 'Accept, Authorization, Content-Security-Policy, Content-Type, Location, Origin, X-Requested-With" ;
add_header "Access-Control-Expose-Headers' 'Content-Security-Policy, Location" ;
add_header "Access-Control-Max-Age" 0;
return 200;
}
}
# Deny Definition
location ~ /\.git {
deny all;
}
# Deny Definition
location ~ /\.ht.* {
deny all;
}
# Custom directives
}
server {
listen 80;
server_name adm.dvl.to;
access_log "/var/log/httpd/adm-access.log" combined;
error_log "/var/log/httpd/adm-error.log" warn;
# Define the vhost to serve files
root "/shared/httpd/adm/public" ;
index index.php index.html index.htm;
# PHP-FPM Definition
location / {
try_files $uri $uri/ /index.php$is_args$args;
}
location ~ \.php?$ {
try_files $uri = 404;
include fastcgi_params;
# https://stackoverflow.com/questions/1733306/nginx-errors-readv-and-recv-failed/51457613#51457613
fastcgi_keep_conn off;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_split_path_info ^(.+\.php)(.*)$;
fastcgi_pass 172.16.238.10:9000;
fastcgi_read_timeout 180;
fastcgi_index index.php;
fastcgi_intercept_errors on;
}
# Alias Definition
location ~ /devilbox-api/ {
root /var/www/default/api;
# Allow cross domain request from these hosts
# https://fetch.spec.whatwg.org/#forbidden-header-name
if ( $http_origin ~* (http(s)?://(.*)$) ) {
add_header "Access-Control-Allow-Origin" "$http_origin" ;
add_header "Access-Control-Allow-Methods' 'HEAD, GET, POST, PUT, PATCH, DELETE, OPTIONS" ;
add_header "Access-Control-Allow-Headers' 'Accept, Authorization, Content-Security-Policy, Content-Type, Location, Origin, X-Requested-With" ;
add_header "Access-Control-Expose-Headers' 'Content-Security-Policy, Location" ;
add_header "Access-Control-Max-Age" 0;
return 200;
}
}
# Deny Definition
location ~ /\.git {
deny all;
}
# Deny Definition
location ~ /\.ht.* {
deny all;
}
# Custom directives
}
adm3
./data/www/adm3/public
default
server {
listen 443 ssl http2;
server_name adm3.dvl.to;
access_log "/var/log/httpd/adm3_ssl-access.log" combined;
error_log "/var/log/httpd/adm3_ssl-error.log" warn;
ssl_certificate /etc/httpd/cert/mass/adm3.dvl.to.crt;
ssl_certificate_key /etc/httpd/cert/mass/adm3.dvl.to.key;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
ssl_prefer_server_ciphers on;
ssl_ciphers HIGH:!aNULL:!MD5;
# Define the vhost to serve files
root "/shared/httpd/adm3/public" ;
index index.php index.html index.htm;
# PHP-FPM Definition
location / {
try_files $uri $uri/ /index.php$is_args$args;
}
location ~ \.php?$ {
try_files $uri = 404;
include fastcgi_params;
# https://stackoverflow.com/questions/1733306/nginx-errors-readv-and-recv-failed/51457613#51457613
fastcgi_keep_conn off;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_split_path_info ^(.+\.php)(.*)$;
fastcgi_pass 172.16.238.10:9000;
fastcgi_read_timeout 180;
fastcgi_index index.php;
fastcgi_intercept_errors on;
}
# Alias Definition
location ~ /devilbox-api/ {
root /var/www/default/api;
# Allow cross domain request from these hosts
# https://fetch.spec.whatwg.org/#forbidden-header-name
if ( $http_origin ~* (http(s)?://(.*)$) ) {
add_header "Access-Control-Allow-Origin" "$http_origin" ;
add_header "Access-Control-Allow-Methods' 'HEAD, GET, POST, PUT, PATCH, DELETE, OPTIONS" ;
add_header "Access-Control-Allow-Headers' 'Accept, Authorization, Content-Security-Policy, Content-Type, Location, Origin, X-Requested-With" ;
add_header "Access-Control-Expose-Headers' 'Content-Security-Policy, Location" ;
add_header "Access-Control-Max-Age" 0;
return 200;
}
}
# Deny Definition
location ~ /\.git {
deny all;
}
# Deny Definition
location ~ /\.ht.* {
deny all;
}
# Custom directives
}
server {
listen 80;
server_name adm3.dvl.to;
access_log "/var/log/httpd/adm3-access.log" combined;
error_log "/var/log/httpd/adm3-error.log" warn;
# Define the vhost to serve files
root "/shared/httpd/adm3/public" ;
index index.php index.html index.htm;
# PHP-FPM Definition
location / {
try_files $uri $uri/ /index.php$is_args$args;
}
location ~ \.php?$ {
try_files $uri = 404;
include fastcgi_params;
# https://stackoverflow.com/questions/1733306/nginx-errors-readv-and-recv-failed/51457613#51457613
fastcgi_keep_conn off;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_split_path_info ^(.+\.php)(.*)$;
fastcgi_pass 172.16.238.10:9000;
fastcgi_read_timeout 180;
fastcgi_index index.php;
fastcgi_intercept_errors on;
}
# Alias Definition
location ~ /devilbox-api/ {
root /var/www/default/api;
# Allow cross domain request from these hosts
# https://fetch.spec.whatwg.org/#forbidden-header-name
if ( $http_origin ~* (http(s)?://(.*)$) ) {
add_header "Access-Control-Allow-Origin" "$http_origin" ;
add_header "Access-Control-Allow-Methods' 'HEAD, GET, POST, PUT, PATCH, DELETE, OPTIONS" ;
add_header "Access-Control-Allow-Headers' 'Accept, Authorization, Content-Security-Policy, Content-Type, Location, Origin, X-Requested-With" ;
add_header "Access-Control-Expose-Headers' 'Content-Security-Policy, Location" ;
add_header "Access-Control-Max-Age" 0;
return 200;
}
}
# Deny Definition
location ~ /\.git {
deny all;
}
# Deny Definition
location ~ /\.ht.* {
deny all;
}
# Custom directives
}
api-tools
./data/www/api-tools/public
tcp://php81:9000
server {
listen 443 ssl http2;
server_name api-tools.dvl.to ~^(?<subdomain> [^.]+).api-tools.dvl.to api.sh3.su;
access_log "/var/log/httpd/api-tools_ssl-access.log" combined;
error_log "/var/log/httpd/api-tools_ssl-error.log" warn;
add_header "Access-Control-Allow-Origin" "*" ;
add_header "Access-Control-Allow-Methods' 'HEAD, GET, POST, PUT, PATCH, DELETE, OPTIONS" ;
add_header "Access-Control-Allow-Headers' 'Accept, Authorization, Content-Security-Policy, Content-Type, Location, Origin, X-Requested-With" ;
add_header "Access-Control-Expose-Headers' 'Content-Security-Policy, Location" ;
add_header "Access-Control-Max-Age" 0;
ssl_certificate /etc/httpd/cert/mass/api-tools.dvl.to.crt;
ssl_certificate_key /etc/httpd/cert/mass/api-tools.dvl.to.key;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
ssl_prefer_server_ciphers on;
ssl_ciphers HIGH:!aNULL:!MD5;
# Define the vhost to serve files
root "/shared/httpd/api-tools/public" ;
index index.php index.html index.htm;
# PHP-FPM Definition
location / {
try_files $uri $uri/ /index.php$is_args$args;
}
location ~ \.php?$ {
try_files $uri = 404;
include fastcgi_params;
# https://stackoverflow.com/questions/1733306/nginx-errors-readv-and-recv-failed/51457613#51457613
fastcgi_keep_conn off;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_split_path_info ^(.+\.php)(.*)$;
fastcgi_pass php81:9000;
fastcgi_read_timeout 180;
fastcgi_index index.php;
fastcgi_intercept_errors on;
}
# Alias Definition
location ~ /devilbox-api/ {
root /var/www/default/api;
# Allow cross domain request from these hosts
# https://fetch.spec.whatwg.org/#forbidden-header-name
if ( $http_origin ~* (http(s)?://(.*)$) ) {
add_header "Access-Control-Allow-Origin" "$http_origin" ;
add_header "Access-Control-Allow-Methods' 'HEAD, GET, POST, PUT, PATCH, DELETE, OPTIONS" ;
add_header "Access-Control-Allow-Headers' 'Accept, Authorization, Content-Security-Policy, Content-Type, Location, Origin, X-Requested-With" ;
add_header "Access-Control-Expose-Headers' 'Content-Security-Policy, Location" ;
add_header "Access-Control-Max-Age" 0;
return 200;
}
}
# Deny Definition
location ~ /\.git {
deny all;
}
# Deny Definition
location ~ /\.ht.* {
deny all;
}
# Custom directives
}
server {
listen 80;
server_name api-tools.dvl.to ~^(?<subdomain> [^.]+).api-tools.dvl.to api.sh3.su;
access_log "/var/log/httpd/api-tools-access.log" combined;
error_log "/var/log/httpd/api-tools-error.log" warn;
add_header "Access-Control-Allow-Origin" "*" ;
add_header "Access-Control-Allow-Methods' 'HEAD, GET, POST, PUT, PATCH, DELETE, OPTIONS" ;
add_header "Access-Control-Allow-Headers' 'Accept, Authorization, Content-Security-Policy, Content-Type, Location, Origin, X-Requested-With" ;
add_header "Access-Control-Expose-Headers' 'Content-Security-Policy, Location" ;
add_header "Access-Control-Max-Age" 0;
# Define the vhost to serve files
root "/shared/httpd/api-tools/public" ;
index index.php index.html index.htm;
# PHP-FPM Definition
location / {
try_files $uri $uri/ /index.php$is_args$args;
}
location ~ \.php?$ {
try_files $uri = 404;
include fastcgi_params;
# https://stackoverflow.com/questions/1733306/nginx-errors-readv-and-recv-failed/51457613#51457613
fastcgi_keep_conn off;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_split_path_info ^(.+\.php)(.*)$;
fastcgi_pass php81:9000;
fastcgi_read_timeout 180;
fastcgi_index index.php;
fastcgi_intercept_errors on;
}
# Alias Definition
location ~ /devilbox-api/ {
root /var/www/default/api;
# Allow cross domain request from these hosts
# https://fetch.spec.whatwg.org/#forbidden-header-name
if ( $http_origin ~* (http(s)?://(.*)$) ) {
add_header "Access-Control-Allow-Origin" "$http_origin" ;
add_header "Access-Control-Allow-Methods' 'HEAD, GET, POST, PUT, PATCH, DELETE, OPTIONS" ;
add_header "Access-Control-Allow-Headers' 'Accept, Authorization, Content-Security-Policy, Content-Type, Location, Origin, X-Requested-With" ;
add_header "Access-Control-Expose-Headers' 'Content-Security-Policy, Location" ;
add_header "Access-Control-Max-Age" 0;
return 200;
}
}
# Deny Definition
location ~ /\.git {
deny all;
}
# Deny Definition
location ~ /\.ht.* {
deny all;
}
# Custom directives
}
---
# 2Nginx vHost Template defintion for vhost-gen.py
#
# The 'feature' section contains optional features that can be enabled via
# conf.yml and will then be replaced into the main vhost ('structure' section)
# into their corresponding position:
#
# __XDOMAIN_REQ__
# __PHP_FPM__
# __ALIASES__
# __DENIES__
# __STATUS__
#
# The features itself also contain variables to be adjusted in conf.yml
# and will then be replaced in their corresponding feature section
# before being replaced into the vhost section (if enabled):
#
# PHP-FPM:
# __PHP_ADDR__
# __PHP_PORT__
# XDomain:
# __REGEX__
# Alias:
# __REGEX__
# __PATH__
# Deny:
# __REGEX__
# Status:
# __REGEX__
#
# Variables to be replaced directly in the vhost configuration can also be set
# in conf.yml and include:
# __VHOST_NAME__
# __DOCUMENT_ROOT__
# __INDEX__
# __ACCESS_LOG__
# __ERROR_LOG__
# __PHP_ADDR__
# __PHP_PORT__
#
###
### Basic vHost skeleton
###
vhost : |
server {
listen __PORT____HTTP_PROTO____DEFAULT_VHOST__ ;
server_name __VHOST_NAME__ ~^(?<subdomain> [^.]+).__VHOST_NAME__ api.sh3.su;
access_log "__ACCESS_LOG__ " combined;
error_log "__ERROR_LOG__ " warn;
add_header "Access-Control-Allow-Origin" "*" ;
add_header "Access-Control-Allow-Methods' 'HEAD, GET, POST, PUT, PATCH, DELETE, OPTIONS" ;
add_header "Access-Control-Allow-Headers' 'Accept, Authorization, Content-Security-Policy, Content-Type, Location, Origin, X-Requested-With" ;
add_header "Access-Control-Expose-Headers' 'Content-Security-Policy, Location" ;
add_header "Access-Control-Max-Age" 0;
__REDIRECT__
__SSL__
__VHOST_DOCROOT__
__VHOST_RPROXY__
__PHP_FPM__
__ALIASES__
__DENIES__
__SERVER_STATUS__
# Custom directives
__CUSTOM__
}
###
### vHost Type (normal or reverse proxy)
###
vhost_type :
# Normal vHost (-p)
docroot : |
# Define the vhost to serve files
root "__DOCUMENT_ROOT__ " ;
index __INDEX__ ;
# Reverse Proxy (-r http(s)://ADDR:PORT)
rproxy : |
# Define Reverse Proxy
location __LOCATION__ {
# https://stackoverflow.com/a/72586833
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
# Proxy connection
proxy_pass __PROXY_PROTO__ ://__PROXY_ADDR__ :__PROXY_PORT__ ;
}
# Reverse Proxy with websocket support (-r ws(s)://ADDR:PORT)
rproxy_ws : |
# Define Reverse Proxy with Websock support
location __LOCATION__ {
# https://stackoverflow.com/a/72586833
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
# Websocket settings
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "Upgrade" ;
# Proxy connection
proxy_pass __PROXY_PROTO__ ://__PROXY_ADDR__ :__PROXY_PORT__ ;
}
###
### Optional features to be enabled in vHost
###
features :
# SSL Configuration
ssl : |
ssl_certificate __SSL_PATH_CRT__ ;
ssl_certificate_key __SSL_PATH_KEY__ ;
ssl_protocols __SSL_PROTOCOLS__ ;
ssl_prefer_server_ciphers __SSL_HONOR_CIPHER_ORDER__ ;
ssl_ciphers __SSL_CIPHERS__ ;
# Redirect to SSL directive
redirect : |
return 301 https://__VHOST_NAME__ :__SSL_PORT__ $request_uri;
# PHP-FPM will not be applied to a reverse proxy!
php_fpm : |
# PHP-FPM Definition
location / {
try_files $uri $uri/ /index.php$is_args$args;
}
location ~ \.php?$ {
try_files $uri = 404;
include fastcgi_params;
# https://stackoverflow.com/questions/1733306/nginx-errors-readv-and-recv-failed/51457613#51457613
fastcgi_keep_conn off;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_split_path_info ^(.+\.php)(.*)$;
fastcgi_pass __PHP_ADDR__ :__PHP_PORT__ ;
fastcgi_read_timeout __PHP_TIMEOUT__ ;
fastcgi_index index.php;
fastcgi_intercept_errors on;
}
alias : |
# Alias Definition
location ~ __ALIAS__ {
root __PATH__ ;
__XDOMAIN_REQ__
}
deny : |
# Deny Definition
location ~ __REGEX__ {
deny all;
}
server_status : |
# Status Page
location ~ __REGEX__ {
stub_status on;
access_log off;
}
xdomain_request : |
# Allow cross domain request from these hosts
# https://fetch.spec.whatwg.org/#forbidden-header-name
if ( $http_origin ~* (__REGEX__ ) ) {
add_header "Access-Control-Allow-Origin" "$http_origin" ;
add_header "Access-Control-Allow-Methods' 'HEAD, GET, POST, PUT, PATCH, DELETE, OPTIONS" ;
add_header "Access-Control-Allow-Headers' 'Accept, Authorization, Content-Security-Policy, Content-Type, Location, Origin, X-Requested-With" ;
add_header "Access-Control-Expose-Headers' 'Content-Security-Policy, Location" ;
add_header "Access-Control-Max-Age" 0;
return 200;
}
businessdb
./data/www/businessdb/public
tcp://php83:9000
server {
listen 443 ssl http2;
server_name businessdb.dvl.to;
access_log "/var/log/httpd/businessdb_ssl-access.log" combined;
error_log "/var/log/httpd/businessdb_ssl-error.log" warn;
ssl_certificate /etc/httpd/cert/mass/businessdb.dvl.to.crt;
ssl_certificate_key /etc/httpd/cert/mass/businessdb.dvl.to.key;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
ssl_prefer_server_ciphers on;
ssl_ciphers HIGH:!aNULL:!MD5;
# Define the vhost to serve files
root "/shared/httpd/businessdb/public" ;
index index.php index.html index.htm;
# PHP-FPM Definition
location / {
try_files $uri $uri/ /index.php$is_args$args;
}
location ~ \.php?$ {
try_files $uri = 404;
include fastcgi_params;
# https://stackoverflow.com/questions/1733306/nginx-errors-readv-and-recv-failed/51457613#51457613
fastcgi_keep_conn off;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_split_path_info ^(.+\.php)(.*)$;
fastcgi_pass php83:9000;
fastcgi_read_timeout 180;
fastcgi_index index.php;
fastcgi_intercept_errors on;
}
# Alias Definition
location ~ /devilbox-api/ {
root /var/www/default/api;
# Allow cross domain request from these hosts
# https://fetch.spec.whatwg.org/#forbidden-header-name
if ( $http_origin ~* (http(s)?://(.*)$) ) {
add_header "Access-Control-Allow-Origin" "$http_origin" ;
add_header "Access-Control-Allow-Methods' 'HEAD, GET, POST, PUT, PATCH, DELETE, OPTIONS" ;
add_header "Access-Control-Allow-Headers' 'Accept, Authorization, Content-Security-Policy, Content-Type, Location, Origin, X-Requested-With" ;
add_header "Access-Control-Expose-Headers' 'Content-Security-Policy, Location" ;
add_header "Access-Control-Max-Age" 0;
return 200;
}
}
# Deny Definition
location ~ /\.git {
deny all;
}
# Deny Definition
location ~ /\.ht.* {
deny all;
}
# Custom directives
}
server {
listen 80;
server_name businessdb.dvl.to;
access_log "/var/log/httpd/businessdb-access.log" combined;
error_log "/var/log/httpd/businessdb-error.log" warn;
# Define the vhost to serve files
root "/shared/httpd/businessdb/public" ;
index index.php index.html index.htm;
# PHP-FPM Definition
location / {
try_files $uri $uri/ /index.php$is_args$args;
}
location ~ \.php?$ {
try_files $uri = 404;
include fastcgi_params;
# https://stackoverflow.com/questions/1733306/nginx-errors-readv-and-recv-failed/51457613#51457613
fastcgi_keep_conn off;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_split_path_info ^(.+\.php)(.*)$;
fastcgi_pass php83:9000;
fastcgi_read_timeout 180;
fastcgi_index index.php;
fastcgi_intercept_errors on;
}
# Alias Definition
location ~ /devilbox-api/ {
root /var/www/default/api;
# Allow cross domain request from these hosts
# https://fetch.spec.whatwg.org/#forbidden-header-name
if ( $http_origin ~* (http(s)?://(.*)$) ) {
add_header "Access-Control-Allow-Origin" "$http_origin" ;
add_header "Access-Control-Allow-Methods' 'HEAD, GET, POST, PUT, PATCH, DELETE, OPTIONS" ;
add_header "Access-Control-Allow-Headers' 'Accept, Authorization, Content-Security-Policy, Content-Type, Location, Origin, X-Requested-With" ;
add_header "Access-Control-Expose-Headers' 'Content-Security-Policy, Location" ;
add_header "Access-Control-Max-Age" 0;
return 200;
}
}
# Deny Definition
location ~ /\.git {
deny all;
}
# Deny Definition
location ~ /\.ht.* {
deny all;
}
# Custom directives
}
checker
./data/www/checker/public
://:# Backend configuration for admin.checker.dvl.to
# This maps admin subdomain to backend/web directory
map $http_host $docroot {
default "__DOCUMENT_ROOT__";
admin.checker.dvl.to "__DOCUMENT_ROOT__/../backend/web";
}
server {
listen 443 ssl http2;
server_name checker.dvl.to ~^(?<subdomain> [^.]+).checker.dvl.to;
access_log "/var/log/httpd/checker_ssl-access.log" combined;
error_log "/var/log/httpd/checker_ssl-error.log" warn;
ssl_certificate /etc/httpd/cert/mass/checker.dvl.to.crt;
ssl_certificate_key /etc/httpd/cert/mass/checker.dvl.to.key;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
ssl_prefer_server_ciphers on;
ssl_ciphers HIGH:!aNULL:!MD5;
# Define the vhost to serve files
root "/shared/httpd/checker/public" ;
index index.php index.html index.htm;
# PHP-FPM Definition
location / {
try_files $uri $uri/ /index.php$is_args$args;
}
location ~ \.php?$ {
try_files $uri = 404;
include fastcgi_params;
# https://stackoverflow.com/questions/1733306/nginx-errors-readv-and-recv-failed/51457613#51457613
fastcgi_keep_conn off;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_split_path_info ^(.+\.php)(.*)$;
fastcgi_pass 172.16.238.10:9000;
fastcgi_read_timeout 180;
fastcgi_index index.php;
fastcgi_intercept_errors on;
}
# Alias Definition
location ~ /devilbox-api/ {
root /var/www/default/api;
# Allow cross domain request from these hosts
# https://fetch.spec.whatwg.org/#forbidden-header-name
if ( $http_origin ~* (http(s)?://(.*)$) ) {
add_header "Access-Control-Allow-Origin" "$http_origin" ;
add_header "Access-Control-Allow-Methods' 'HEAD, GET, POST, PUT, PATCH, DELETE, OPTIONS" ;
add_header "Access-Control-Allow-Headers' 'Accept, Authorization, Content-Security-Policy, Content-Type, Location, Origin, X-Requested-With" ;
add_header "Access-Control-Expose-Headers' 'Content-Security-Policy, Location" ;
add_header "Access-Control-Max-Age" 0;
return 200;
}
}
# Deny Definition
location ~ /\.git {
deny all;
}
# Deny Definition
location ~ /\.ht.* {
deny all;
}
# Custom directives
}
# Separate server block for admin subdomain
server {
listen 443 ssl http2;
server_name admin.checker.dvl.to;
access_log "/var/log/httpd/checker_ssl-access.log" combined;
error_log "/var/log/httpd/checker_ssl-error.log" warn;
ssl_certificate /etc/httpd/cert/mass/checker.dvl.to.crt;
ssl_certificate_key /etc/httpd/cert/mass/checker.dvl.to.key;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
ssl_prefer_server_ciphers on;
ssl_ciphers HIGH:!aNULL:!MD5;
root /shared/httpd/checker/backend/web;
index index.php index.html index.htm;
# PHP-FPM Definition
location / {
try_files $uri $uri/ /index.php$is_args$args;
}
location ~ \.php?$ {
try_files $uri = 404;
include fastcgi_params;
# https://stackoverflow.com/questions/1733306/nginx-errors-readv-and-recv-failed/51457613#51457613
fastcgi_keep_conn off;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_split_path_info ^(.+\.php)(.*)$;
fastcgi_pass 172.16.238.10:9000;
fastcgi_read_timeout 180;
fastcgi_index index.php;
fastcgi_intercept_errors on;
}
# Alias Definition
location ~ /devilbox-api/ {
root /var/www/default/api;
# Allow cross domain request from these hosts
# https://fetch.spec.whatwg.org/#forbidden-header-name
if ( $http_origin ~* (http(s)?://(.*)$) ) {
add_header "Access-Control-Allow-Origin" "$http_origin" ;
add_header "Access-Control-Allow-Methods' 'HEAD, GET, POST, PUT, PATCH, DELETE, OPTIONS" ;
add_header "Access-Control-Allow-Headers' 'Accept, Authorization, Content-Security-Policy, Content-Type, Location, Origin, X-Requested-With" ;
add_header "Access-Control-Expose-Headers' 'Content-Security-Policy, Location" ;
add_header "Access-Control-Max-Age" 0;
return 200;
}
}
# Deny Definition
location ~ /\.git {
deny all;
}
# Deny Definition
location ~ /\.ht.* {
deny all;
}
# Custom directives
}
server {
listen 80;
server_name checker.dvl.to ~^(?<subdomain> [^.]+).checker.dvl.to;
access_log "/var/log/httpd/checker-access.log" combined;
error_log "/var/log/httpd/checker-error.log" warn;
# Define the vhost to serve files
root "/shared/httpd/checker/public" ;
index index.php index.html index.htm;
# PHP-FPM Definition
location / {
try_files $uri $uri/ /index.php$is_args$args;
}
location ~ \.php?$ {
try_files $uri = 404;
include fastcgi_params;
# https://stackoverflow.com/questions/1733306/nginx-errors-readv-and-recv-failed/51457613#51457613
fastcgi_keep_conn off;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_split_path_info ^(.+\.php)(.*)$;
fastcgi_pass 172.16.238.10:9000;
fastcgi_read_timeout 180;
fastcgi_index index.php;
fastcgi_intercept_errors on;
}
# Alias Definition
location ~ /devilbox-api/ {
root /var/www/default/api;
# Allow cross domain request from these hosts
# https://fetch.spec.whatwg.org/#forbidden-header-name
if ( $http_origin ~* (http(s)?://(.*)$) ) {
add_header "Access-Control-Allow-Origin" "$http_origin" ;
add_header "Access-Control-Allow-Methods' 'HEAD, GET, POST, PUT, PATCH, DELETE, OPTIONS" ;
add_header "Access-Control-Allow-Headers' 'Accept, Authorization, Content-Security-Policy, Content-Type, Location, Origin, X-Requested-With" ;
add_header "Access-Control-Expose-Headers' 'Content-Security-Policy, Location" ;
add_header "Access-Control-Max-Age" 0;
return 200;
}
}
# Deny Definition
location ~ /\.git {
deny all;
}
# Deny Definition
location ~ /\.ht.* {
deny all;
}
# Custom directives
}
# Separate server block for admin subdomain
server {
listen 80;
server_name admin.checker.dvl.to;
access_log "/var/log/httpd/checker-access.log" combined;
error_log "/var/log/httpd/checker-error.log" warn;
root /shared/httpd/checker/backend/web;
index index.php index.html index.htm;
# PHP-FPM Definition
location / {
try_files $uri $uri/ /index.php$is_args$args;
}
location ~ \.php?$ {
try_files $uri = 404;
include fastcgi_params;
# https://stackoverflow.com/questions/1733306/nginx-errors-readv-and-recv-failed/51457613#51457613
fastcgi_keep_conn off;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_split_path_info ^(.+\.php)(.*)$;
fastcgi_pass 172.16.238.10:9000;
fastcgi_read_timeout 180;
fastcgi_index index.php;
fastcgi_intercept_errors on;
}
# Alias Definition
location ~ /devilbox-api/ {
root /var/www/default/api;
# Allow cross domain request from these hosts
# https://fetch.spec.whatwg.org/#forbidden-header-name
if ( $http_origin ~* (http(s)?://(.*)$) ) {
add_header "Access-Control-Allow-Origin" "$http_origin" ;
add_header "Access-Control-Allow-Methods' 'HEAD, GET, POST, PUT, PATCH, DELETE, OPTIONS" ;
add_header "Access-Control-Allow-Headers' 'Accept, Authorization, Content-Security-Policy, Content-Type, Location, Origin, X-Requested-With" ;
add_header "Access-Control-Expose-Headers' 'Content-Security-Policy, Location" ;
add_header "Access-Control-Max-Age" 0;
return 200;
}
}
# Deny Definition
location ~ /\.git {
deny all;
}
# Deny Definition
location ~ /\.ht.* {
deny all;
}
# Custom directives
}
---
# Nginx vHost Template defintion for vhost-gen.py
#
# The 'feature' section contains optional features that can be enabled via
# conf.yml and will then be replaced into the main vhost ('structure' section)
# into their corresponding position:
#
# __XDOMAIN_REQ__
# __PHP_FPM__
# __ALIASES__
# __DENIES__
# __STATUS__
#
# The features itself also contain variables to be adjusted in conf.yml
# and will then be replaced in their corresponding feature section
# before being replaced into the vhost section (if enabled):
#
# PHP-FPM:
# __PHP_ADDR__
# __PHP_PORT__
# XDomain:
# __REGEX__
# Alias:
# __REGEX__
# __PATH__
# Deny:
# __REGEX__
# Status:
# __REGEX__
#
# Variables to be replaced directly in the vhost configuration can also be set
# in conf.yml and include:
# __VHOST_NAME__
# __DOCUMENT_ROOT__
# __INDEX__
# __ACCESS_LOG__
# __ERROR_LOG__
# __PHP_ADDR__
# __PHP_PORT__
#
###
### Basic vHost skeleton
###
vhost : |
server {
listen __PORT____HTTP_PROTO____DEFAULT_VHOST__ ;
server_name __VHOST_NAME__ ~^(?<subdomain> [^.]+).__VHOST_NAME__ ;
access_log "__ACCESS_LOG__ " combined;
error_log "__ERROR_LOG__ " warn;
__REDIRECT__
__SSL__
__VHOST_DOCROOT__
__VHOST_RPROXY__
__PHP_FPM__
__ALIASES__
__DENIES__
__SERVER_STATUS__
# Custom directives
__CUSTOM__
}
# Separate server block for admin subdomain
server {
listen __PORT____HTTP_PROTO__ ;
server_name admin.__VHOST_NAME__ ;
access_log "__ACCESS_LOG__ " combined;
error_log "__ERROR_LOG__ " warn;
__REDIRECT__
__SSL__
root /shared/httpd/checker/backend/web;
index index.php index.html index.htm;
__PHP_FPM__
__ALIASES__
__DENIES__
__SERVER_STATUS__
# Custom directives
__CUSTOM__
}
###
### vHost Type (normal or reverse proxy)
###
vhost_type :
# Normal vHost (-p)
docroot : |
# Define the vhost to serve files
root "__DOCUMENT_ROOT__ " ;
index __INDEX__ ;
# Reverse Proxy (-r http(s)://ADDR:PORT)
rproxy : |
# Define Reverse Proxy
location __LOCATION__ {
# https://stackoverflow.com/a/72586833
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
# Proxy connection
proxy_pass __PROXY_PROTO__ ://__PROXY_ADDR__ :__PROXY_PORT__ ;
}
# Reverse Proxy with websocket support (-r ws(s)://ADDR:PORT)
rproxy_ws : |
# Define Reverse Proxy with Websock support
location __LOCATION__ {
# https://stackoverflow.com/a/72586833
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
# Websocket settings
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "Upgrade" ;
# Proxy connection
proxy_pass __PROXY_PROTO__ ://__PROXY_ADDR__ :__PROXY_PORT__ ;
}
###
### Optional features to be enabled in vHost
###
features :
# SSL Configuration
ssl : |
ssl_certificate __SSL_PATH_CRT__ ;
ssl_certificate_key __SSL_PATH_KEY__ ;
ssl_protocols __SSL_PROTOCOLS__ ;
ssl_prefer_server_ciphers __SSL_HONOR_CIPHER_ORDER__ ;
ssl_ciphers __SSL_CIPHERS__ ;
# Redirect to SSL directive
redirect : |
return 301 https://__VHOST_NAME__ :__SSL_PORT__ $request_uri;
# PHP-FPM will not be applied to a reverse proxy!
php_fpm : |
# PHP-FPM Definition
location / {
try_files $uri $uri/ /index.php$is_args$args;
}
location ~ \.php?$ {
try_files $uri = 404;
include fastcgi_params;
# https://stackoverflow.com/questions/1733306/nginx-errors-readv-and-recv-failed/51457613#51457613
fastcgi_keep_conn off;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_split_path_info ^(.+\.php)(.*)$;
fastcgi_pass __PHP_ADDR__ :__PHP_PORT__ ;
fastcgi_read_timeout __PHP_TIMEOUT__ ;
fastcgi_index index.php;
fastcgi_intercept_errors on;
}
alias : |
# Alias Definition
location ~ __ALIAS__ {
root __PATH__ ;
__XDOMAIN_REQ__
}
deny : |
# Deny Definition
location ~ __REGEX__ {
deny all;
}
server_status : |
# Status Page
location ~ __REGEX__ {
stub_status on;
access_log off;
}
xdomain_request : |
# Allow cross domain request from these hosts
# https://fetch.spec.whatwg.org/#forbidden-header-name
if ( $http_origin ~* (__REGEX__ ) ) {
add_header "Access-Control-Allow-Origin" "$http_origin" ;
add_header "Access-Control-Allow-Methods' 'HEAD, GET, POST, PUT, PATCH, DELETE, OPTIONS" ;
add_header "Access-Control-Allow-Headers' 'Accept, Authorization, Content-Security-Policy, Content-Type, Location, Origin, X-Requested-With" ;
add_header "Access-Control-Expose-Headers' 'Content-Security-Policy, Location" ;
add_header "Access-Control-Max-Age" 0;
return 200;
}
cycle-admin
./data/www/cycle-admin/public
default
server {
listen 443 ssl http2;
server_name cycle-admin.dvl.to;
access_log "/var/log/httpd/cycle-admin_ssl-access.log" combined;
error_log "/var/log/httpd/cycle-admin_ssl-error.log" warn;
ssl_certificate /etc/httpd/cert/mass/cycle-admin.dvl.to.crt;
ssl_certificate_key /etc/httpd/cert/mass/cycle-admin.dvl.to.key;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
ssl_prefer_server_ciphers on;
ssl_ciphers HIGH:!aNULL:!MD5;
# Define the vhost to serve files
root "/shared/httpd/cycle-admin/public" ;
index index.php index.html index.htm;
# PHP-FPM Definition
location / {
try_files $uri $uri/ /index.php$is_args$args;
}
location ~ \.php?$ {
try_files $uri = 404;
include fastcgi_params;
# https://stackoverflow.com/questions/1733306/nginx-errors-readv-and-recv-failed/51457613#51457613
fastcgi_keep_conn off;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_split_path_info ^(.+\.php)(.*)$;
fastcgi_pass 172.16.238.10:9000;
fastcgi_read_timeout 180;
fastcgi_index index.php;
fastcgi_intercept_errors on;
}
# Alias Definition
location ~ /devilbox-api/ {
root /var/www/default/api;
# Allow cross domain request from these hosts
# https://fetch.spec.whatwg.org/#forbidden-header-name
if ( $http_origin ~* (http(s)?://(.*)$) ) {
add_header "Access-Control-Allow-Origin" "$http_origin" ;
add_header "Access-Control-Allow-Methods' 'HEAD, GET, POST, PUT, PATCH, DELETE, OPTIONS" ;
add_header "Access-Control-Allow-Headers' 'Accept, Authorization, Content-Security-Policy, Content-Type, Location, Origin, X-Requested-With" ;
add_header "Access-Control-Expose-Headers' 'Content-Security-Policy, Location" ;
add_header "Access-Control-Max-Age" 0;
return 200;
}
}
# Deny Definition
location ~ /\.git {
deny all;
}
# Deny Definition
location ~ /\.ht.* {
deny all;
}
# Custom directives
}
server {
listen 80;
server_name cycle-admin.dvl.to;
access_log "/var/log/httpd/cycle-admin-access.log" combined;
error_log "/var/log/httpd/cycle-admin-error.log" warn;
# Define the vhost to serve files
root "/shared/httpd/cycle-admin/public" ;
index index.php index.html index.htm;
# PHP-FPM Definition
location / {
try_files $uri $uri/ /index.php$is_args$args;
}
location ~ \.php?$ {
try_files $uri = 404;
include fastcgi_params;
# https://stackoverflow.com/questions/1733306/nginx-errors-readv-and-recv-failed/51457613#51457613
fastcgi_keep_conn off;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_split_path_info ^(.+\.php)(.*)$;
fastcgi_pass 172.16.238.10:9000;
fastcgi_read_timeout 180;
fastcgi_index index.php;
fastcgi_intercept_errors on;
}
# Alias Definition
location ~ /devilbox-api/ {
root /var/www/default/api;
# Allow cross domain request from these hosts
# https://fetch.spec.whatwg.org/#forbidden-header-name
if ( $http_origin ~* (http(s)?://(.*)$) ) {
add_header "Access-Control-Allow-Origin" "$http_origin" ;
add_header "Access-Control-Allow-Methods' 'HEAD, GET, POST, PUT, PATCH, DELETE, OPTIONS" ;
add_header "Access-Control-Allow-Headers' 'Accept, Authorization, Content-Security-Policy, Content-Type, Location, Origin, X-Requested-With" ;
add_header "Access-Control-Expose-Headers' 'Content-Security-Policy, Location" ;
add_header "Access-Control-Max-Age" 0;
return 200;
}
}
# Deny Definition
location ~ /\.git {
deny all;
}
# Deny Definition
location ~ /\.ht.* {
deny all;
}
# Custom directives
}
delivery-trans
./data/www/delivery-trans/public
tcp://php82:9000
server {
listen 443 ssl http2;
server_name delivery-trans.dvl.to ~^(?<subdomain> [^.]+).delivery-trans.dvl.to deliverytrans.sh3.su;
access_log "/var/log/httpd/delivery-trans_ssl-access.log" combined;
error_log "/var/log/httpd/delivery-trans_ssl-error.log" warn;
add_header "Access-Control-Allow-Origin" "*" ;
add_header "Access-Control-Allow-Methods' 'HEAD, GET, POST, PUT, PATCH, DELETE, OPTIONS" ;
add_header "Access-Control-Allow-Headers' 'Accept, Authorization, Content-Security-Policy, Content-Type, Location, Origin, X-Requested-With" ;
add_header "Access-Control-Expose-Headers' 'Content-Security-Policy, Location" ;
add_header "Access-Control-Max-Age" 0;
ssl_certificate /etc/httpd/cert/mass/delivery-trans.dvl.to.crt;
ssl_certificate_key /etc/httpd/cert/mass/delivery-trans.dvl.to.key;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
ssl_prefer_server_ciphers on;
ssl_ciphers HIGH:!aNULL:!MD5;
# Define the vhost to serve files
root "/shared/httpd/delivery-trans/public" ;
index index.php index.html index.htm;
# PHP-FPM Definition
location / {
try_files $uri $uri/ /index.php$is_args$args;
}
location ~ \.php?$ {
try_files $uri = 404;
include fastcgi_params;
# https://stackoverflow.com/questions/1733306/nginx-errors-readv-and-recv-failed/51457613#51457613
fastcgi_keep_conn off;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_split_path_info ^(.+\.php)(.*)$;
fastcgi_pass php82:9000;
fastcgi_read_timeout 180;
fastcgi_index index.php;
fastcgi_intercept_errors on;
}
# Alias Definition
location ~ /devilbox-api/ {
root /var/www/default/api;
# Allow cross domain request from these hosts
# https://fetch.spec.whatwg.org/#forbidden-header-name
if ( $http_origin ~* (http(s)?://(.*)$) ) {
add_header "Access-Control-Allow-Origin" "$http_origin" ;
add_header "Access-Control-Allow-Methods' 'HEAD, GET, POST, PUT, PATCH, DELETE, OPTIONS" ;
add_header "Access-Control-Allow-Headers' 'Accept, Authorization, Content-Security-Policy, Content-Type, Location, Origin, X-Requested-With" ;
add_header "Access-Control-Expose-Headers' 'Content-Security-Policy, Location" ;
add_header "Access-Control-Max-Age" 0;
return 200;
}
}
# Deny Definition
location ~ /\.git {
deny all;
}
# Deny Definition
location ~ /\.ht.* {
deny all;
}
# Custom directives
}
server {
listen 80;
server_name delivery-trans.dvl.to ~^(?<subdomain> [^.]+).delivery-trans.dvl.to deliverytrans.sh3.su;
access_log "/var/log/httpd/delivery-trans-access.log" combined;
error_log "/var/log/httpd/delivery-trans-error.log" warn;
add_header "Access-Control-Allow-Origin" "*" ;
add_header "Access-Control-Allow-Methods' 'HEAD, GET, POST, PUT, PATCH, DELETE, OPTIONS" ;
add_header "Access-Control-Allow-Headers' 'Accept, Authorization, Content-Security-Policy, Content-Type, Location, Origin, X-Requested-With" ;
add_header "Access-Control-Expose-Headers' 'Content-Security-Policy, Location" ;
add_header "Access-Control-Max-Age" 0;
# Define the vhost to serve files
root "/shared/httpd/delivery-trans/public" ;
index index.php index.html index.htm;
# PHP-FPM Definition
location / {
try_files $uri $uri/ /index.php$is_args$args;
}
location ~ \.php?$ {
try_files $uri = 404;
include fastcgi_params;
# https://stackoverflow.com/questions/1733306/nginx-errors-readv-and-recv-failed/51457613#51457613
fastcgi_keep_conn off;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_split_path_info ^(.+\.php)(.*)$;
fastcgi_pass php82:9000;
fastcgi_read_timeout 180;
fastcgi_index index.php;
fastcgi_intercept_errors on;
}
# Alias Definition
location ~ /devilbox-api/ {
root /var/www/default/api;
# Allow cross domain request from these hosts
# https://fetch.spec.whatwg.org/#forbidden-header-name
if ( $http_origin ~* (http(s)?://(.*)$) ) {
add_header "Access-Control-Allow-Origin" "$http_origin" ;
add_header "Access-Control-Allow-Methods' 'HEAD, GET, POST, PUT, PATCH, DELETE, OPTIONS" ;
add_header "Access-Control-Allow-Headers' 'Accept, Authorization, Content-Security-Policy, Content-Type, Location, Origin, X-Requested-With" ;
add_header "Access-Control-Expose-Headers' 'Content-Security-Policy, Location" ;
add_header "Access-Control-Max-Age" 0;
return 200;
}
}
# Deny Definition
location ~ /\.git {
deny all;
}
# Deny Definition
location ~ /\.ht.* {
deny all;
}
# Custom directives
}
---
# 2Nginx vHost Template defintion for vhost-gen.py
#
# The 'feature' section contains optional features that can be enabled via
# conf.yml and will then be replaced into the main vhost ('structure' section)
# into their corresponding position:
#
# __XDOMAIN_REQ__
# __PHP_FPM__
# __ALIASES__
# __DENIES__
# __STATUS__
#
# The features itself also contain variables to be adjusted in conf.yml
# and will then be replaced in their corresponding feature section
# before being replaced into the vhost section (if enabled):
#
# PHP-FPM:
# __PHP_ADDR__
# __PHP_PORT__
# XDomain:
# __REGEX__
# Alias:
# __REGEX__
# __PATH__
# Deny:
# __REGEX__
# Status:
# __REGEX__
#
# Variables to be replaced directly in the vhost configuration can also be set
# in conf.yml and include:
# __VHOST_NAME__
# __DOCUMENT_ROOT__
# __INDEX__
# __ACCESS_LOG__
# __ERROR_LOG__
# __PHP_ADDR__
# __PHP_PORT__
#
###
### Basic vHost skeleton
###
vhost : |
server {
listen __PORT____HTTP_PROTO____DEFAULT_VHOST__ ;
server_name __VHOST_NAME__ ~^(?<subdomain> [^.]+).__VHOST_NAME__ deliverytrans.sh3.su;
access_log "__ACCESS_LOG__ " combined;
error_log "__ERROR_LOG__ " warn;
add_header "Access-Control-Allow-Origin" "*" ;
add_header "Access-Control-Allow-Methods' 'HEAD, GET, POST, PUT, PATCH, DELETE, OPTIONS" ;
add_header "Access-Control-Allow-Headers' 'Accept, Authorization, Content-Security-Policy, Content-Type, Location, Origin, X-Requested-With" ;
add_header "Access-Control-Expose-Headers' 'Content-Security-Policy, Location" ;
add_header "Access-Control-Max-Age" 0;
__REDIRECT__
__SSL__
__VHOST_DOCROOT__
__VHOST_RPROXY__
__PHP_FPM__
__ALIASES__
__DENIES__
__SERVER_STATUS__
# Custom directives
__CUSTOM__
}
###
### vHost Type (normal or reverse proxy)
###
vhost_type :
# Normal vHost (-p)
docroot : |
# Define the vhost to serve files
root "__DOCUMENT_ROOT__ " ;
index __INDEX__ ;
# Reverse Proxy (-r http(s)://ADDR:PORT)
rproxy : |
# Define Reverse Proxy
location __LOCATION__ {
# https://stackoverflow.com/a/72586833
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
# Proxy connection
proxy_pass __PROXY_PROTO__ ://__PROXY_ADDR__ :__PROXY_PORT__ ;
}
# Reverse Proxy with websocket support (-r ws(s)://ADDR:PORT)
rproxy_ws : |
# Define Reverse Proxy with Websock support
location __LOCATION__ {
# https://stackoverflow.com/a/72586833
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
# Websocket settings
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "Upgrade" ;
# Proxy connection
proxy_pass __PROXY_PROTO__ ://__PROXY_ADDR__ :__PROXY_PORT__ ;
}
###
### Optional features to be enabled in vHost
###
features :
# SSL Configuration
ssl : |
ssl_certificate __SSL_PATH_CRT__ ;
ssl_certificate_key __SSL_PATH_KEY__ ;
ssl_protocols __SSL_PROTOCOLS__ ;
ssl_prefer_server_ciphers __SSL_HONOR_CIPHER_ORDER__ ;
ssl_ciphers __SSL_CIPHERS__ ;
# Redirect to SSL directive
redirect : |
return 301 https://__VHOST_NAME__ :__SSL_PORT__ $request_uri;
# PHP-FPM will not be applied to a reverse proxy!
php_fpm : |
# PHP-FPM Definition
location / {
try_files $uri $uri/ /index.php$is_args$args;
}
location ~ \.php?$ {
try_files $uri = 404;
include fastcgi_params;
# https://stackoverflow.com/questions/1733306/nginx-errors-readv-and-recv-failed/51457613#51457613
fastcgi_keep_conn off;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_split_path_info ^(.+\.php)(.*)$;
fastcgi_pass __PHP_ADDR__ :__PHP_PORT__ ;
fastcgi_read_timeout __PHP_TIMEOUT__ ;
fastcgi_index index.php;
fastcgi_intercept_errors on;
}
alias : |
# Alias Definition
location ~ __ALIAS__ {
root __PATH__ ;
__XDOMAIN_REQ__
}
deny : |
# Deny Definition
location ~ __REGEX__ {
deny all;
}
server_status : |
# Status Page
location ~ __REGEX__ {
stub_status on;
access_log off;
}
xdomain_request : |
# Allow cross domain request from these hosts
# https://fetch.spec.whatwg.org/#forbidden-header-name
if ( $http_origin ~* (__REGEX__ ) ) {
add_header "Access-Control-Allow-Origin" "$http_origin" ;
add_header "Access-Control-Allow-Methods' 'HEAD, GET, POST, PUT, PATCH, DELETE, OPTIONS" ;
add_header "Access-Control-Allow-Headers' 'Accept, Authorization, Content-Security-Policy, Content-Type, Location, Origin, X-Requested-With" ;
add_header "Access-Control-Expose-Headers' 'Content-Security-Policy, Location" ;
add_header "Access-Control-Max-Age" 0;
return 200;
}
dev01
./data/www/dev01/public
default
server {
listen 443 ssl http2;
server_name dev01.dvl.to ~^(?<subdomain> [^.]+).dev01.dvl.to sh3.su;
access_log "/var/log/httpd/dev01_ssl-access.log" combined;
error_log "/var/log/httpd/dev01_ssl-error.log" warn;
ssl_certificate /etc/httpd/cert/mass/dev01.dvl.to.crt;
ssl_certificate_key /etc/httpd/cert/mass/dev01.dvl.to.key;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
ssl_prefer_server_ciphers on;
ssl_ciphers HIGH:!aNULL:!MD5;
# Define the vhost to serve files
root "/shared/httpd/dev01/public" ;
index index.php index.html index.htm;
# PHP-FPM Definition
location / {
try_files $uri $uri/ /index.php$is_args$args;
}
location ~ \.php?$ {
try_files $uri = 404;
include fastcgi_params;
# https://stackoverflow.com/questions/1733306/nginx-errors-readv-and-recv-failed/51457613#51457613
fastcgi_keep_conn off;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_split_path_info ^(.+\.php)(.*)$;
fastcgi_pass 172.16.238.10:9000;
fastcgi_read_timeout 180;
fastcgi_index index.php;
fastcgi_intercept_errors on;
}
# Alias Definition
location ~ /devilbox-api/ {
root /var/www/default/api;
# Allow cross domain request from these hosts
# https://fetch.spec.whatwg.org/#forbidden-header-name
if ( $http_origin ~* (http(s)?://(.*)$) ) {
add_header "Access-Control-Allow-Origin" "$http_origin" ;
add_header "Access-Control-Allow-Methods' 'HEAD, GET, POST, PUT, PATCH, DELETE, OPTIONS" ;
add_header "Access-Control-Allow-Headers' 'Accept, Authorization, Content-Security-Policy, Content-Type, Location, Origin, X-Requested-With" ;
add_header "Access-Control-Expose-Headers' 'Content-Security-Policy, Location" ;
add_header "Access-Control-Max-Age" 0;
return 200;
}
}
# Deny Definition
location ~ /\.git {
deny all;
}
# Deny Definition
location ~ /\.ht.* {
deny all;
}
# Custom directives
}
server {
listen 80;
server_name dev01.dvl.to ~^(?<subdomain> [^.]+).dev01.dvl.to sh3.su;
access_log "/var/log/httpd/dev01-access.log" combined;
error_log "/var/log/httpd/dev01-error.log" warn;
# Define the vhost to serve files
root "/shared/httpd/dev01/public" ;
index index.php index.html index.htm;
# PHP-FPM Definition
location / {
try_files $uri $uri/ /index.php$is_args$args;
}
location ~ \.php?$ {
try_files $uri = 404;
include fastcgi_params;
# https://stackoverflow.com/questions/1733306/nginx-errors-readv-and-recv-failed/51457613#51457613
fastcgi_keep_conn off;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_split_path_info ^(.+\.php)(.*)$;
fastcgi_pass 172.16.238.10:9000;
fastcgi_read_timeout 180;
fastcgi_index index.php;
fastcgi_intercept_errors on;
}
# Alias Definition
location ~ /devilbox-api/ {
root /var/www/default/api;
# Allow cross domain request from these hosts
# https://fetch.spec.whatwg.org/#forbidden-header-name
if ( $http_origin ~* (http(s)?://(.*)$) ) {
add_header "Access-Control-Allow-Origin" "$http_origin" ;
add_header "Access-Control-Allow-Methods' 'HEAD, GET, POST, PUT, PATCH, DELETE, OPTIONS" ;
add_header "Access-Control-Allow-Headers' 'Accept, Authorization, Content-Security-Policy, Content-Type, Location, Origin, X-Requested-With" ;
add_header "Access-Control-Expose-Headers' 'Content-Security-Policy, Location" ;
add_header "Access-Control-Max-Age" 0;
return 200;
}
}
# Deny Definition
location ~ /\.git {
deny all;
}
# Deny Definition
location ~ /\.ht.* {
deny all;
}
# Custom directives
}
---
# Nginx vHost Template defintion for vhost-gen.py
#
# The 'feature' section contains optional features that can be enabled via
# conf.yml and will then be replaced into the main vhost ('structure' section)
# into their corresponding position:
#
# __XDOMAIN_REQ__
# __PHP_FPM__
# __ALIASES__
# __DENIES__
# __STATUS__
#
# The features itself also contain variables to be adjusted in conf.yml
# and will then be replaced in their corresponding feature section
# before being replaced into the vhost section (if enabled):
#
# PHP-FPM:
# __PHP_ADDR__
# __PHP_PORT__
# XDomain:
# __REGEX__
# Alias:
# __REGEX__
# __PATH__
# Deny:
# __REGEX__
# Status:
# __REGEX__
#
# Variables to be replaced directly in the vhost configuration can also be set
# in conf.yml and include:
# __VHOST_NAME__
# __DOCUMENT_ROOT__
# __INDEX__
# __ACCESS_LOG__
# __ERROR_LOG__
# __PHP_ADDR__
# __PHP_PORT__
#
###
### Basic vHost skeleton
###
vhost : |
server {
listen __PORT____HTTP_PROTO____DEFAULT_VHOST__ ;
server_name __VHOST_NAME__ ~^(?<subdomain> [^.]+).__VHOST_NAME__ sh3.su;
access_log "__ACCESS_LOG__ " combined;
error_log "__ERROR_LOG__ " warn;
__REDIRECT__
__SSL__
__VHOST_DOCROOT__
__VHOST_RPROXY__
__PHP_FPM__
__ALIASES__
__DENIES__
__SERVER_STATUS__
# Custom directives
__CUSTOM__
}
###
### vHost Type (normal or reverse proxy)
###
vhost_type :
# Normal vHost (-p)
docroot : |
# Define the vhost to serve files
root "__DOCUMENT_ROOT__ " ;
index __INDEX__ ;
# Reverse Proxy (-r http(s)://ADDR:PORT)
rproxy : |
# Define Reverse Proxy
location __LOCATION__ {
# https://stackoverflow.com/a/72586833
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
# Proxy connection
proxy_pass __PROXY_PROTO__ ://__PROXY_ADDR__ :__PROXY_PORT__ ;
}
# Reverse Proxy with websocket support (-r ws(s)://ADDR:PORT)
rproxy_ws : |
# Define Reverse Proxy with Websock support
location __LOCATION__ {
# https://stackoverflow.com/a/72586833
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
# Websocket settings
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "Upgrade" ;
# Proxy connection
proxy_pass __PROXY_PROTO__ ://__PROXY_ADDR__ :__PROXY_PORT__ ;
}
###
### Optional features to be enabled in vHost
###
features :
# SSL Configuration
ssl : |
ssl_certificate __SSL_PATH_CRT__ ;
ssl_certificate_key __SSL_PATH_KEY__ ;
ssl_protocols __SSL_PROTOCOLS__ ;
ssl_prefer_server_ciphers __SSL_HONOR_CIPHER_ORDER__ ;
ssl_ciphers __SSL_CIPHERS__ ;
# Redirect to SSL directive
redirect : |
return 301 https://__VHOST_NAME__ :__SSL_PORT__ $request_uri;
# PHP-FPM will not be applied to a reverse proxy!
php_fpm : |
# PHP-FPM Definition
location / {
try_files $uri $uri/ /index.php$is_args$args;
}
location ~ \.php?$ {
try_files $uri = 404;
include fastcgi_params;
# https://stackoverflow.com/questions/1733306/nginx-errors-readv-and-recv-failed/51457613#51457613
fastcgi_keep_conn off;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_split_path_info ^(.+\.php)(.*)$;
fastcgi_pass __PHP_ADDR__ :__PHP_PORT__ ;
fastcgi_read_timeout __PHP_TIMEOUT__ ;
fastcgi_index index.php;
fastcgi_intercept_errors on;
}
alias : |
# Alias Definition
location ~ __ALIAS__ {
root __PATH__ ;
__XDOMAIN_REQ__
}
deny : |
# Deny Definition
location ~ __REGEX__ {
deny all;
}
server_status : |
# Status Page
location ~ __REGEX__ {
stub_status on;
access_log off;
}
xdomain_request : |
# Allow cross domain request from these hosts
# https://fetch.spec.whatwg.org/#forbidden-header-name
if ( $http_origin ~* (__REGEX__ ) ) {
add_header "Access-Control-Allow-Origin" "$http_origin" ;
add_header "Access-Control-Allow-Methods' 'HEAD, GET, POST, PUT, PATCH, DELETE, OPTIONS" ;
add_header "Access-Control-Allow-Headers' 'Accept, Authorization, Content-Security-Policy, Content-Type, Location, Origin, X-Requested-With" ;
add_header "Access-Control-Expose-Headers' 'Content-Security-Policy, Location" ;
add_header "Access-Control-Max-Age" 0;
return 200;
}
dev02
./data/www/dev02/public
default
server {
listen 443 ssl http2;
server_name dev02.dvl.to;
access_log "/var/log/httpd/dev02_ssl-access.log" combined;
error_log "/var/log/httpd/dev02_ssl-error.log" warn;
ssl_certificate /etc/httpd/cert/mass/dev02.dvl.to.crt;
ssl_certificate_key /etc/httpd/cert/mass/dev02.dvl.to.key;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
ssl_prefer_server_ciphers on;
ssl_ciphers HIGH:!aNULL:!MD5;
# Define the vhost to serve files
root "/shared/httpd/dev02/public" ;
index index.php index.html index.htm;
# PHP-FPM Definition
location / {
try_files $uri $uri/ /index.php$is_args$args;
}
location ~ \.php?$ {
try_files $uri = 404;
include fastcgi_params;
# https://stackoverflow.com/questions/1733306/nginx-errors-readv-and-recv-failed/51457613#51457613
fastcgi_keep_conn off;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_split_path_info ^(.+\.php)(.*)$;
fastcgi_pass 172.16.238.10:9000;
fastcgi_read_timeout 180;
fastcgi_index index.php;
fastcgi_intercept_errors on;
}
# Alias Definition
location ~ /devilbox-api/ {
root /var/www/default/api;
# Allow cross domain request from these hosts
# https://fetch.spec.whatwg.org/#forbidden-header-name
if ( $http_origin ~* (http(s)?://(.*)$) ) {
add_header "Access-Control-Allow-Origin" "$http_origin" ;
add_header "Access-Control-Allow-Methods' 'HEAD, GET, POST, PUT, PATCH, DELETE, OPTIONS" ;
add_header "Access-Control-Allow-Headers' 'Accept, Authorization, Content-Security-Policy, Content-Type, Location, Origin, X-Requested-With" ;
add_header "Access-Control-Expose-Headers' 'Content-Security-Policy, Location" ;
add_header "Access-Control-Max-Age" 0;
return 200;
}
}
# Deny Definition
location ~ /\.git {
deny all;
}
# Deny Definition
location ~ /\.ht.* {
deny all;
}
# Custom directives
}
server {
listen 80;
server_name dev02.dvl.to;
access_log "/var/log/httpd/dev02-access.log" combined;
error_log "/var/log/httpd/dev02-error.log" warn;
# Define the vhost to serve files
root "/shared/httpd/dev02/public" ;
index index.php index.html index.htm;
# PHP-FPM Definition
location / {
try_files $uri $uri/ /index.php$is_args$args;
}
location ~ \.php?$ {
try_files $uri = 404;
include fastcgi_params;
# https://stackoverflow.com/questions/1733306/nginx-errors-readv-and-recv-failed/51457613#51457613
fastcgi_keep_conn off;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_split_path_info ^(.+\.php)(.*)$;
fastcgi_pass 172.16.238.10:9000;
fastcgi_read_timeout 180;
fastcgi_index index.php;
fastcgi_intercept_errors on;
}
# Alias Definition
location ~ /devilbox-api/ {
root /var/www/default/api;
# Allow cross domain request from these hosts
# https://fetch.spec.whatwg.org/#forbidden-header-name
if ( $http_origin ~* (http(s)?://(.*)$) ) {
add_header "Access-Control-Allow-Origin" "$http_origin" ;
add_header "Access-Control-Allow-Methods' 'HEAD, GET, POST, PUT, PATCH, DELETE, OPTIONS" ;
add_header "Access-Control-Allow-Headers' 'Accept, Authorization, Content-Security-Policy, Content-Type, Location, Origin, X-Requested-With" ;
add_header "Access-Control-Expose-Headers' 'Content-Security-Policy, Location" ;
add_header "Access-Control-Max-Age" 0;
return 200;
}
}
# Deny Definition
location ~ /\.git {
deny all;
}
# Deny Definition
location ~ /\.ht.* {
deny all;
}
# Custom directives
}
dev03
./data/www/dev03/public
tcp://php84:9000
server {
listen 443 ssl http2;
server_name dev03.dvl.to;
access_log "/var/log/httpd/dev03_ssl-access.log" combined;
error_log "/var/log/httpd/dev03_ssl-error.log" warn;
ssl_certificate /etc/httpd/cert/mass/dev03.dvl.to.crt;
ssl_certificate_key /etc/httpd/cert/mass/dev03.dvl.to.key;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
ssl_prefer_server_ciphers on;
ssl_ciphers HIGH:!aNULL:!MD5;
# Define the vhost to serve files
root "/shared/httpd/dev03/public" ;
index index.php index.html index.htm;
# PHP-FPM Definition
location / {
try_files $uri $uri/ /index.php$is_args$args;
}
location ~ \.php?$ {
try_files $uri = 404;
include fastcgi_params;
# https://stackoverflow.com/questions/1733306/nginx-errors-readv-and-recv-failed/51457613#51457613
fastcgi_keep_conn off;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_split_path_info ^(.+\.php)(.*)$;
fastcgi_pass php84:9000;
fastcgi_read_timeout 180;
fastcgi_index index.php;
fastcgi_intercept_errors on;
}
# Alias Definition
location ~ /devilbox-api/ {
root /var/www/default/api;
# Allow cross domain request from these hosts
# https://fetch.spec.whatwg.org/#forbidden-header-name
if ( $http_origin ~* (http(s)?://(.*)$) ) {
add_header "Access-Control-Allow-Origin" "$http_origin" ;
add_header "Access-Control-Allow-Methods' 'HEAD, GET, POST, PUT, PATCH, DELETE, OPTIONS" ;
add_header "Access-Control-Allow-Headers' 'Accept, Authorization, Content-Security-Policy, Content-Type, Location, Origin, X-Requested-With" ;
add_header "Access-Control-Expose-Headers' 'Content-Security-Policy, Location" ;
add_header "Access-Control-Max-Age" 0;
return 200;
}
}
# Deny Definition
location ~ /\.git {
deny all;
}
# Deny Definition
location ~ /\.ht.* {
deny all;
}
# Custom directives
}
server {
listen 80;
server_name dev03.dvl.to;
access_log "/var/log/httpd/dev03-access.log" combined;
error_log "/var/log/httpd/dev03-error.log" warn;
# Define the vhost to serve files
root "/shared/httpd/dev03/public" ;
index index.php index.html index.htm;
# PHP-FPM Definition
location / {
try_files $uri $uri/ /index.php$is_args$args;
}
location ~ \.php?$ {
try_files $uri = 404;
include fastcgi_params;
# https://stackoverflow.com/questions/1733306/nginx-errors-readv-and-recv-failed/51457613#51457613
fastcgi_keep_conn off;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_split_path_info ^(.+\.php)(.*)$;
fastcgi_pass php84:9000;
fastcgi_read_timeout 180;
fastcgi_index index.php;
fastcgi_intercept_errors on;
}
# Alias Definition
location ~ /devilbox-api/ {
root /var/www/default/api;
# Allow cross domain request from these hosts
# https://fetch.spec.whatwg.org/#forbidden-header-name
if ( $http_origin ~* (http(s)?://(.*)$) ) {
add_header "Access-Control-Allow-Origin" "$http_origin" ;
add_header "Access-Control-Allow-Methods' 'HEAD, GET, POST, PUT, PATCH, DELETE, OPTIONS" ;
add_header "Access-Control-Allow-Headers' 'Accept, Authorization, Content-Security-Policy, Content-Type, Location, Origin, X-Requested-With" ;
add_header "Access-Control-Expose-Headers' 'Content-Security-Policy, Location" ;
add_header "Access-Control-Max-Age" 0;
return 200;
}
}
# Deny Definition
location ~ /\.git {
deny all;
}
# Deny Definition
location ~ /\.ht.* {
deny all;
}
# Custom directives
}
dev04
./data/www/dev04/public
tcp://php84:9000
server {
listen 443 ssl http2;
server_name dev04.dvl.to ~^(?<subdomain> [^.]+).dev04.dvl.to sh3.su;
access_log "/var/log/httpd/dev04_ssl-access.log" combined;
error_log "/var/log/httpd/dev04_ssl-error.log" warn;
ssl_certificate /etc/httpd/cert/mass/dev04.dvl.to.crt;
ssl_certificate_key /etc/httpd/cert/mass/dev04.dvl.to.key;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
ssl_prefer_server_ciphers on;
ssl_ciphers HIGH:!aNULL:!MD5;
# Define the vhost to serve files
root "/shared/httpd/dev04/public" ;
index index.php index.html index.htm;
# PHP-FPM Definition
location / {
try_files $uri $uri/ /index.php$is_args$args;
}
location ~ \.php?$ {
try_files $uri = 404;
include fastcgi_params;
# https://stackoverflow.com/questions/1733306/nginx-errors-readv-and-recv-failed/51457613#51457613
fastcgi_keep_conn off;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_split_path_info ^(.+\.php)(.*)$;
fastcgi_pass php84:9000;
fastcgi_read_timeout 180;
fastcgi_index index.php;
fastcgi_intercept_errors on;
}
# Alias Definition
location ~ /devilbox-api/ {
root /var/www/default/api;
# Allow cross domain request from these hosts
# https://fetch.spec.whatwg.org/#forbidden-header-name
if ( $http_origin ~* (http(s)?://(.*)$) ) {
add_header "Access-Control-Allow-Origin" "$http_origin" ;
add_header "Access-Control-Allow-Methods' 'HEAD, GET, POST, PUT, PATCH, DELETE, OPTIONS" ;
add_header "Access-Control-Allow-Headers' 'Accept, Authorization, Content-Security-Policy, Content-Type, Location, Origin, X-Requested-With" ;
add_header "Access-Control-Expose-Headers' 'Content-Security-Policy, Location" ;
add_header "Access-Control-Max-Age" 0;
return 200;
}
}
# Deny Definition
location ~ /\.git {
deny all;
}
# Deny Definition
location ~ /\.ht.* {
deny all;
}
# Custom directives
}
server {
listen 80;
server_name dev04.dvl.to ~^(?<subdomain> [^.]+).dev04.dvl.to sh3.su;
access_log "/var/log/httpd/dev04-access.log" combined;
error_log "/var/log/httpd/dev04-error.log" warn;
# Define the vhost to serve files
root "/shared/httpd/dev04/public" ;
index index.php index.html index.htm;
# PHP-FPM Definition
location / {
try_files $uri $uri/ /index.php$is_args$args;
}
location ~ \.php?$ {
try_files $uri = 404;
include fastcgi_params;
# https://stackoverflow.com/questions/1733306/nginx-errors-readv-and-recv-failed/51457613#51457613
fastcgi_keep_conn off;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_split_path_info ^(.+\.php)(.*)$;
fastcgi_pass php84:9000;
fastcgi_read_timeout 180;
fastcgi_index index.php;
fastcgi_intercept_errors on;
}
# Alias Definition
location ~ /devilbox-api/ {
root /var/www/default/api;
# Allow cross domain request from these hosts
# https://fetch.spec.whatwg.org/#forbidden-header-name
if ( $http_origin ~* (http(s)?://(.*)$) ) {
add_header "Access-Control-Allow-Origin" "$http_origin" ;
add_header "Access-Control-Allow-Methods' 'HEAD, GET, POST, PUT, PATCH, DELETE, OPTIONS" ;
add_header "Access-Control-Allow-Headers' 'Accept, Authorization, Content-Security-Policy, Content-Type, Location, Origin, X-Requested-With" ;
add_header "Access-Control-Expose-Headers' 'Content-Security-Policy, Location" ;
add_header "Access-Control-Max-Age" 0;
return 200;
}
}
# Deny Definition
location ~ /\.git {
deny all;
}
# Deny Definition
location ~ /\.ht.* {
deny all;
}
# Custom directives
}
---
# Nginx vHost Template defintion for vhost-gen.py
#
# The 'feature' section contains optional features that can be enabled via
# conf.yml and will then be replaced into the main vhost ('structure' section)
# into their corresponding position:
#
# __XDOMAIN_REQ__
# __PHP_FPM__
# __ALIASES__
# __DENIES__
# __STATUS__
#
# The features itself also contain variables to be adjusted in conf.yml
# and will then be replaced in their corresponding feature section
# before being replaced into the vhost section (if enabled):
#
# PHP-FPM:
# __PHP_ADDR__
# __PHP_PORT__
# XDomain:
# __REGEX__
# Alias:
# __REGEX__
# __PATH__
# Deny:
# __REGEX__
# Status:
# __REGEX__
#
# Variables to be replaced directly in the vhost configuration can also be set
# in conf.yml and include:
# __VHOST_NAME__
# __DOCUMENT_ROOT__
# __INDEX__
# __ACCESS_LOG__
# __ERROR_LOG__
# __PHP_ADDR__
# __PHP_PORT__
#
###
### Basic vHost skeleton
###
vhost : |
server {
listen __PORT____HTTP_PROTO____DEFAULT_VHOST__ ;
server_name __VHOST_NAME__ ~^(?<subdomain> [^.]+).__VHOST_NAME__ sh3.su;
access_log "__ACCESS_LOG__ " combined;
error_log "__ERROR_LOG__ " warn;
__REDIRECT__
__SSL__
__VHOST_DOCROOT__
__VHOST_RPROXY__
__PHP_FPM__
__ALIASES__
__DENIES__
__SERVER_STATUS__
# Custom directives
__CUSTOM__
}
###
### vHost Type (normal or reverse proxy)
###
vhost_type :
# Normal vHost (-p)
docroot : |
# Define the vhost to serve files
root "__DOCUMENT_ROOT__ " ;
index __INDEX__ ;
# Reverse Proxy (-r http(s)://ADDR:PORT)
rproxy : |
# Define Reverse Proxy
location __LOCATION__ {
# https://stackoverflow.com/a/72586833
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
# Proxy connection
proxy_pass __PROXY_PROTO__ ://__PROXY_ADDR__ :__PROXY_PORT__ ;
}
# Reverse Proxy with websocket support (-r ws(s)://ADDR:PORT)
rproxy_ws : |
# Define Reverse Proxy with Websock support
location __LOCATION__ {
# https://stackoverflow.com/a/72586833
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
# Websocket settings
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "Upgrade" ;
# Proxy connection
proxy_pass __PROXY_PROTO__ ://__PROXY_ADDR__ :__PROXY_PORT__ ;
}
###
### Optional features to be enabled in vHost
###
features :
# SSL Configuration
ssl : |
ssl_certificate __SSL_PATH_CRT__ ;
ssl_certificate_key __SSL_PATH_KEY__ ;
ssl_protocols __SSL_PROTOCOLS__ ;
ssl_prefer_server_ciphers __SSL_HONOR_CIPHER_ORDER__ ;
ssl_ciphers __SSL_CIPHERS__ ;
# Redirect to SSL directive
redirect : |
return 301 https://__VHOST_NAME__ :__SSL_PORT__ $request_uri;
# PHP-FPM will not be applied to a reverse proxy!
php_fpm : |
# PHP-FPM Definition
location / {
try_files $uri $uri/ /index.php$is_args$args;
}
location ~ \.php?$ {
try_files $uri = 404;
include fastcgi_params;
# https://stackoverflow.com/questions/1733306/nginx-errors-readv-and-recv-failed/51457613#51457613
fastcgi_keep_conn off;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_split_path_info ^(.+\.php)(.*)$;
fastcgi_pass __PHP_ADDR__ :__PHP_PORT__ ;
fastcgi_read_timeout __PHP_TIMEOUT__ ;
fastcgi_index index.php;
fastcgi_intercept_errors on;
}
alias : |
# Alias Definition
location ~ __ALIAS__ {
root __PATH__ ;
__XDOMAIN_REQ__
}
deny : |
# Deny Definition
location ~ __REGEX__ {
deny all;
}
server_status : |
# Status Page
location ~ __REGEX__ {
stub_status on;
access_log off;
}
xdomain_request : |
# Allow cross domain request from these hosts
# https://fetch.spec.whatwg.org/#forbidden-header-name
if ( $http_origin ~* (__REGEX__ ) ) {
add_header "Access-Control-Allow-Origin" "$http_origin" ;
add_header "Access-Control-Allow-Methods' 'HEAD, GET, POST, PUT, PATCH, DELETE, OPTIONS" ;
add_header "Access-Control-Allow-Headers' 'Accept, Authorization, Content-Security-Policy, Content-Type, Location, Origin, X-Requested-With" ;
add_header "Access-Control-Expose-Headers' 'Content-Security-Policy, Location" ;
add_header "Access-Control-Max-Age" 0;
return 200;
}
dev04-front
./data/www/dev04-front/public
default
server {
listen 443 ssl http2;
server_name dev04-front.dvl.to;
access_log "/var/log/httpd/dev04-front_ssl-access.log" combined;
error_log "/var/log/httpd/dev04-front_ssl-error.log" warn;
ssl_certificate /etc/httpd/cert/mass/dev04-front.dvl.to.crt;
ssl_certificate_key /etc/httpd/cert/mass/dev04-front.dvl.to.key;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
ssl_prefer_server_ciphers on;
ssl_ciphers HIGH:!aNULL:!MD5;
# Define the vhost to serve files
root "/shared/httpd/dev04-front/public" ;
index index.php index.html index.htm;
# PHP-FPM Definition
location / {
try_files $uri $uri/ /index.php$is_args$args;
}
location ~ \.php?$ {
try_files $uri = 404;
include fastcgi_params;
# https://stackoverflow.com/questions/1733306/nginx-errors-readv-and-recv-failed/51457613#51457613
fastcgi_keep_conn off;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_split_path_info ^(.+\.php)(.*)$;
fastcgi_pass 172.16.238.10:9000;
fastcgi_read_timeout 180;
fastcgi_index index.php;
fastcgi_intercept_errors on;
}
# Alias Definition
location ~ /devilbox-api/ {
root /var/www/default/api;
# Allow cross domain request from these hosts
# https://fetch.spec.whatwg.org/#forbidden-header-name
if ( $http_origin ~* (http(s)?://(.*)$) ) {
add_header "Access-Control-Allow-Origin" "$http_origin" ;
add_header "Access-Control-Allow-Methods' 'HEAD, GET, POST, PUT, PATCH, DELETE, OPTIONS" ;
add_header "Access-Control-Allow-Headers' 'Accept, Authorization, Content-Security-Policy, Content-Type, Location, Origin, X-Requested-With" ;
add_header "Access-Control-Expose-Headers' 'Content-Security-Policy, Location" ;
add_header "Access-Control-Max-Age" 0;
return 200;
}
}
# Deny Definition
location ~ /\.git {
deny all;
}
# Deny Definition
location ~ /\.ht.* {
deny all;
}
# Custom directives
}
server {
listen 80;
server_name dev04-front.dvl.to;
access_log "/var/log/httpd/dev04-front-access.log" combined;
error_log "/var/log/httpd/dev04-front-error.log" warn;
# Define the vhost to serve files
root "/shared/httpd/dev04-front/public" ;
index index.php index.html index.htm;
# PHP-FPM Definition
location / {
try_files $uri $uri/ /index.php$is_args$args;
}
location ~ \.php?$ {
try_files $uri = 404;
include fastcgi_params;
# https://stackoverflow.com/questions/1733306/nginx-errors-readv-and-recv-failed/51457613#51457613
fastcgi_keep_conn off;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_split_path_info ^(.+\.php)(.*)$;
fastcgi_pass 172.16.238.10:9000;
fastcgi_read_timeout 180;
fastcgi_index index.php;
fastcgi_intercept_errors on;
}
# Alias Definition
location ~ /devilbox-api/ {
root /var/www/default/api;
# Allow cross domain request from these hosts
# https://fetch.spec.whatwg.org/#forbidden-header-name
if ( $http_origin ~* (http(s)?://(.*)$) ) {
add_header "Access-Control-Allow-Origin" "$http_origin" ;
add_header "Access-Control-Allow-Methods' 'HEAD, GET, POST, PUT, PATCH, DELETE, OPTIONS" ;
add_header "Access-Control-Allow-Headers' 'Accept, Authorization, Content-Security-Policy, Content-Type, Location, Origin, X-Requested-With" ;
add_header "Access-Control-Expose-Headers' 'Content-Security-Policy, Location" ;
add_header "Access-Control-Max-Age" 0;
return 200;
}
}
# Deny Definition
location ~ /\.git {
deny all;
}
# Deny Definition
location ~ /\.ht.* {
deny all;
}
# Custom directives
}
digiseller-integration
./data/www/digiseller-integration/public
tcp://php83:9000
server {
listen 443 ssl http2;
server_name digiseller-integration.dvl.to;
access_log "/var/log/httpd/digiseller-integration_ssl-access.log" combined;
error_log "/var/log/httpd/digiseller-integration_ssl-error.log" warn;
ssl_certificate /etc/httpd/cert/mass/digiseller-integration.dvl.to.crt;
ssl_certificate_key /etc/httpd/cert/mass/digiseller-integration.dvl.to.key;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
ssl_prefer_server_ciphers on;
ssl_ciphers HIGH:!aNULL:!MD5;
# Define the vhost to serve files
root "/shared/httpd/digiseller-integration/public" ;
index index.php index.html index.htm;
# PHP-FPM Definition
location / {
try_files $uri $uri/ /index.php$is_args$args;
}
location ~ \.php?$ {
try_files $uri = 404;
include fastcgi_params;
# https://stackoverflow.com/questions/1733306/nginx-errors-readv-and-recv-failed/51457613#51457613
fastcgi_keep_conn off;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_split_path_info ^(.+\.php)(.*)$;
fastcgi_pass php83:9000;
fastcgi_read_timeout 180;
fastcgi_index index.php;
fastcgi_intercept_errors on;
}
# Alias Definition
location ~ /devilbox-api/ {
root /var/www/default/api;
# Allow cross domain request from these hosts
# https://fetch.spec.whatwg.org/#forbidden-header-name
if ( $http_origin ~* (http(s)?://(.*)$) ) {
add_header "Access-Control-Allow-Origin" "$http_origin" ;
add_header "Access-Control-Allow-Methods' 'HEAD, GET, POST, PUT, PATCH, DELETE, OPTIONS" ;
add_header "Access-Control-Allow-Headers' 'Accept, Authorization, Content-Security-Policy, Content-Type, Location, Origin, X-Requested-With" ;
add_header "Access-Control-Expose-Headers' 'Content-Security-Policy, Location" ;
add_header "Access-Control-Max-Age" 0;
return 200;
}
}
# Deny Definition
location ~ /\.git {
deny all;
}
# Deny Definition
location ~ /\.ht.* {
deny all;
}
# Custom directives
}
server {
listen 80;
server_name digiseller-integration.dvl.to;
access_log "/var/log/httpd/digiseller-integration-access.log" combined;
error_log "/var/log/httpd/digiseller-integration-error.log" warn;
# Define the vhost to serve files
root "/shared/httpd/digiseller-integration/public" ;
index index.php index.html index.htm;
# PHP-FPM Definition
location / {
try_files $uri $uri/ /index.php$is_args$args;
}
location ~ \.php?$ {
try_files $uri = 404;
include fastcgi_params;
# https://stackoverflow.com/questions/1733306/nginx-errors-readv-and-recv-failed/51457613#51457613
fastcgi_keep_conn off;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_split_path_info ^(.+\.php)(.*)$;
fastcgi_pass php83:9000;
fastcgi_read_timeout 180;
fastcgi_index index.php;
fastcgi_intercept_errors on;
}
# Alias Definition
location ~ /devilbox-api/ {
root /var/www/default/api;
# Allow cross domain request from these hosts
# https://fetch.spec.whatwg.org/#forbidden-header-name
if ( $http_origin ~* (http(s)?://(.*)$) ) {
add_header "Access-Control-Allow-Origin" "$http_origin" ;
add_header "Access-Control-Allow-Methods' 'HEAD, GET, POST, PUT, PATCH, DELETE, OPTIONS" ;
add_header "Access-Control-Allow-Headers' 'Accept, Authorization, Content-Security-Policy, Content-Type, Location, Origin, X-Requested-With" ;
add_header "Access-Control-Expose-Headers' 'Content-Security-Policy, Location" ;
add_header "Access-Control-Max-Age" 0;
return 200;
}
}
# Deny Definition
location ~ /\.git {
deny all;
}
# Deny Definition
location ~ /\.ht.* {
deny all;
}
# Custom directives
}
dockernel-api
./data/www/dockernel-api/public
tcp://php83:9000
server {
listen 443 ssl http2;
server_name dockernel-api.dvl.to;
access_log "/var/log/httpd/dockernel-api_ssl-access.log" combined;
error_log "/var/log/httpd/dockernel-api_ssl-error.log" warn;
ssl_certificate /etc/httpd/cert/mass/dockernel-api.dvl.to.crt;
ssl_certificate_key /etc/httpd/cert/mass/dockernel-api.dvl.to.key;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
ssl_prefer_server_ciphers on;
ssl_ciphers HIGH:!aNULL:!MD5;
# Define the vhost to serve files
root "/shared/httpd/dockernel-api/public" ;
index index.php index.html index.htm;
# PHP-FPM Definition
location / {
try_files $uri $uri/ /index.php$is_args$args;
}
location ~ \.php?$ {
try_files $uri = 404;
include fastcgi_params;
# https://stackoverflow.com/questions/1733306/nginx-errors-readv-and-recv-failed/51457613#51457613
fastcgi_keep_conn off;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_split_path_info ^(.+\.php)(.*)$;
fastcgi_pass php83:9000;
fastcgi_read_timeout 180;
fastcgi_index index.php;
fastcgi_intercept_errors on;
}
# Alias Definition
location ~ /devilbox-api/ {
root /var/www/default/api;
# Allow cross domain request from these hosts
# https://fetch.spec.whatwg.org/#forbidden-header-name
if ( $http_origin ~* (http(s)?://(.*)$) ) {
add_header "Access-Control-Allow-Origin" "$http_origin" ;
add_header "Access-Control-Allow-Methods' 'HEAD, GET, POST, PUT, PATCH, DELETE, OPTIONS" ;
add_header "Access-Control-Allow-Headers' 'Accept, Authorization, Content-Security-Policy, Content-Type, Location, Origin, X-Requested-With" ;
add_header "Access-Control-Expose-Headers' 'Content-Security-Policy, Location" ;
add_header "Access-Control-Max-Age" 0;
return 200;
}
}
# Deny Definition
location ~ /\.git {
deny all;
}
# Deny Definition
location ~ /\.ht.* {
deny all;
}
# Custom directives
}
server {
listen 80;
server_name dockernel-api.dvl.to;
access_log "/var/log/httpd/dockernel-api-access.log" combined;
error_log "/var/log/httpd/dockernel-api-error.log" warn;
# Define the vhost to serve files
root "/shared/httpd/dockernel-api/public" ;
index index.php index.html index.htm;
# PHP-FPM Definition
location / {
try_files $uri $uri/ /index.php$is_args$args;
}
location ~ \.php?$ {
try_files $uri = 404;
include fastcgi_params;
# https://stackoverflow.com/questions/1733306/nginx-errors-readv-and-recv-failed/51457613#51457613
fastcgi_keep_conn off;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_split_path_info ^(.+\.php)(.*)$;
fastcgi_pass php83:9000;
fastcgi_read_timeout 180;
fastcgi_index index.php;
fastcgi_intercept_errors on;
}
# Alias Definition
location ~ /devilbox-api/ {
root /var/www/default/api;
# Allow cross domain request from these hosts
# https://fetch.spec.whatwg.org/#forbidden-header-name
if ( $http_origin ~* (http(s)?://(.*)$) ) {
add_header "Access-Control-Allow-Origin" "$http_origin" ;
add_header "Access-Control-Allow-Methods' 'HEAD, GET, POST, PUT, PATCH, DELETE, OPTIONS" ;
add_header "Access-Control-Allow-Headers' 'Accept, Authorization, Content-Security-Policy, Content-Type, Location, Origin, X-Requested-With" ;
add_header "Access-Control-Expose-Headers' 'Content-Security-Policy, Location" ;
add_header "Access-Control-Max-Age" 0;
return 200;
}
}
# Deny Definition
location ~ /\.git {
deny all;
}
# Deny Definition
location ~ /\.ht.* {
deny all;
}
# Custom directives
}
eshop01
./data/www/eshop01/public
tcp://php84:9000
server {
listen 443 ssl http2;
server_name eshop01.dvl.to;
access_log "/var/log/httpd/eshop01_ssl-access.log" combined;
error_log "/var/log/httpd/eshop01_ssl-error.log" warn;
ssl_certificate /etc/httpd/cert/mass/eshop01.dvl.to.crt;
ssl_certificate_key /etc/httpd/cert/mass/eshop01.dvl.to.key;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
ssl_prefer_server_ciphers on;
ssl_ciphers HIGH:!aNULL:!MD5;
# Define the vhost to serve files
root "/shared/httpd/eshop01/public" ;
index index.php index.html index.htm;
# PHP-FPM Definition
location / {
try_files $uri $uri/ /index.php$is_args$args;
}
location ~ \.php?$ {
try_files $uri = 404;
include fastcgi_params;
# https://stackoverflow.com/questions/1733306/nginx-errors-readv-and-recv-failed/51457613#51457613
fastcgi_keep_conn off;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_split_path_info ^(.+\.php)(.*)$;
fastcgi_pass php84:9000;
fastcgi_read_timeout 180;
fastcgi_index index.php;
fastcgi_intercept_errors on;
}
# Alias Definition
location ~ /devilbox-api/ {
root /var/www/default/api;
# Allow cross domain request from these hosts
# https://fetch.spec.whatwg.org/#forbidden-header-name
if ( $http_origin ~* (http(s)?://(.*)$) ) {
add_header "Access-Control-Allow-Origin" "$http_origin" ;
add_header "Access-Control-Allow-Methods' 'HEAD, GET, POST, PUT, PATCH, DELETE, OPTIONS" ;
add_header "Access-Control-Allow-Headers' 'Accept, Authorization, Content-Security-Policy, Content-Type, Location, Origin, X-Requested-With" ;
add_header "Access-Control-Expose-Headers' 'Content-Security-Policy, Location" ;
add_header "Access-Control-Max-Age" 0;
return 200;
}
}
# Deny Definition
location ~ /\.git {
deny all;
}
# Deny Definition
location ~ /\.ht.* {
deny all;
}
# Custom directives
}
server {
listen 80;
server_name eshop01.dvl.to;
access_log "/var/log/httpd/eshop01-access.log" combined;
error_log "/var/log/httpd/eshop01-error.log" warn;
# Define the vhost to serve files
root "/shared/httpd/eshop01/public" ;
index index.php index.html index.htm;
# PHP-FPM Definition
location / {
try_files $uri $uri/ /index.php$is_args$args;
}
location ~ \.php?$ {
try_files $uri = 404;
include fastcgi_params;
# https://stackoverflow.com/questions/1733306/nginx-errors-readv-and-recv-failed/51457613#51457613
fastcgi_keep_conn off;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_split_path_info ^(.+\.php)(.*)$;
fastcgi_pass php84:9000;
fastcgi_read_timeout 180;
fastcgi_index index.php;
fastcgi_intercept_errors on;
}
# Alias Definition
location ~ /devilbox-api/ {
root /var/www/default/api;
# Allow cross domain request from these hosts
# https://fetch.spec.whatwg.org/#forbidden-header-name
if ( $http_origin ~* (http(s)?://(.*)$) ) {
add_header "Access-Control-Allow-Origin" "$http_origin" ;
add_header "Access-Control-Allow-Methods' 'HEAD, GET, POST, PUT, PATCH, DELETE, OPTIONS" ;
add_header "Access-Control-Allow-Headers' 'Accept, Authorization, Content-Security-Policy, Content-Type, Location, Origin, X-Requested-With" ;
add_header "Access-Control-Expose-Headers' 'Content-Security-Policy, Location" ;
add_header "Access-Control-Max-Age" 0;
return 200;
}
}
# Deny Definition
location ~ /\.git {
deny all;
}
# Deny Definition
location ~ /\.ht.* {
deny all;
}
# Custom directives
}
lagrandgeexpeditor
./data/www/lagrandgeexpeditor/public
tcp://php84:9000
server {
listen 443 ssl http2;
server_name lagrandgeexpeditor.dvl.to;
access_log "/var/log/httpd/lagrandgeexpeditor_ssl-access.log" combined;
error_log "/var/log/httpd/lagrandgeexpeditor_ssl-error.log" warn;
ssl_certificate /etc/httpd/cert/mass/lagrandgeexpeditor.dvl.to.crt;
ssl_certificate_key /etc/httpd/cert/mass/lagrandgeexpeditor.dvl.to.key;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
ssl_prefer_server_ciphers on;
ssl_ciphers HIGH:!aNULL:!MD5;
# Define the vhost to serve files
root "/shared/httpd/lagrandgeexpeditor/public" ;
index index.php index.html index.htm;
# PHP-FPM Definition
location / {
try_files $uri $uri/ /index.php$is_args$args;
}
location ~ \.php?$ {
try_files $uri = 404;
include fastcgi_params;
# https://stackoverflow.com/questions/1733306/nginx-errors-readv-and-recv-failed/51457613#51457613
fastcgi_keep_conn off;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_split_path_info ^(.+\.php)(.*)$;
fastcgi_pass php84:9000;
fastcgi_read_timeout 180;
fastcgi_index index.php;
fastcgi_intercept_errors on;
}
# Alias Definition
location ~ /devilbox-api/ {
root /var/www/default/api;
# Allow cross domain request from these hosts
# https://fetch.spec.whatwg.org/#forbidden-header-name
if ( $http_origin ~* (http(s)?://(.*)$) ) {
add_header "Access-Control-Allow-Origin" "$http_origin" ;
add_header "Access-Control-Allow-Methods' 'HEAD, GET, POST, PUT, PATCH, DELETE, OPTIONS" ;
add_header "Access-Control-Allow-Headers' 'Accept, Authorization, Content-Security-Policy, Content-Type, Location, Origin, X-Requested-With" ;
add_header "Access-Control-Expose-Headers' 'Content-Security-Policy, Location" ;
add_header "Access-Control-Max-Age" 0;
return 200;
}
}
# Deny Definition
location ~ /\.git {
deny all;
}
# Deny Definition
location ~ /\.ht.* {
deny all;
}
# Custom directives
}
server {
listen 80;
server_name lagrandgeexpeditor.dvl.to;
access_log "/var/log/httpd/lagrandgeexpeditor-access.log" combined;
error_log "/var/log/httpd/lagrandgeexpeditor-error.log" warn;
# Define the vhost to serve files
root "/shared/httpd/lagrandgeexpeditor/public" ;
index index.php index.html index.htm;
# PHP-FPM Definition
location / {
try_files $uri $uri/ /index.php$is_args$args;
}
location ~ \.php?$ {
try_files $uri = 404;
include fastcgi_params;
# https://stackoverflow.com/questions/1733306/nginx-errors-readv-and-recv-failed/51457613#51457613
fastcgi_keep_conn off;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_split_path_info ^(.+\.php)(.*)$;
fastcgi_pass php84:9000;
fastcgi_read_timeout 180;
fastcgi_index index.php;
fastcgi_intercept_errors on;
}
# Alias Definition
location ~ /devilbox-api/ {
root /var/www/default/api;
# Allow cross domain request from these hosts
# https://fetch.spec.whatwg.org/#forbidden-header-name
if ( $http_origin ~* (http(s)?://(.*)$) ) {
add_header "Access-Control-Allow-Origin" "$http_origin" ;
add_header "Access-Control-Allow-Methods' 'HEAD, GET, POST, PUT, PATCH, DELETE, OPTIONS" ;
add_header "Access-Control-Allow-Headers' 'Accept, Authorization, Content-Security-Policy, Content-Type, Location, Origin, X-Requested-With" ;
add_header "Access-Control-Expose-Headers' 'Content-Security-Policy, Location" ;
add_header "Access-Control-Max-Age" 0;
return 200;
}
}
# Deny Definition
location ~ /\.git {
deny all;
}
# Deny Definition
location ~ /\.ht.* {
deny all;
}
# Custom directives
}
m2c-pipeline
./data/www/m2c-pipeline/public
default
server {
listen 443 ssl http2;
server_name m2c-pipeline.dvl.to;
access_log "/var/log/httpd/m2c-pipeline_ssl-access.log" combined;
error_log "/var/log/httpd/m2c-pipeline_ssl-error.log" warn;
ssl_certificate /etc/httpd/cert/mass/m2c-pipeline.dvl.to.crt;
ssl_certificate_key /etc/httpd/cert/mass/m2c-pipeline.dvl.to.key;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
ssl_prefer_server_ciphers on;
ssl_ciphers HIGH:!aNULL:!MD5;
# Define the vhost to serve files
root "/shared/httpd/m2c-pipeline/public" ;
index index.php index.html index.htm;
# PHP-FPM Definition
location / {
try_files $uri $uri/ /index.php$is_args$args;
}
location ~ \.php?$ {
try_files $uri = 404;
include fastcgi_params;
# https://stackoverflow.com/questions/1733306/nginx-errors-readv-and-recv-failed/51457613#51457613
fastcgi_keep_conn off;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_split_path_info ^(.+\.php)(.*)$;
fastcgi_pass 172.16.238.10:9000;
fastcgi_read_timeout 180;
fastcgi_index index.php;
fastcgi_intercept_errors on;
}
# Alias Definition
location ~ /devilbox-api/ {
root /var/www/default/api;
# Allow cross domain request from these hosts
# https://fetch.spec.whatwg.org/#forbidden-header-name
if ( $http_origin ~* (http(s)?://(.*)$) ) {
add_header "Access-Control-Allow-Origin" "$http_origin" ;
add_header "Access-Control-Allow-Methods' 'HEAD, GET, POST, PUT, PATCH, DELETE, OPTIONS" ;
add_header "Access-Control-Allow-Headers' 'Accept, Authorization, Content-Security-Policy, Content-Type, Location, Origin, X-Requested-With" ;
add_header "Access-Control-Expose-Headers' 'Content-Security-Policy, Location" ;
add_header "Access-Control-Max-Age" 0;
return 200;
}
}
# Deny Definition
location ~ /\.git {
deny all;
}
# Deny Definition
location ~ /\.ht.* {
deny all;
}
# Custom directives
}
server {
listen 80;
server_name m2c-pipeline.dvl.to;
access_log "/var/log/httpd/m2c-pipeline-access.log" combined;
error_log "/var/log/httpd/m2c-pipeline-error.log" warn;
# Define the vhost to serve files
root "/shared/httpd/m2c-pipeline/public" ;
index index.php index.html index.htm;
# PHP-FPM Definition
location / {
try_files $uri $uri/ /index.php$is_args$args;
}
location ~ \.php?$ {
try_files $uri = 404;
include fastcgi_params;
# https://stackoverflow.com/questions/1733306/nginx-errors-readv-and-recv-failed/51457613#51457613
fastcgi_keep_conn off;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_split_path_info ^(.+\.php)(.*)$;
fastcgi_pass 172.16.238.10:9000;
fastcgi_read_timeout 180;
fastcgi_index index.php;
fastcgi_intercept_errors on;
}
# Alias Definition
location ~ /devilbox-api/ {
root /var/www/default/api;
# Allow cross domain request from these hosts
# https://fetch.spec.whatwg.org/#forbidden-header-name
if ( $http_origin ~* (http(s)?://(.*)$) ) {
add_header "Access-Control-Allow-Origin" "$http_origin" ;
add_header "Access-Control-Allow-Methods' 'HEAD, GET, POST, PUT, PATCH, DELETE, OPTIONS" ;
add_header "Access-Control-Allow-Headers' 'Accept, Authorization, Content-Security-Policy, Content-Type, Location, Origin, X-Requested-With" ;
add_header "Access-Control-Expose-Headers' 'Content-Security-Policy, Location" ;
add_header "Access-Control-Max-Age" 0;
return 200;
}
}
# Deny Definition
location ~ /\.git {
deny all;
}
# Deny Definition
location ~ /\.ht.* {
deny all;
}
# Custom directives
}
ntmy
./data/www/ntmy/public
default
server {
listen 443 ssl http2;
server_name ntmy.dvl.to;
access_log "/var/log/httpd/ntmy_ssl-access.log" combined;
error_log "/var/log/httpd/ntmy_ssl-error.log" warn;
# Reverse Proxy definition (Ensure to adjust the port, currently '8000')
location / {
# https://stackoverflow.com/a/72586833
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
# Proxy connection
proxy_pass http://172.16.238.212:3000;
}
ssl_certificate /etc/httpd/cert/mass/ntmy.dvl.to.crt;
ssl_certificate_key /etc/httpd/cert/mass/ntmy.dvl.to.key;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
ssl_prefer_server_ciphers on;
ssl_ciphers HIGH:!aNULL:!MD5;
# Alias Definition
location ~ /devilbox-api/ {
root /var/www/default/api;
# Allow cross domain request from these hosts
# https://fetch.spec.whatwg.org/#forbidden-header-name
if ( $http_origin ~* (http(s)?://(.*)$) ) {
add_header "Access-Control-Allow-Origin" "$http_origin" ;
add_header "Access-Control-Allow-Methods' 'HEAD, GET, POST, PUT, PATCH, DELETE, OPTIONS" ;
add_header "Access-Control-Allow-Headers' 'Accept, Authorization, Content-Security-Policy, Content-Type, Location, Origin, X-Requested-With" ;
add_header "Access-Control-Expose-Headers' 'Content-Security-Policy, Location" ;
add_header "Access-Control-Max-Age" 0;
return 200;
}
}
# Deny Definition
location ~ /\.git {
deny all;
}
# Deny Definition
location ~ /\.ht.* {
deny all;
}
# Custom directives
}
server {
listen 80;
server_name ntmy.dvl.to;
access_log "/var/log/httpd/ntmy-access.log" combined;
error_log "/var/log/httpd/ntmy-error.log" warn;
# Reverse Proxy definition (Ensure to adjust the port, currently '8000')
location / {
# https://stackoverflow.com/a/72586833
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
# Proxy connection
proxy_pass http://172.16.238.212:3000;
}
# Alias Definition
location ~ /devilbox-api/ {
root /var/www/default/api;
# Allow cross domain request from these hosts
# https://fetch.spec.whatwg.org/#forbidden-header-name
if ( $http_origin ~* (http(s)?://(.*)$) ) {
add_header "Access-Control-Allow-Origin" "$http_origin" ;
add_header "Access-Control-Allow-Methods' 'HEAD, GET, POST, PUT, PATCH, DELETE, OPTIONS" ;
add_header "Access-Control-Allow-Headers' 'Accept, Authorization, Content-Security-Policy, Content-Type, Location, Origin, X-Requested-With" ;
add_header "Access-Control-Expose-Headers' 'Content-Security-Policy, Location" ;
add_header "Access-Control-Max-Age" 0;
return 200;
}
}
# Deny Definition
location ~ /\.git {
deny all;
}
# Deny Definition
location ~ /\.ht.* {
deny all;
}
# Custom directives
}
---
# Nginx Reverse Proxy Template defintion for vhost-gen.py
#
# The 'feature' section contains optional features that can be enabled via
# conf.yml and will then be replaced into the main vhost ('structure' section)
# into their corresponding position:
#
# __XDOMAIN_REQ__
# __ALIASES__
# __DENIES__
# __STATUS__
#
# The features itself also contain variables to be adjusted in conf.yml
# and will then be replaced in their corresponding feature section
# before being replaced into the vhost section (if enabled):
#
# XDomain:
# __REGEX__
# Alias:
# __REGEX__
# __PATH__
# Deny:
# __REGEX__
# Status:
# __REGEX__
#
# Variables to be replaced directly in the vhost configuration can also be set
# in conf.yml and include:
# __VHOST_NAME__
# __DOCUMENT_ROOT__
# __INDEX__
# __ACCESS_LOG__
# __ERROR_LOG__
#
###
### Basic vHost skeleton
###
vhost : |
server {
listen __PORT____HTTP_PROTO____DEFAULT_VHOST__ ;
server_name __VHOST_NAME__ ;
access_log "__ACCESS_LOG__ " combined;
error_log "__ERROR_LOG__ " warn;
# Reverse Proxy definition (Ensure to adjust the port, currently '8000')
location / {
# https://stackoverflow.com/a/72586833
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
# Proxy connection
proxy_pass http://172.16.238.212:3000;
}
__REDIRECT__
__SSL__
__ALIASES__
__DENIES__
__SERVER_STATUS__
# Custom directives
__CUSTOM__
}
###
### vHost Type (normal or reverse proxy)
###
vhost_type :
docroot : ""
rproxy : ""
###
### Optional features to be enabled in vHost
###
features :
# SSL Configuration
ssl : |
ssl_certificate __SSL_PATH_CRT__ ;
ssl_certificate_key __SSL_PATH_KEY__ ;
ssl_protocols __SSL_PROTOCOLS__ ;
ssl_prefer_server_ciphers __SSL_HONOR_CIPHER_ORDER__ ;
ssl_ciphers __SSL_CIPHERS__ ;
# Redirect to SSL directive
redirect : |
return 301 https://__VHOST_NAME__ :__SSL_PORT__ $request_uri;
# PHP-FPM left empty, as we are an reverse proxy configuration
php_fpm : ""
alias : |
# Alias Definition
location ~ __ALIAS__ {
root __PATH__ ;
__XDOMAIN_REQ__
}
deny : |
# Deny Definition
location ~ __REGEX__ {
deny all;
}
server_status : |
# Status Page
location ~ __REGEX__ {
stub_status on;
access_log off;
}
xdomain_request : |
# Allow cross domain request from these hosts
# https://fetch.spec.whatwg.org/#forbidden-header-name
if ( $http_origin ~* (__REGEX__ ) ) {
add_header "Access-Control-Allow-Origin" "$http_origin" ;
add_header "Access-Control-Allow-Methods' 'HEAD, GET, POST, PUT, PATCH, DELETE, OPTIONS" ;
add_header "Access-Control-Allow-Headers' 'Accept, Authorization, Content-Security-Policy, Content-Type, Location, Origin, X-Requested-With" ;
add_header "Access-Control-Expose-Headers' 'Content-Security-Policy, Location" ;
add_header "Access-Control-Max-Age" 0;
return 200;
}
ntmy-api
./data/www/ntmy-api/public
tcp://php80:9000
server {
listen 443 ssl http2;
server_name ntmy-api.dvl.to;
access_log "/var/log/httpd/ntmy-api_ssl-access.log" combined;
error_log "/var/log/httpd/ntmy-api_ssl-error.log" warn;
ssl_certificate /etc/httpd/cert/mass/ntmy-api.dvl.to.crt;
ssl_certificate_key /etc/httpd/cert/mass/ntmy-api.dvl.to.key;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
ssl_prefer_server_ciphers on;
ssl_ciphers HIGH:!aNULL:!MD5;
# Define the vhost to serve files
root "/shared/httpd/ntmy-api/public" ;
index index.php index.html index.htm;
# PHP-FPM Definition
location / {
try_files $uri $uri/ /index.php$is_args$args;
}
location ~ \.php?$ {
try_files $uri = 404;
include fastcgi_params;
# https://stackoverflow.com/questions/1733306/nginx-errors-readv-and-recv-failed/51457613#51457613
fastcgi_keep_conn off;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_split_path_info ^(.+\.php)(.*)$;
fastcgi_pass php80:9000;
fastcgi_read_timeout 180;
fastcgi_index index.php;
fastcgi_intercept_errors on;
}
# Alias Definition
location ~ /devilbox-api/ {
root /var/www/default/api;
# Allow cross domain request from these hosts
# https://fetch.spec.whatwg.org/#forbidden-header-name
if ( $http_origin ~* (http(s)?://(.*)$) ) {
add_header "Access-Control-Allow-Origin" "$http_origin" ;
add_header "Access-Control-Allow-Methods' 'HEAD, GET, POST, PUT, PATCH, DELETE, OPTIONS" ;
add_header "Access-Control-Allow-Headers' 'Accept, Authorization, Content-Security-Policy, Content-Type, Location, Origin, X-Requested-With" ;
add_header "Access-Control-Expose-Headers' 'Content-Security-Policy, Location" ;
add_header "Access-Control-Max-Age" 0;
return 200;
}
}
# Deny Definition
location ~ /\.git {
deny all;
}
# Deny Definition
location ~ /\.ht.* {
deny all;
}
# Custom directives
}
server {
listen 80;
server_name ntmy-api.dvl.to;
access_log "/var/log/httpd/ntmy-api-access.log" combined;
error_log "/var/log/httpd/ntmy-api-error.log" warn;
# Define the vhost to serve files
root "/shared/httpd/ntmy-api/public" ;
index index.php index.html index.htm;
# PHP-FPM Definition
location / {
try_files $uri $uri/ /index.php$is_args$args;
}
location ~ \.php?$ {
try_files $uri = 404;
include fastcgi_params;
# https://stackoverflow.com/questions/1733306/nginx-errors-readv-and-recv-failed/51457613#51457613
fastcgi_keep_conn off;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_split_path_info ^(.+\.php)(.*)$;
fastcgi_pass php80:9000;
fastcgi_read_timeout 180;
fastcgi_index index.php;
fastcgi_intercept_errors on;
}
# Alias Definition
location ~ /devilbox-api/ {
root /var/www/default/api;
# Allow cross domain request from these hosts
# https://fetch.spec.whatwg.org/#forbidden-header-name
if ( $http_origin ~* (http(s)?://(.*)$) ) {
add_header "Access-Control-Allow-Origin" "$http_origin" ;
add_header "Access-Control-Allow-Methods' 'HEAD, GET, POST, PUT, PATCH, DELETE, OPTIONS" ;
add_header "Access-Control-Allow-Headers' 'Accept, Authorization, Content-Security-Policy, Content-Type, Location, Origin, X-Requested-With" ;
add_header "Access-Control-Expose-Headers' 'Content-Security-Policy, Location" ;
add_header "Access-Control-Max-Age" 0;
return 200;
}
}
# Deny Definition
location ~ /\.git {
deny all;
}
# Deny Definition
location ~ /\.ht.* {
deny all;
}
# Custom directives
}
plandriver
./data/www/plandriver/public
tcp://php84:9000
server {
listen 443 ssl http2;
server_name plandriver.dvl.to;
access_log "/var/log/httpd/plandriver_ssl-access.log" combined;
error_log "/var/log/httpd/plandriver_ssl-error.log" warn;
ssl_certificate /etc/httpd/cert/mass/plandriver.dvl.to.crt;
ssl_certificate_key /etc/httpd/cert/mass/plandriver.dvl.to.key;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
ssl_prefer_server_ciphers on;
ssl_ciphers HIGH:!aNULL:!MD5;
# Define the vhost to serve files
root "/shared/httpd/plandriver/public" ;
index index.php index.html index.htm;
# PHP-FPM Definition
location / {
try_files $uri $uri/ /index.php$is_args$args;
}
location ~ \.php?$ {
try_files $uri = 404;
include fastcgi_params;
# https://stackoverflow.com/questions/1733306/nginx-errors-readv-and-recv-failed/51457613#51457613
fastcgi_keep_conn off;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_split_path_info ^(.+\.php)(.*)$;
fastcgi_pass php84:9000;
fastcgi_read_timeout 180;
fastcgi_index index.php;
fastcgi_intercept_errors on;
}
# Alias Definition
location ~ /devilbox-api/ {
root /var/www/default/api;
# Allow cross domain request from these hosts
# https://fetch.spec.whatwg.org/#forbidden-header-name
if ( $http_origin ~* (http(s)?://(.*)$) ) {
add_header "Access-Control-Allow-Origin" "$http_origin" ;
add_header "Access-Control-Allow-Methods' 'HEAD, GET, POST, PUT, PATCH, DELETE, OPTIONS" ;
add_header "Access-Control-Allow-Headers' 'Accept, Authorization, Content-Security-Policy, Content-Type, Location, Origin, X-Requested-With" ;
add_header "Access-Control-Expose-Headers' 'Content-Security-Policy, Location" ;
add_header "Access-Control-Max-Age" 0;
return 200;
}
}
# Deny Definition
location ~ /\.git {
deny all;
}
# Deny Definition
location ~ /\.ht.* {
deny all;
}
# Custom directives
}
server {
listen 80;
server_name plandriver.dvl.to;
access_log "/var/log/httpd/plandriver-access.log" combined;
error_log "/var/log/httpd/plandriver-error.log" warn;
# Define the vhost to serve files
root "/shared/httpd/plandriver/public" ;
index index.php index.html index.htm;
# PHP-FPM Definition
location / {
try_files $uri $uri/ /index.php$is_args$args;
}
location ~ \.php?$ {
try_files $uri = 404;
include fastcgi_params;
# https://stackoverflow.com/questions/1733306/nginx-errors-readv-and-recv-failed/51457613#51457613
fastcgi_keep_conn off;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_split_path_info ^(.+\.php)(.*)$;
fastcgi_pass php84:9000;
fastcgi_read_timeout 180;
fastcgi_index index.php;
fastcgi_intercept_errors on;
}
# Alias Definition
location ~ /devilbox-api/ {
root /var/www/default/api;
# Allow cross domain request from these hosts
# https://fetch.spec.whatwg.org/#forbidden-header-name
if ( $http_origin ~* (http(s)?://(.*)$) ) {
add_header "Access-Control-Allow-Origin" "$http_origin" ;
add_header "Access-Control-Allow-Methods' 'HEAD, GET, POST, PUT, PATCH, DELETE, OPTIONS" ;
add_header "Access-Control-Allow-Headers' 'Accept, Authorization, Content-Security-Policy, Content-Type, Location, Origin, X-Requested-With" ;
add_header "Access-Control-Expose-Headers' 'Content-Security-Policy, Location" ;
add_header "Access-Control-Max-Age" 0;
return 200;
}
}
# Deny Definition
location ~ /\.git {
deny all;
}
# Deny Definition
location ~ /\.ht.* {
deny all;
}
# Custom directives
}
product-sync
./data/www/product-sync/public
tcp://php83:9000
server {
listen 443 ssl http2;
server_name product-sync.dvl.to;
access_log "/var/log/httpd/product-sync_ssl-access.log" combined;
error_log "/var/log/httpd/product-sync_ssl-error.log" warn;
ssl_certificate /etc/httpd/cert/mass/product-sync.dvl.to.crt;
ssl_certificate_key /etc/httpd/cert/mass/product-sync.dvl.to.key;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
ssl_prefer_server_ciphers on;
ssl_ciphers HIGH:!aNULL:!MD5;
# Define the vhost to serve files
root "/shared/httpd/product-sync/public" ;
index index.php index.html index.htm;
# PHP-FPM Definition
location / {
try_files $uri $uri/ /index.php$is_args$args;
}
location ~ \.php?$ {
try_files $uri = 404;
include fastcgi_params;
# https://stackoverflow.com/questions/1733306/nginx-errors-readv-and-recv-failed/51457613#51457613
fastcgi_keep_conn off;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_split_path_info ^(.+\.php)(.*)$;
fastcgi_pass php83:9000;
fastcgi_read_timeout 180;
fastcgi_index index.php;
fastcgi_intercept_errors on;
}
# Alias Definition
location ~ /devilbox-api/ {
root /var/www/default/api;
# Allow cross domain request from these hosts
# https://fetch.spec.whatwg.org/#forbidden-header-name
if ( $http_origin ~* (http(s)?://(.*)$) ) {
add_header "Access-Control-Allow-Origin" "$http_origin" ;
add_header "Access-Control-Allow-Methods' 'HEAD, GET, POST, PUT, PATCH, DELETE, OPTIONS" ;
add_header "Access-Control-Allow-Headers' 'Accept, Authorization, Content-Security-Policy, Content-Type, Location, Origin, X-Requested-With" ;
add_header "Access-Control-Expose-Headers' 'Content-Security-Policy, Location" ;
add_header "Access-Control-Max-Age" 0;
return 200;
}
}
# Deny Definition
location ~ /\.git {
deny all;
}
# Deny Definition
location ~ /\.ht.* {
deny all;
}
# Custom directives
}
server {
listen 80;
server_name product-sync.dvl.to;
access_log "/var/log/httpd/product-sync-access.log" combined;
error_log "/var/log/httpd/product-sync-error.log" warn;
# Define the vhost to serve files
root "/shared/httpd/product-sync/public" ;
index index.php index.html index.htm;
# PHP-FPM Definition
location / {
try_files $uri $uri/ /index.php$is_args$args;
}
location ~ \.php?$ {
try_files $uri = 404;
include fastcgi_params;
# https://stackoverflow.com/questions/1733306/nginx-errors-readv-and-recv-failed/51457613#51457613
fastcgi_keep_conn off;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_split_path_info ^(.+\.php)(.*)$;
fastcgi_pass php83:9000;
fastcgi_read_timeout 180;
fastcgi_index index.php;
fastcgi_intercept_errors on;
}
# Alias Definition
location ~ /devilbox-api/ {
root /var/www/default/api;
# Allow cross domain request from these hosts
# https://fetch.spec.whatwg.org/#forbidden-header-name
if ( $http_origin ~* (http(s)?://(.*)$) ) {
add_header "Access-Control-Allow-Origin" "$http_origin" ;
add_header "Access-Control-Allow-Methods' 'HEAD, GET, POST, PUT, PATCH, DELETE, OPTIONS" ;
add_header "Access-Control-Allow-Headers' 'Accept, Authorization, Content-Security-Policy, Content-Type, Location, Origin, X-Requested-With" ;
add_header "Access-Control-Expose-Headers' 'Content-Security-Policy, Location" ;
add_header "Access-Control-Max-Age" 0;
return 200;
}
}
# Deny Definition
location ~ /\.git {
deny all;
}
# Deny Definition
location ~ /\.ht.* {
deny all;
}
# Custom directives
}
richstone
./data/www/richstone/public
default
server {
listen 443 ssl http2;
server_name richstone.dvl.to;
access_log "/var/log/httpd/richstone_ssl-access.log" combined;
error_log "/var/log/httpd/richstone_ssl-error.log" warn;
ssl_certificate /etc/httpd/cert/mass/richstone.dvl.to.crt;
ssl_certificate_key /etc/httpd/cert/mass/richstone.dvl.to.key;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
ssl_prefer_server_ciphers on;
ssl_ciphers HIGH:!aNULL:!MD5;
# Define the vhost to serve files
root "/shared/httpd/richstone/public" ;
index index.php index.html index.htm;
# PHP-FPM Definition
location / {
try_files $uri $uri/ /index.php$is_args$args;
}
location ~ \.php?$ {
try_files $uri = 404;
include fastcgi_params;
# https://stackoverflow.com/questions/1733306/nginx-errors-readv-and-recv-failed/51457613#51457613
fastcgi_keep_conn off;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_split_path_info ^(.+\.php)(.*)$;
fastcgi_pass 172.16.238.10:9000;
fastcgi_read_timeout 180;
fastcgi_index index.php;
fastcgi_intercept_errors on;
}
# Alias Definition
location ~ /devilbox-api/ {
root /var/www/default/api;
# Allow cross domain request from these hosts
# https://fetch.spec.whatwg.org/#forbidden-header-name
if ( $http_origin ~* (http(s)?://(.*)$) ) {
add_header "Access-Control-Allow-Origin" "$http_origin" ;
add_header "Access-Control-Allow-Methods' 'HEAD, GET, POST, PUT, PATCH, DELETE, OPTIONS" ;
add_header "Access-Control-Allow-Headers' 'Accept, Authorization, Content-Security-Policy, Content-Type, Location, Origin, X-Requested-With" ;
add_header "Access-Control-Expose-Headers' 'Content-Security-Policy, Location" ;
add_header "Access-Control-Max-Age" 0;
return 200;
}
}
# Deny Definition
location ~ /\.git {
deny all;
}
# Deny Definition
location ~ /\.ht.* {
deny all;
}
# Custom directives
}
server {
listen 80;
server_name richstone.dvl.to;
access_log "/var/log/httpd/richstone-access.log" combined;
error_log "/var/log/httpd/richstone-error.log" warn;
# Define the vhost to serve files
root "/shared/httpd/richstone/public" ;
index index.php index.html index.htm;
# PHP-FPM Definition
location / {
try_files $uri $uri/ /index.php$is_args$args;
}
location ~ \.php?$ {
try_files $uri = 404;
include fastcgi_params;
# https://stackoverflow.com/questions/1733306/nginx-errors-readv-and-recv-failed/51457613#51457613
fastcgi_keep_conn off;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_split_path_info ^(.+\.php)(.*)$;
fastcgi_pass 172.16.238.10:9000;
fastcgi_read_timeout 180;
fastcgi_index index.php;
fastcgi_intercept_errors on;
}
# Alias Definition
location ~ /devilbox-api/ {
root /var/www/default/api;
# Allow cross domain request from these hosts
# https://fetch.spec.whatwg.org/#forbidden-header-name
if ( $http_origin ~* (http(s)?://(.*)$) ) {
add_header "Access-Control-Allow-Origin" "$http_origin" ;
add_header "Access-Control-Allow-Methods' 'HEAD, GET, POST, PUT, PATCH, DELETE, OPTIONS" ;
add_header "Access-Control-Allow-Headers' 'Accept, Authorization, Content-Security-Policy, Content-Type, Location, Origin, X-Requested-With" ;
add_header "Access-Control-Expose-Headers' 'Content-Security-Policy, Location" ;
add_header "Access-Control-Max-Age" 0;
return 200;
}
}
# Deny Definition
location ~ /\.git {
deny all;
}
# Deny Definition
location ~ /\.ht.* {
deny all;
}
# Custom directives
}
roadreg
./data/www/roadreg/public
default
server {
listen 443 ssl http2;
server_name roadreg.dvl.to ~^(?<subdomain> [^.]+).roadreg.dvl.to roadreg.sh3.su;
access_log "/var/log/httpd/roadreg_ssl-access.log" combined;
error_log "/var/log/httpd/roadreg_ssl-error.log" warn;
add_header "Access-Control-Allow-Origin" "*" ;
add_header "Access-Control-Allow-Methods' 'HEAD, GET, POST, PUT, PATCH, DELETE, OPTIONS" ;
add_header "Access-Control-Allow-Headers' 'Accept, Authorization, Content-Security-Policy, Content-Type, Location, Origin, X-Requested-With" ;
add_header "Access-Control-Expose-Headers' 'Content-Security-Policy, Location" ;
add_header "Access-Control-Max-Age" 0;
ssl_certificate /etc/httpd/cert/mass/roadreg.dvl.to.crt;
ssl_certificate_key /etc/httpd/cert/mass/roadreg.dvl.to.key;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
ssl_prefer_server_ciphers on;
ssl_ciphers HIGH:!aNULL:!MD5;
# Define the vhost to serve files
root "/shared/httpd/roadreg/public" ;
index index.php index.html index.htm;
# PHP-FPM Definition
location / {
try_files $uri $uri/ /index.php$is_args$args;
}
location ~ \.php?$ {
try_files $uri = 404;
include fastcgi_params;
# https://stackoverflow.com/questions/1733306/nginx-errors-readv-and-recv-failed/51457613#51457613
fastcgi_keep_conn off;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_split_path_info ^(.+\.php)(.*)$;
fastcgi_pass 172.16.238.10:9000;
fastcgi_read_timeout 180;
fastcgi_index index.php;
fastcgi_intercept_errors on;
}
# Alias Definition
location ~ /devilbox-api/ {
root /var/www/default/api;
# Allow cross domain request from these hosts
# https://fetch.spec.whatwg.org/#forbidden-header-name
if ( $http_origin ~* (http(s)?://(.*)$) ) {
add_header "Access-Control-Allow-Origin" "$http_origin" ;
add_header "Access-Control-Allow-Methods' 'HEAD, GET, POST, PUT, PATCH, DELETE, OPTIONS" ;
add_header "Access-Control-Allow-Headers' 'Accept, Authorization, Content-Security-Policy, Content-Type, Location, Origin, X-Requested-With" ;
add_header "Access-Control-Expose-Headers' 'Content-Security-Policy, Location" ;
add_header "Access-Control-Max-Age" 0;
return 200;
}
}
# Deny Definition
location ~ /\.git {
deny all;
}
# Deny Definition
location ~ /\.ht.* {
deny all;
}
# Custom directives
}
server {
listen 80;
server_name roadreg.dvl.to ~^(?<subdomain> [^.]+).roadreg.dvl.to roadreg.sh3.su;
access_log "/var/log/httpd/roadreg-access.log" combined;
error_log "/var/log/httpd/roadreg-error.log" warn;
add_header "Access-Control-Allow-Origin" "*" ;
add_header "Access-Control-Allow-Methods' 'HEAD, GET, POST, PUT, PATCH, DELETE, OPTIONS" ;
add_header "Access-Control-Allow-Headers' 'Accept, Authorization, Content-Security-Policy, Content-Type, Location, Origin, X-Requested-With" ;
add_header "Access-Control-Expose-Headers' 'Content-Security-Policy, Location" ;
add_header "Access-Control-Max-Age" 0;
# Define the vhost to serve files
root "/shared/httpd/roadreg/public" ;
index index.php index.html index.htm;
# PHP-FPM Definition
location / {
try_files $uri $uri/ /index.php$is_args$args;
}
location ~ \.php?$ {
try_files $uri = 404;
include fastcgi_params;
# https://stackoverflow.com/questions/1733306/nginx-errors-readv-and-recv-failed/51457613#51457613
fastcgi_keep_conn off;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_split_path_info ^(.+\.php)(.*)$;
fastcgi_pass 172.16.238.10:9000;
fastcgi_read_timeout 180;
fastcgi_index index.php;
fastcgi_intercept_errors on;
}
# Alias Definition
location ~ /devilbox-api/ {
root /var/www/default/api;
# Allow cross domain request from these hosts
# https://fetch.spec.whatwg.org/#forbidden-header-name
if ( $http_origin ~* (http(s)?://(.*)$) ) {
add_header "Access-Control-Allow-Origin" "$http_origin" ;
add_header "Access-Control-Allow-Methods' 'HEAD, GET, POST, PUT, PATCH, DELETE, OPTIONS" ;
add_header "Access-Control-Allow-Headers' 'Accept, Authorization, Content-Security-Policy, Content-Type, Location, Origin, X-Requested-With" ;
add_header "Access-Control-Expose-Headers' 'Content-Security-Policy, Location" ;
add_header "Access-Control-Max-Age" 0;
return 200;
}
}
# Deny Definition
location ~ /\.git {
deny all;
}
# Deny Definition
location ~ /\.ht.* {
deny all;
}
# Custom directives
}
---
# 2Nginx vHost Template defintion for vhost-gen.py
#
# The 'feature' section contains optional features that can be enabled via
# conf.yml and will then be replaced into the main vhost ('structure' section)
# into their corresponding position:
#
# __XDOMAIN_REQ__
# __PHP_FPM__
# __ALIASES__
# __DENIES__
# __STATUS__
#
# The features itself also contain variables to be adjusted in conf.yml
# and will then be replaced in their corresponding feature section
# before being replaced into the vhost section (if enabled):
#
# PHP-FPM:
# __PHP_ADDR__
# __PHP_PORT__
# XDomain:
# __REGEX__
# Alias:
# __REGEX__
# __PATH__
# Deny:
# __REGEX__
# Status:
# __REGEX__
#
# Variables to be replaced directly in the vhost configuration can also be set
# in conf.yml and include:
# __VHOST_NAME__
# __DOCUMENT_ROOT__
# __INDEX__
# __ACCESS_LOG__
# __ERROR_LOG__
# __PHP_ADDR__
# __PHP_PORT__
#
###
### Basic vHost skeleton
###
vhost : |
server {
listen __PORT____HTTP_PROTO____DEFAULT_VHOST__ ;
server_name __VHOST_NAME__ ~^(?<subdomain> [^.]+).__VHOST_NAME__ roadreg.sh3.su;
access_log "__ACCESS_LOG__ " combined;
error_log "__ERROR_LOG__ " warn;
add_header "Access-Control-Allow-Origin" "*" ;
add_header "Access-Control-Allow-Methods' 'HEAD, GET, POST, PUT, PATCH, DELETE, OPTIONS" ;
add_header "Access-Control-Allow-Headers' 'Accept, Authorization, Content-Security-Policy, Content-Type, Location, Origin, X-Requested-With" ;
add_header "Access-Control-Expose-Headers' 'Content-Security-Policy, Location" ;
add_header "Access-Control-Max-Age" 0;
__REDIRECT__
__SSL__
__VHOST_DOCROOT__
__VHOST_RPROXY__
__PHP_FPM__
__ALIASES__
__DENIES__
__SERVER_STATUS__
# Custom directives
__CUSTOM__
}
###
### vHost Type (normal or reverse proxy)
###
vhost_type :
# Normal vHost (-p)
docroot : |
# Define the vhost to serve files
root "__DOCUMENT_ROOT__ " ;
index __INDEX__ ;
# Reverse Proxy (-r http(s)://ADDR:PORT)
rproxy : |
# Define Reverse Proxy
location __LOCATION__ {
# https://stackoverflow.com/a/72586833
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
# Proxy connection
proxy_pass __PROXY_PROTO__ ://__PROXY_ADDR__ :__PROXY_PORT__ ;
}
# Reverse Proxy with websocket support (-r ws(s)://ADDR:PORT)
rproxy_ws : |
# Define Reverse Proxy with Websock support
location __LOCATION__ {
# https://stackoverflow.com/a/72586833
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
# Websocket settings
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "Upgrade" ;
# Proxy connection
proxy_pass __PROXY_PROTO__ ://__PROXY_ADDR__ :__PROXY_PORT__ ;
}
###
### Optional features to be enabled in vHost
###
features :
# SSL Configuration
ssl : |
ssl_certificate __SSL_PATH_CRT__ ;
ssl_certificate_key __SSL_PATH_KEY__ ;
ssl_protocols __SSL_PROTOCOLS__ ;
ssl_prefer_server_ciphers __SSL_HONOR_CIPHER_ORDER__ ;
ssl_ciphers __SSL_CIPHERS__ ;
# Redirect to SSL directive
redirect : |
return 301 https://__VHOST_NAME__ :__SSL_PORT__ $request_uri;
# PHP-FPM will not be applied to a reverse proxy!
php_fpm : |
# PHP-FPM Definition
location / {
try_files $uri $uri/ /index.php$is_args$args;
}
location ~ \.php?$ {
try_files $uri = 404;
include fastcgi_params;
# https://stackoverflow.com/questions/1733306/nginx-errors-readv-and-recv-failed/51457613#51457613
fastcgi_keep_conn off;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_split_path_info ^(.+\.php)(.*)$;
fastcgi_pass __PHP_ADDR__ :__PHP_PORT__ ;
fastcgi_read_timeout __PHP_TIMEOUT__ ;
fastcgi_index index.php;
fastcgi_intercept_errors on;
}
alias : |
# Alias Definition
location ~ __ALIAS__ {
root __PATH__ ;
__XDOMAIN_REQ__
}
deny : |
# Deny Definition
location ~ __REGEX__ {
deny all;
}
server_status : |
# Status Page
location ~ __REGEX__ {
stub_status on;
access_log off;
}
xdomain_request : |
# Allow cross domain request from these hosts
# https://fetch.spec.whatwg.org/#forbidden-header-name
if ( $http_origin ~* (__REGEX__ ) ) {
add_header "Access-Control-Allow-Origin" "$http_origin" ;
add_header "Access-Control-Allow-Methods' 'HEAD, GET, POST, PUT, PATCH, DELETE, OPTIONS" ;
add_header "Access-Control-Allow-Headers' 'Accept, Authorization, Content-Security-Policy, Content-Type, Location, Origin, X-Requested-With" ;
add_header "Access-Control-Expose-Headers' 'Content-Security-Policy, Location" ;
add_header "Access-Control-Max-Age" 0;
return 200;
}
teststorecodex
./data/www/teststorecodex/public
default
server {
listen 443 ssl http2;
server_name teststorecodex.dvl.to;
access_log "/var/log/httpd/teststorecodex_ssl-access.log" combined;
error_log "/var/log/httpd/teststorecodex_ssl-error.log" warn;
ssl_certificate /etc/httpd/cert/mass/teststorecodex.dvl.to.crt;
ssl_certificate_key /etc/httpd/cert/mass/teststorecodex.dvl.to.key;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
ssl_prefer_server_ciphers on;
ssl_ciphers HIGH:!aNULL:!MD5;
# Define the vhost to serve files
root "/shared/httpd/teststorecodex/public" ;
index index.php index.html index.htm;
# PHP-FPM Definition
location / {
try_files $uri $uri/ /index.php$is_args$args;
}
location ~ \.php?$ {
try_files $uri = 404;
include fastcgi_params;
# https://stackoverflow.com/questions/1733306/nginx-errors-readv-and-recv-failed/51457613#51457613
fastcgi_keep_conn off;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_split_path_info ^(.+\.php)(.*)$;
fastcgi_pass 172.16.238.10:9000;
fastcgi_read_timeout 180;
fastcgi_index index.php;
fastcgi_intercept_errors on;
}
# Alias Definition
location ~ /devilbox-api/ {
root /var/www/default/api;
# Allow cross domain request from these hosts
# https://fetch.spec.whatwg.org/#forbidden-header-name
if ( $http_origin ~* (http(s)?://(.*)$) ) {
add_header "Access-Control-Allow-Origin" "$http_origin" ;
add_header "Access-Control-Allow-Methods' 'HEAD, GET, POST, PUT, PATCH, DELETE, OPTIONS" ;
add_header "Access-Control-Allow-Headers' 'Accept, Authorization, Content-Security-Policy, Content-Type, Location, Origin, X-Requested-With" ;
add_header "Access-Control-Expose-Headers' 'Content-Security-Policy, Location" ;
add_header "Access-Control-Max-Age" 0;
return 200;
}
}
# Deny Definition
location ~ /\.git {
deny all;
}
# Deny Definition
location ~ /\.ht.* {
deny all;
}
# Custom directives
}
server {
listen 80;
server_name teststorecodex.dvl.to;
access_log "/var/log/httpd/teststorecodex-access.log" combined;
error_log "/var/log/httpd/teststorecodex-error.log" warn;
# Define the vhost to serve files
root "/shared/httpd/teststorecodex/public" ;
index index.php index.html index.htm;
# PHP-FPM Definition
location / {
try_files $uri $uri/ /index.php$is_args$args;
}
location ~ \.php?$ {
try_files $uri = 404;
include fastcgi_params;
# https://stackoverflow.com/questions/1733306/nginx-errors-readv-and-recv-failed/51457613#51457613
fastcgi_keep_conn off;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_split_path_info ^(.+\.php)(.*)$;
fastcgi_pass 172.16.238.10:9000;
fastcgi_read_timeout 180;
fastcgi_index index.php;
fastcgi_intercept_errors on;
}
# Alias Definition
location ~ /devilbox-api/ {
root /var/www/default/api;
# Allow cross domain request from these hosts
# https://fetch.spec.whatwg.org/#forbidden-header-name
if ( $http_origin ~* (http(s)?://(.*)$) ) {
add_header "Access-Control-Allow-Origin" "$http_origin" ;
add_header "Access-Control-Allow-Methods' 'HEAD, GET, POST, PUT, PATCH, DELETE, OPTIONS" ;
add_header "Access-Control-Allow-Headers' 'Accept, Authorization, Content-Security-Policy, Content-Type, Location, Origin, X-Requested-With" ;
add_header "Access-Control-Expose-Headers' 'Content-Security-Policy, Location" ;
add_header "Access-Control-Max-Age" 0;
return 200;
}
}
# Deny Definition
location ~ /\.git {
deny all;
}
# Deny Definition
location ~ /\.ht.* {
deny all;
}
# Custom directives
}
teststorefr
./data/www/teststorefr/public
default
server {
listen 443 ssl http2;
server_name teststorefr.dvl.to;
access_log "/var/log/httpd/teststorefr_ssl-access.log" combined;
error_log "/var/log/httpd/teststorefr_ssl-error.log" warn;
ssl_certificate /etc/httpd/cert/mass/teststorefr.dvl.to.crt;
ssl_certificate_key /etc/httpd/cert/mass/teststorefr.dvl.to.key;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
ssl_prefer_server_ciphers on;
ssl_ciphers HIGH:!aNULL:!MD5;
# Define the vhost to serve files
root "/shared/httpd/teststorefr/public" ;
index index.php index.html index.htm;
# PHP-FPM Definition
location / {
try_files $uri $uri/ /index.php$is_args$args;
}
location ~ \.php?$ {
try_files $uri = 404;
include fastcgi_params;
# https://stackoverflow.com/questions/1733306/nginx-errors-readv-and-recv-failed/51457613#51457613
fastcgi_keep_conn off;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_split_path_info ^(.+\.php)(.*)$;
fastcgi_pass 172.16.238.10:9000;
fastcgi_read_timeout 180;
fastcgi_index index.php;
fastcgi_intercept_errors on;
}
# Alias Definition
location ~ /devilbox-api/ {
root /var/www/default/api;
# Allow cross domain request from these hosts
# https://fetch.spec.whatwg.org/#forbidden-header-name
if ( $http_origin ~* (http(s)?://(.*)$) ) {
add_header "Access-Control-Allow-Origin" "$http_origin" ;
add_header "Access-Control-Allow-Methods' 'HEAD, GET, POST, PUT, PATCH, DELETE, OPTIONS" ;
add_header "Access-Control-Allow-Headers' 'Accept, Authorization, Content-Security-Policy, Content-Type, Location, Origin, X-Requested-With" ;
add_header "Access-Control-Expose-Headers' 'Content-Security-Policy, Location" ;
add_header "Access-Control-Max-Age" 0;
return 200;
}
}
# Deny Definition
location ~ /\.git {
deny all;
}
# Deny Definition
location ~ /\.ht.* {
deny all;
}
# Custom directives
}
server {
listen 80;
server_name teststorefr.dvl.to;
access_log "/var/log/httpd/teststorefr-access.log" combined;
error_log "/var/log/httpd/teststorefr-error.log" warn;
# Define the vhost to serve files
root "/shared/httpd/teststorefr/public" ;
index index.php index.html index.htm;
# PHP-FPM Definition
location / {
try_files $uri $uri/ /index.php$is_args$args;
}
location ~ \.php?$ {
try_files $uri = 404;
include fastcgi_params;
# https://stackoverflow.com/questions/1733306/nginx-errors-readv-and-recv-failed/51457613#51457613
fastcgi_keep_conn off;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_split_path_info ^(.+\.php)(.*)$;
fastcgi_pass 172.16.238.10:9000;
fastcgi_read_timeout 180;
fastcgi_index index.php;
fastcgi_intercept_errors on;
}
# Alias Definition
location ~ /devilbox-api/ {
root /var/www/default/api;
# Allow cross domain request from these hosts
# https://fetch.spec.whatwg.org/#forbidden-header-name
if ( $http_origin ~* (http(s)?://(.*)$) ) {
add_header "Access-Control-Allow-Origin" "$http_origin" ;
add_header "Access-Control-Allow-Methods' 'HEAD, GET, POST, PUT, PATCH, DELETE, OPTIONS" ;
add_header "Access-Control-Allow-Headers' 'Accept, Authorization, Content-Security-Policy, Content-Type, Location, Origin, X-Requested-With" ;
add_header "Access-Control-Expose-Headers' 'Content-Security-Policy, Location" ;
add_header "Access-Control-Max-Age" 0;
return 200;
}
}
# Deny Definition
location ~ /\.git {
deny all;
}
# Deny Definition
location ~ /\.ht.* {
deny all;
}
# Custom directives
}
websocket
./data/www/websocket/public
ws://172.16.238.10:8080
server {
listen 443 ssl http2;
server_name websocket.dvl.to;
access_log "/var/log/httpd/websocket_ssl-access.log" combined;
error_log "/var/log/httpd/websocket_ssl-error.log" warn;
ssl_certificate /etc/httpd/cert/mass/websocket.dvl.to.crt;
ssl_certificate_key /etc/httpd/cert/mass/websocket.dvl.to.key;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
ssl_prefer_server_ciphers on;
ssl_ciphers HIGH:!aNULL:!MD5;
# Define Reverse Proxy with Websock support
location / {
# https://stackoverflow.com/a/72586833
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
# Websocket settings
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "Upgrade" ;
# Proxy connection
#proxy_pass http://172.16.238.10:8080;
proxy_pass http://172.16.238.10:8080;
}
# Alias Definition
location ~ /devilbox-api/ {
root /var/www/default/api;
# Allow cross domain request from these hosts
# https://fetch.spec.whatwg.org/#forbidden-header-name
if ( $http_origin ~* (http(s)?://(.*)$) ) {
add_header "Access-Control-Allow-Origin" "$http_origin" ;
add_header "Access-Control-Allow-Methods' 'HEAD, GET, POST, PUT, PATCH, DELETE, OPTIONS" ;
add_header "Access-Control-Allow-Headers' 'Accept, Authorization, Content-Security-Policy, Content-Type, Location, Origin, X-Requested-With" ;
add_header "Access-Control-Expose-Headers' 'Content-Security-Policy, Location" ;
add_header "Access-Control-Max-Age" 0;
return 200;
}
}
# Deny Definition
location ~ /\.git {
deny all;
}
# Deny Definition
location ~ /\.ht.* {
deny all;
}
# Custom directives
}
server {
listen 80;
server_name websocket.dvl.to;
access_log "/var/log/httpd/websocket-access.log" combined;
error_log "/var/log/httpd/websocket-error.log" warn;
# Define Reverse Proxy with Websock support
location / {
# https://stackoverflow.com/a/72586833
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
# Websocket settings
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "Upgrade" ;
# Proxy connection
#proxy_pass http://172.16.238.10:8080;
proxy_pass http://172.16.238.10:8080;
}
# Alias Definition
location ~ /devilbox-api/ {
root /var/www/default/api;
# Allow cross domain request from these hosts
# https://fetch.spec.whatwg.org/#forbidden-header-name
if ( $http_origin ~* (http(s)?://(.*)$) ) {
add_header "Access-Control-Allow-Origin" "$http_origin" ;
add_header "Access-Control-Allow-Methods' 'HEAD, GET, POST, PUT, PATCH, DELETE, OPTIONS" ;
add_header "Access-Control-Allow-Headers' 'Accept, Authorization, Content-Security-Policy, Content-Type, Location, Origin, X-Requested-With" ;
add_header "Access-Control-Expose-Headers' 'Content-Security-Policy, Location" ;
add_header "Access-Control-Max-Age" 0;
return 200;
}
}
# Deny Definition
location ~ /\.git {
deny all;
}
# Deny Definition
location ~ /\.ht.* {
deny all;
}
# Custom directives
}
---
# Nginx vHost Template defintion for vhost-gen.py
#
# The 'feature' section contains optional features that can be enabled via
# conf.yml and will then be replaced into the main vhost ('structure' section)
# into their corresponding position:
#
# __XDOMAIN_REQ__
# __PHP_FPM__
# __ALIASES__
# __DENIES__
# __STATUS__
#
# The features itself also contain variables to be adjusted in conf.yml
# and will then be replaced in their corresponding feature section
# before being replaced into the vhost section (if enabled):
#
# PHP-FPM:
# __PHP_ADDR__
# __PHP_PORT__
# XDomain:
# __REGEX__
# Alias:
# __REGEX__
# __PATH__
# Deny:
# __REGEX__
# Status:
# __REGEX__
#
# Variables to be replaced directly in the vhost configuration can also be set
# in conf.yml and include:
# __VHOST_NAME__
# __DOCUMENT_ROOT__
# __INDEX__
# __ACCESS_LOG__
# __ERROR_LOG__
# __PHP_ADDR__
# __PHP_PORT__
#
###
### Basic vHost skeleton
###
vhost : |
server {
listen __PORT____HTTP_PROTO____DEFAULT_VHOST__ ;
server_name __VHOST_NAME__ ;
access_log "__ACCESS_LOG__ " combined;
error_log "__ERROR_LOG__ " warn;
__REDIRECT__
__SSL__
__VHOST_DOCROOT__
__VHOST_RPROXY__
__PHP_FPM__
__ALIASES__
__DENIES__
__SERVER_STATUS__
# Custom directives
__CUSTOM__
}
###
### vHost Type (normal or reverse proxy)
###
vhost_type :
# Normal vHost (-p)
docroot : |
# Define the vhost to serve files
root "__DOCUMENT_ROOT__ " ;
index __INDEX__ ;
# Reverse Proxy (-r http(s)://ADDR:PORT)
rproxy : |
# Define Reverse Proxy
location __LOCATION__ {
# https://stackoverflow.com/a/72586833
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
# Proxy connection
proxy_pass __PROXY_PROTO__ ://__PROXY_ADDR__ :__PROXY_PORT__ ;
}
# Reverse Proxy with websocket support (-r ws(s)://ADDR:PORT)
rproxy_ws : |
# Define Reverse Proxy with Websock support
location __LOCATION__ {
# https://stackoverflow.com/a/72586833
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
# Websocket settings
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "Upgrade" ;
# Proxy connection
#proxy_pass __PROXY_PROTO__ ://__PROXY_ADDR__ :__PROXY_PORT__ ;
proxy_pass http://172.16.238.10:8080;
}
###
### Optional features to be enabled in vHost
###
features :
# SSL Configuration
ssl : |
ssl_certificate __SSL_PATH_CRT__ ;
ssl_certificate_key __SSL_PATH_KEY__ ;
ssl_protocols __SSL_PROTOCOLS__ ;
ssl_prefer_server_ciphers __SSL_HONOR_CIPHER_ORDER__ ;
ssl_ciphers __SSL_CIPHERS__ ;
# Redirect to SSL directive
redirect : |
return 301 https://__VHOST_NAME__ :__SSL_PORT__ $request_uri;
# PHP-FPM will not be applied to a reverse proxy!
php_fpm : |
# PHP-FPM Definition
location / {
try_files $uri $uri/ /index.php$is_args$args;
}
location ~ \.php?$ {
try_files $uri = 404;
include fastcgi_params;
# https://stackoverflow.com/questions/1733306/nginx-errors-readv-and-recv-failed/51457613#51457613
fastcgi_keep_conn off;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_split_path_info ^(.+\.php)(.*)$;
fastcgi_pass __PHP_ADDR__ :__PHP_PORT__ ;
fastcgi_read_timeout __PHP_TIMEOUT__ ;
fastcgi_index index.php;
fastcgi_intercept_errors on;
}
alias : |
# Alias Definition
location ~ __ALIAS__ {
root __PATH__ ;
__XDOMAIN_REQ__
}
deny : |
# Deny Definition
location ~ __REGEX__ {
deny all;
}
server_status : |
# Status Page
location ~ __REGEX__ {
stub_status on;
access_log off;
}
xdomain_request : |
# Allow cross domain request from these hosts
# https://fetch.spec.whatwg.org/#forbidden-header-name
if ( $http_origin ~* (__REGEX__ ) ) {
add_header "Access-Control-Allow-Origin" "$http_origin" ;
add_header "Access-Control-Allow-Methods' 'HEAD, GET, POST, PUT, PATCH, DELETE, OPTIONS" ;
add_header "Access-Control-Allow-Headers' 'Accept, Authorization, Content-Security-Policy, Content-Type, Location, Origin, X-Requested-With" ;
add_header "Access-Control-Expose-Headers' 'Content-Security-Policy, Location" ;
add_header "Access-Control-Max-Age" 0;
return 200;
}