diff options
author | Kristian Lyngstol <kristian@bohemians.org> | 2016-02-20 21:15:14 +0100 |
---|---|---|
committer | Kristian Lyngstol <kristian@bohemians.org> | 2016-02-20 21:15:14 +0100 |
commit | cf5d2c93b851e253d5e0cf5a969bb96f8fea4e93 (patch) | |
tree | 8631a19d7cf76afb215056763e74e2e5d68dc8a3 | |
parent | 199a93074fe12c94fca4fa96a447d50774f02ce2 (diff) |
nms: Basic apache conf
Now with .conf since that's what apache2 includes
-rw-r--r-- | web/etc/apache2/nms.tg16.gathering.org.conf | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/web/etc/apache2/nms.tg16.gathering.org.conf b/web/etc/apache2/nms.tg16.gathering.org.conf new file mode 100644 index 0000000..db8910a --- /dev/null +++ b/web/etc/apache2/nms.tg16.gathering.org.conf @@ -0,0 +1,41 @@ +<VirtualHost *:8080> + ServerAdmin drift@gathering.org + ServerName nms.tg16.gathering.org + ServerAlias einstein.tg16.gathering.org + + DocumentRoot /root/tgmanage/web/nms.gathering.org + <Directory "/root/tgmanage/web/nms.gathering.org"> + AllowOverride None + Options Indexes FollowSymLinks ExecCGI MultiViews + + AddHandler cgi-script .cgi .sh .pl .py + AddDefaultCharset UTF-8 + + SetEnvIF ^X-Forwarded-For$ "^185\.12\.59\.12$" AllowIP + SetEnvIF ^X-Forwarded-For$ "^2a02:ed02:1337::12$" AllowIP + + <RequireAny> + AuthUserFile /root/tgmanage/web/.htpasswd + AuthName "Tech:Server Secret Volcano Lair" + AuthType Basic + Require valid-user + + Require env AllowIP + </RequireAny> + + #AuthUserFile /root/tgmanage/web/.htpasswd + #AuthName "Tech:Server Secret Volcano Lair" + #AuthType Basic + #require valid-user + </Directory> + + ErrorLog /var/log/apache2/error-nms.tg16.gathering.org.log + + # Possible values include: debug, info, notice, warn, error, crit, + # alert, emerg. + LogLevel warn + + CustomLog /var/log/apache2/access-nms.tg16.gathering.org.log combined + ServerSignature On + +</VirtualHost> |