mirror of
https://github.com/TrentSPalmer/flask_photo_scaling_app.git
synced 2025-07-04 11:23:16 -07:00
update example apache confs
This commit is contained in:
16
examples/apache/photos.example.com.conf.example
Normal file
16
examples/apache/photos.example.com.conf.example
Normal file
@ -0,0 +1,16 @@
|
||||
<VirtualHost *:80>
|
||||
|
||||
ServerName photos.example.com
|
||||
DocumentRoot /var/lib/<app_user>/photos
|
||||
ErrorLog ${APACHE_LOG_DIR}/error.log
|
||||
CustomLog ${APACHE_LOG_DIR}/access.log combined
|
||||
|
||||
<Directory "/var/lib/<app_user>/photos">
|
||||
ExpiresActive on
|
||||
ExpiresDefault "access plus 1 year"
|
||||
Header set Cache-Control max-age=31557600
|
||||
Options Indexes
|
||||
Require all granted
|
||||
</Directory>
|
||||
|
||||
</VirtualHost>
|
Reference in New Issue
Block a user