Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Paste
P72
20-hotel.stwalkerster.co.uk.conf
Active
Public
Actions
Authored by
stwalkerster
on Oct 21 2016, 8:53 AM.
Edit Paste
Archive Paste
View Raw File
Subscribe
Mute Notifications
Tags
None
Referenced Files
F3629: 20-hotel.stwalkerster.co.uk.conf
Oct 21 2016, 8:53 AM
2016-10-21 08:53:19 (UTC+0)
Subscribers
None
# Managed by puppet
################################################################################
# HTTP section
#
# No HTTP is available on this VHost - redirecting to HTTPS
#
<VirtualHost *:80>
ServerName hotel.stwalkerster.co.uk
ServerAdmin webmaster@hotel.stwalkerster.co.uk
DocumentRoot /var/www/stwalkerster/hotel.stwalkerster.co.uk
<Directory /var/www/stwalkerster/hotel.stwalkerster.co.uk>
Options none
AllowOverride none
Require all denied
</Directory>
ErrorLog /var/log/apache2/hotel.stwalkerster.co.uk_error.log
LogLevel warn
CustomLog /var/log/apache2/hotel.stwalkerster.co.uk_access.log combined
ServerSignature Off
Redirect permanent / https://hotel.stwalkerster.co.uk/
# disable php
php_value engine off
</VirtualHost>
################################################################################
# HTTPS section
<VirtualHost *:443>
ServerName hotel.stwalkerster.co.uk
ServerAdmin webmaster@hotel.stwalkerster.co.uk
DocumentRoot /var/www/stwalkerster/hotel.stwalkerster.co.uk
<Directory /var/www/stwalkerster/hotel.stwalkerster.co.uk>
Options
AllowOverride
Require all granted
</Directory>
ErrorLog /var/log/apache2/hotel.stwalkerster.co.uk_error.log
LogLevel warn
CustomLog /var/log/apache2/hotel.stwalkerster.co.uk_access.log combined
ServerSignature Off
SSLEngine on
# Let's Encrypt
SSLCertificateFile /etc/letsencrypt/live/hotel.stwalkerster.co.uk/cert.pem
SSLCertificateChainFile /etc/letsencrypt/live/hotel.stwalkerster.co.uk/chain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/hotel.stwalkerster.co.uk/privkey.pem
# strict transport security
Header always set Strict-Transport-Security "max-age=15768000;"
# includefile
# specials
SetEnvIfNoCase ^Authorization$ "(.+)" HTTP_AUTHORIZATION=$1
<FilesMatch \.php$>
SetHandler "proxy:fcgi://127.0.0.1:30001/"
</FilesMatch>
# disable php
php_value engine off
</VirtualHost>
Event Timeline
stwalkerster
edited the content of this paste.
(Show Details)
Oct 21 2016, 8:53 AM
2016-10-21 08:53:19 (UTC+0)
stwalkerster
changed the title of this paste from untitled to
20-hotel.stwalkerster.co.uk.conf
.
stwalkerster
updated the paste's language from
autodetect
to
autodetect
.
•
import-bot
changed the edit policy from "All Users" to "
Community
(Project)".
Feb 3 2017, 3:03 PM
2017-02-03 15:03:35 (UTC+0)
Log In to Comment