X-Git-Url: http://git.purplebirdman.com/public.git/blobdiff_plain/9d4d110657f1e043330109c704892c99ee8e4816..fdf37aa5477e52c1058efac1638e5efabf6d78d6:/httpd.conf
diff --git a/httpd.conf b/httpd.conf
index 0e2f67c..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 you@example.com
+ServerAdmin purplebirdman@purplebirdman.com
#
# ServerName gives the name and port that the server uses to identify itself.
@@ -238,7 +238,7 @@ ServerAdmin you@example.com
#
# If your host doesn't have a registered DNS name, enter its IP address here.
#
-#ServerName www.example.com:80
+ServerName public.purplebirdman.online:80
#
# Deny access to the entirety of your server's filesystem. You must
@@ -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