mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-05-13 10:30:16 +00:00
subdomain for plinth
This commit is contained in:
parent
5ed705e875
commit
77647e907d
@ -1,11 +1,35 @@
|
|||||||
ProxyPass /plinth/ http://localhost:8000/
|
|
||||||
|
|
||||||
<Directory />
|
<VirtualHost *:80>
|
||||||
Options Indexes FollowSymLinks
|
DocumentRoot /dev/null
|
||||||
|
ServerName plinth
|
||||||
|
|
||||||
|
## Force ssl
|
||||||
RewriteEngine on
|
RewriteEngine on
|
||||||
RewriteRule [^/]*/plinth$ plinth/ [R]
|
ReWriteCond %{SERVER_PORT} !^443$
|
||||||
RewriteRule [^/]*/$ plinth/ [R]
|
RewriteRule ^/(.*) https://%{HTTP_HOST}/$1 [NC,R,L]
|
||||||
#RewriteRule ^$ plinth/ [R]
|
|
||||||
|
</VirtualHost>
|
||||||
|
|
||||||
|
<VirtualHost *:443>
|
||||||
|
DocumentRoot /home/james/src/plinth/static
|
||||||
|
ServerName plinth
|
||||||
|
|
||||||
|
SSLEngine on
|
||||||
|
SSLCertificateFile /etc/apache2/ssl/apache.pem
|
||||||
|
|
||||||
|
## Use a rule like this to hang plinth off a subdir
|
||||||
|
#RewriteEngine on
|
||||||
|
#RewriteRule ^/plinth/(.*)$ http://localhost:8000/$1 [P,L]
|
||||||
|
#Use the following to debug rewrite rules
|
||||||
|
#RewriteLog "/var/log/apache2/rewrite.log"
|
||||||
|
#RewriteLogLevel 9
|
||||||
|
|
||||||
|
## Use proxy directives to hand plinth off a domain or subdomain
|
||||||
|
ProxyPass /static !
|
||||||
|
ProxyPass / http://localhost:8000/
|
||||||
|
ProxyPassReverse / http://localhost:8000/
|
||||||
|
<Proxy *>
|
||||||
|
allow from all
|
||||||
|
</Proxy>
|
||||||
|
</VirtualHost>
|
||||||
|
|
||||||
</Directory>
|
|
||||||
|
|||||||
1
static/static
Symbolic link
1
static/static
Symbolic link
@ -0,0 +1 @@
|
|||||||
|
.
|
||||||
Loading…
x
Reference in New Issue
Block a user