From 578f3408ac7e8038252618727059392991ae0f64 Mon Sep 17 00:00:00 2001 From: Trent Palmer Date: Fri, 8 Jan 2021 14:56:40 -0800 Subject: [PATCH] add example apache configs --- photo_app.example.com.conf.example | 34 ++++++++++++++++++++++++++++++ photos.example.com.conf | 16 ++++++++++++++ 2 files changed, 50 insertions(+) create mode 100644 photo_app.example.com.conf.example create mode 100644 photos.example.com.conf 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 + + +