Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F56285203
www.conf
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
2 KB
Referenced Files
None
Subscribers
None
www.conf
View Options
# -------------------------------------------------------------
# Webserver
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# Project: Nasqueron
# Site: www.dereckson.be
# License: Trivial work, not eligible to copyright
# Source file: roles/webserver-alkane/nginx/files/vhosts/dereckson.be/www.conf
# -------------------------------------------------------------
#
# <auto-generated>
# This file is managed by our rOPS SaltStack repository.
#
# Changes to this file may cause incorrect behavior
# and will be lost if the state is redeployed.
# </auto-generated>
server {
listen 80;
listen [::]:80;
server_name www.dereckson.be;
include includes/tls;
ssl_certificate /usr/local/etc/letsencrypt/live/dereckson.be/fullchain.pem;
ssl_certificate_key /usr/local/etc/letsencrypt/live/dereckson.be/privkey.pem;
error_log /var/log/www/dereckson.be/www-error.log;
access_log /var/log/www/dereckson.be/www-access.log;
root /var/wwwroot/dereckson.be/www;
include includes/letsencrypt;
location = /maintenance.html { }
error_page 503 /maintenance.html;
location ~ ^/photos/(?<date>([0-9]*)).html$ {
# If there is no gallery file prepared
# the main photo handler is happy to
# include the JPEG with metadata from db
try_files @app /photos/?date=$date;
}
# Legacy tool URL
location /tools/SourceTemplatesGenerator {
return 301 https://tools.nasqueron.org/wikimedia/write/sourcetemplatesgenerator/;
}
# Wordpress
include includes/wordpress-standalone-subdir;
# DotClear - old posts contents
location /blog/images { alias /var/wwwroot/dereckson.be/www/Blog/images; }
location /Blog/images {}
# DotClear - migrate post URLs and serve 503 for the remaining content
location ~ ^/Blog/index.php/(?<date>(.*))/[0-9]+-(?<title>(.*))$ {
return 301 https://www.dereckson.be/blog/$date/$title;
}
include includes/pluton;
}
# -------------------------------------------------------------
# Domain and protocol redirects
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
server {
listen 80;
listen [::]:80;
server_name dereckson.be;
include includes/tls;
ssl_certificate /usr/local/etc/letsencrypt/live/dereckson.be/fullchain.pem;
ssl_certificate_key /usr/local/etc/letsencrypt/live/dereckson.be/privkey.pem;
include includes/letsencrypt;
location / {
return 301 https://www.dereckson.be$request_uri;
}
}
server {
listen 80;
listen [::]:80;
server_name blog.dereckson.be;
include includes/tls;
ssl_certificate /usr/local/etc/letsencrypt/live/blog.dereckson.be/fullchain.pem;
ssl_certificate_key /usr/local/etc/letsencrypt/live/blog.dereckson.be/privkey.pem;
include includes/letsencrypt;
location / {
return 301 https://www.dereckson.be/blog/$request_uri;
}
}
File Metadata
Details
Attached
Mime Type
text/html
Expires
Fri, Nov 6, 15:24 (4 d, 6 h ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
4011344
Default Alt Text
www.conf (2 KB)
Attached To
Mode
rOPS Nasqueron Operations
Attached
Detach File
Event Timeline
Log In to Comment