mirror of
https://github.com/TrentSPalmer/flask_photo_scaling_app.git
synced 2024-12-22 10:42:48 -08:00
update example apache confs
This commit is contained in:
parent
9e672e1471
commit
44c6983c42
@ -1,6 +1,6 @@
|
|||||||
<VirtualHost *:80>
|
<VirtualHost *:80>
|
||||||
|
|
||||||
ServerName photo_app.example.com
|
ServerName photoapp.example.com
|
||||||
ProxyPass "/.well-known" !
|
ProxyPass "/.well-known" !
|
||||||
ProxyPass "/favicon.ico" !
|
ProxyPass "/favicon.ico" !
|
||||||
ProxyPass "/css" !
|
ProxyPass "/css" !
|
||||||
|
34
examples/apache/photoapp.example.com.conf.example
Normal file
34
examples/apache/photoapp.example.com.conf.example
Normal file
@ -0,0 +1,34 @@
|
|||||||
|
<VirtualHost *:80>
|
||||||
|
|
||||||
|
ServerName photoapp.example.com
|
||||||
|
ProxyPass "/.well-known" !
|
||||||
|
ProxyPass "/favicon.ico" !
|
||||||
|
ProxyPass "/css" !
|
||||||
|
ProxyPass "/js" !
|
||||||
|
ProxyPass "/" "http://127.0.0.1:8200/"
|
||||||
|
ProxyPassReverse "/" "http://127.0.0.1:8200/"
|
||||||
|
ErrorLog ${APACHE_LOG_DIR}/error.log
|
||||||
|
CustomLog ${APACHE_LOG_DIR}/access.log combined
|
||||||
|
|
||||||
|
alias "/css" "/var/lib/<app_user>/css"
|
||||||
|
alias "/js" "/var/lib/<app_user>/js"
|
||||||
|
|
||||||
|
<Directory "/var/lib/<app_user>/css">
|
||||||
|
ExpiresActive on
|
||||||
|
ExpiresDefault "access plus 15 minutes"
|
||||||
|
Header set Cache-Control max-age=900
|
||||||
|
Options Indexes
|
||||||
|
Require all granted
|
||||||
|
Allow from all
|
||||||
|
</Directory>
|
||||||
|
|
||||||
|
<Directory "/var/lib/<app_user>/js">
|
||||||
|
ExpiresActive on
|
||||||
|
ExpiresDefault "access plus 15 minutes"
|
||||||
|
Header set Cache-Control max-age=900
|
||||||
|
Options Indexes
|
||||||
|
Require all granted
|
||||||
|
Allow from all
|
||||||
|
</Directory>
|
||||||
|
|
||||||
|
</VirtualHost>
|
Loading…
Reference in New Issue
Block a user