diff --git a/photo_app.example.com.conf.example b/photo_app.example.com.conf.example new file mode 100644 index 0000000..ec78f8c --- /dev/null +++ b/photo_app.example.com.conf.example @@ -0,0 +1,34 @@ + + + ServerName photo_app.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//css" + alias "/js" "/var/lib//js" + + /css"> + ExpiresActive on + ExpiresDefault "access plus 15 minutes" + Header set Cache-Control max-age=900 + Options Indexes + Require all granted + Allow from all + + + /js"> + ExpiresActive on + ExpiresDefault "access plus 15 minutes" + Header set Cache-Control max-age=900 + Options Indexes + Require all granted + Allow from all + + + diff --git a/photos.example.com.conf b/photos.example.com.conf new file mode 100644 index 0000000..67198ce --- /dev/null +++ b/photos.example.com.conf @@ -0,0 +1,16 @@ + + + ServerName photos.example.com + DocumentRoot /var/lib//photos + ErrorLog ${APACHE_LOG_DIR}/error.log + CustomLog ${APACHE_LOG_DIR}/access.log combined + + /photos"> + ExpiresActive on + ExpiresDefault "access plus 1 year" + Header set Cache-Control max-age=31557600 + Options Indexes + Require all granted + + +