mirror of
https://github.com/TrentSPalmer/flask_photo_scaling_app.git
synced 2024-12-22 18:42:49 -08:00
17 lines
431 B
Plaintext
17 lines
431 B
Plaintext
|
<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>
|