From 44c6983c427169566553aa400a881a1ceece6df7 Mon Sep 17 00:00:00 2001 From: Trent Palmer Date: Sat, 9 Jan 2021 01:18:25 -0800 Subject: [PATCH] update example apache confs --- .../apache/photo_app.example.com.conf.example | 2 +- .../apache/photoapp.example.com.conf.example | 34 +++++++++++++++++++ ...m.conf => photos.example.com.conf.example} | 0 3 files changed, 35 insertions(+), 1 deletion(-) create mode 100644 examples/apache/photoapp.example.com.conf.example rename examples/apache/{photos.example.com.conf => photos.example.com.conf.example} (100%) diff --git a/examples/apache/photo_app.example.com.conf.example b/examples/apache/photo_app.example.com.conf.example index ec78f8c..68348ee 100644 --- a/examples/apache/photo_app.example.com.conf.example +++ b/examples/apache/photo_app.example.com.conf.example @@ -1,6 +1,6 @@ - ServerName photo_app.example.com + ServerName photoapp.example.com ProxyPass "/.well-known" ! ProxyPass "/favicon.ico" ! ProxyPass "/css" ! diff --git a/examples/apache/photoapp.example.com.conf.example b/examples/apache/photoapp.example.com.conf.example new file mode 100644 index 0000000..68348ee --- /dev/null +++ b/examples/apache/photoapp.example.com.conf.example @@ -0,0 +1,34 @@ + + + ServerName photoapp.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/examples/apache/photos.example.com.conf b/examples/apache/photos.example.com.conf.example similarity index 100% rename from examples/apache/photos.example.com.conf rename to examples/apache/photos.example.com.conf.example