]> Untitled Git - public.git/blobdiff - httpd.conf
Updated local compose variables
[public.git] / httpd.conf
index 9360b9216e411f0e84859a171efc8e5e711d13b4..e2bb8fb3bb908529a9961648431ac181abf238ab 100644 (file)
@@ -127,7 +127,7 @@ LoadModule log_config_module modules/mod_log_config.so
 #LoadModule log_debug_module modules/mod_log_debug.so\r
 #LoadModule log_forensic_module modules/mod_log_forensic.so\r
 #LoadModule logio_module modules/mod_logio.so\r
-#LoadModule lua_module modules/mod_lua.so\r
+LoadModule lua_module modules/mod_lua.so\r
 LoadModule env_module modules/mod_env.so\r
 #LoadModule mime_magic_module modules/mod_mime_magic.so\r
 #LoadModule cern_meta_module modules/mod_cern_meta.so\r
@@ -229,7 +229,7 @@ Group daemon
 # e-mailed.  This address appears on some server-generated pages, such\r
 # as error documents.  e.g. admin@your-domain.com\r
 #\r
-ServerAdmin you@example.com\r
+ServerAdmin purplebirdman@purplebirdman.com\r
 \r
 #\r
 # ServerName gives the name and port that the server uses to identify itself.\r
@@ -238,7 +238,7 @@ ServerAdmin you@example.com
 #\r
 # If your host doesn't have a registered DNS name, enter its IP address here.\r
 #\r
-#ServerName www.example.com:80\r
+ServerName public.purplebirdman.online:80\r
 \r
 #\r
 # Deny access to the entirety of your server's filesystem. You must\r
@@ -263,7 +263,7 @@ ServerAdmin you@example.com
 # symbolic links and aliases may be used to point to other locations.\r
 #\r
 DocumentRoot "/usr/local/apache2/htdocs"\r
-<Directory "/usr/local/apache2/htdocs">\r
+<Directory "/usr/local/apache2/htdocs/*">\r
     #\r
     # Possible values for the Options directive are "None", "All",\r
     # or any combination of:\r
@@ -307,6 +307,11 @@ DocumentRoot "/usr/local/apache2/htdocs"
     Require all denied\r
 </Files>\r
 \r
+# run lua scripts using ".lua" extension\r
+<Files "*.lua">\r
+    SetHandler lua-script\r
+</Files>\r
+\r
 #\r
 # ErrorLog: The location of the error log file.\r
 # If you do not specify an ErrorLog directive within a <VirtualHost>\r
@@ -380,6 +385,7 @@ LogLevel warn
     # directives as to Alias.\r
     #\r
     ScriptAlias /cgi-bin/ "/usr/local/apache2/cgi-bin/"\r
+    ScriptAlias /lua/     "/usr/local/apache2/lua/"\r
 \r
 </IfModule>\r
 \r
@@ -401,6 +407,16 @@ LogLevel warn
     Require all granted\r
 </Directory>\r
 \r
+# more lua stuff\r
+<Directory "/usr/local/apache2/lua">\r
+    AuthType Basic\r
+    AuthName "Restricted Files"\r
+    AuthUserFile "/usr/local/apache2/auth/passwords"\r
+    AllowOverride None\r
+    Options None\r
+    Require valid-user\r
+</Directory>\r
+\r
 <IfModule headers_module>\r
     #\r
     # Avoid passing HTTP_PROXY environment to CGI's on this or any proxied\r