mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-11-29 08:25:10 +00:00
Split apache conf into 2 files, one for HTTP and one for SSL.
This commit is contained in:
1 parent
f79463ec56
commit
f178b74055
6 files changed
+55
-43
No files matched your search
@@ -0,0 +1,42 @@
|
||||
<VirtualHost *:443>
|
||||
|
||||
## Enable SSL
|
||||
SSLEngine on
|
||||
SSLCertificateFile /etc/ssl/certs/ssl-cert-snakeoil.pem
|
||||
SSLCertificateKeyFile /etc/ssl/private/ssl-cert-snakeoil.key
|
||||
|
||||
## Use HTTP Strict Transport Security to force client to use secure connections only
|
||||
Header always set Strict-Transport-Security "max-age=31536000"
|
||||
|
||||
## Shared options.
|
||||
ProxyPreserveHost on
|
||||
DocumentRoot /usr/share/plinth
|
||||
|
||||
## Use this rule to hang plinth off of plinth.(servername)
|
||||
# ServerName plinth
|
||||
# ServerAlias plinth.*
|
||||
# ProxyPass / http://localhost:8000/
|
||||
# ProxyPassReverse / http://localhost:8000/
|
||||
# <Proxy *>
|
||||
# Order Deny,Allow
|
||||
# Deny from All
|
||||
# Allow from 10.0.0.0/8
|
||||
# Allow from 172.16.0.0/12
|
||||
# Allow from 192.168.0.0/16
|
||||
# </Proxy>
|
||||
|
||||
## Use this rule to hang plinth off a subdir.
|
||||
## Make sure to provide plinth with a default directory: /plinth
|
||||
<Location /plinth>
|
||||
ProxyPass http://localhost:8000/plinth
|
||||
ProxyPassReverse http://localhost:8000/plinth
|
||||
|
||||
Order Deny,Allow
|
||||
Deny from All
|
||||
Allow from 10.0.0.0/8
|
||||
Allow from 172.16.0.0/12
|
||||
Allow from 192.168.0.0/16
|
||||
</Location>
|
||||
ProxyPass /plinth/static !
|
||||
|
||||
</VirtualHost>
|
||||
@@ -14,46 +14,3 @@
|
||||
# ServerAlias plinth.*
|
||||
|
||||
</VirtualHost>
|
||||
|
||||
<VirtualHost *:443>
|
||||
|
||||
## Enable SSL
|
||||
SSLEngine on
|
||||
SSLCertificateFile /etc/ssl/certs/ssl-cert-snakeoil.pem
|
||||
SSLCertificateKeyFile /etc/ssl/private/ssl-cert-snakeoil.key
|
||||
|
||||
## Use HTTP Strict Transport Security to force client to use secure connections only
|
||||
Header always set Strict-Transport-Security "max-age=31536000"
|
||||
|
||||
## Shared options.
|
||||
ProxyPreserveHost on
|
||||
DocumentRoot /usr/share/plinth
|
||||
|
||||
## Use this rule to hang plinth off of plinth.(servername)
|
||||
# ServerName plinth
|
||||
# ServerAlias plinth.*
|
||||
# ProxyPass / http://localhost:8000/
|
||||
# ProxyPassReverse / http://localhost:8000/
|
||||
# <Proxy *>
|
||||
# Order Deny,Allow
|
||||
# Deny from All
|
||||
# Allow from 10.0.0.0/8
|
||||
# Allow from 172.16.0.0/12
|
||||
# Allow from 192.168.0.0/16
|
||||
# </Proxy>
|
||||
|
||||
## Use this rule to hang plinth off a subdir.
|
||||
## Make sure to provide plinth with a default directory: /plinth
|
||||
<Location /plinth>
|
||||
ProxyPass http://localhost:8000/plinth
|
||||
ProxyPassReverse http://localhost:8000/plinth
|
||||
|
||||
Order Deny,Allow
|
||||
Deny from All
|
||||
Allow from 10.0.0.0/8
|
||||
Allow from 172.16.0.0/12
|
||||
Allow from 192.168.0.0/16
|
||||
</Location>
|
||||
ProxyPass /plinth/static !
|
||||
|
||||
</VirtualHost>
|
||||
Reference in new issue
Block a user