flask_photo_scaling_app/photos.example.com.conf

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>