X-Git-Url: http://git.purplebirdman.com/public.git/blobdiff_plain/6d340888f9a823aed2a04174e4a6a454446186ae..f276084429f7fee87765e97d313af98d0dc9bbc6:/httpd.conf
diff --git a/httpd.conf b/httpd.conf
index d7ce626..e2bb8fb 100644
--- a/httpd.conf
+++ b/httpd.conf
@@ -127,7 +127,7 @@ LoadModule log_config_module modules/mod_log_config.so
#LoadModule log_debug_module modules/mod_log_debug.so
#LoadModule log_forensic_module modules/mod_log_forensic.so
#LoadModule logio_module modules/mod_logio.so
-#LoadModule lua_module modules/mod_lua.so
+LoadModule lua_module modules/mod_lua.so
LoadModule env_module modules/mod_env.so
#LoadModule mime_magic_module modules/mod_mime_magic.so
#LoadModule cern_meta_module modules/mod_cern_meta.so
@@ -229,7 +229,7 @@ Group daemon
# e-mailed. This address appears on some server-generated pages, such
# as error documents. e.g. admin@your-domain.com
#
-ServerAdmin purplebirdman@mail.purplebirdman.online
+ServerAdmin purplebirdman@purplebirdman.com
#
# ServerName gives the name and port that the server uses to identify itself.
@@ -307,6 +307,11 @@ DocumentRoot "/usr/local/apache2/htdocs"
Require all denied
+# run lua scripts using ".lua" extension
+
+ SetHandler lua-script
+
+
#
# ErrorLog: The location of the error log file.
# If you do not specify an ErrorLog directive within a
@@ -380,6 +385,7 @@ LogLevel warn
# directives as to Alias.
#
ScriptAlias /cgi-bin/ "/usr/local/apache2/cgi-bin/"
+ ScriptAlias /lua/ "/usr/local/apache2/lua/"
@@ -401,6 +407,16 @@ LogLevel warn
Require all granted
+# more lua stuff
+
+ AuthType Basic
+ AuthName "Restricted Files"
+ AuthUserFile "/usr/local/apache2/auth/passwords"
+ AllowOverride None
+ Options None
+ Require valid-user
+
+
#
# Avoid passing HTTP_PROXY environment to CGI's on this or any proxied