Skip to content
Merged

SSL #55

Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion etc/sites-enabled/phpdocker.io.conf
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<VirtualHost *:80>
ServerName phpdocker.io
ServerAlias *.phpdocker.io
ServerAlias www.phpdocker.io *.phpdocker.io

## Vhost docroot
DocumentRoot "/var/www/phpdocker.io/web"
Expand All @@ -11,6 +11,11 @@
## Make HTTP basic auth work
SetEnvIfNoCase ^Authorization$ "(.+)" HTTP_AUTHORIZATION=$1

## 301 to HTTPS
RewriteEngine On
RewriteCond %{HTTPS} !=on
RewriteRule ^/?(.*) https://%{SERVER_NAME}/$1 [R=301,L]

## Directories, there should at least be a declaration for /var/www/phpdocker.io/public
<Directory "/var/www/phpdocker.io/web">
Options Indexes FollowSymlinks MultiViews
Expand Down