The Artima Developer Community
Sponsored Link

Java Buzz Forum
Apache HTTPD Config

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Brian McCallister

Posts: 1282
Nickname: frums
Registered: Sep, 2003

Brian McCallister is JustaProgrammer who thinks too much.
Apache HTTPD Config Posted: Oct 12, 2006 10:15 AM
Reply to this message Reply

This post originated from an RSS feed registered with Java Buzz by Brian McCallister.
Original Post: Apache HTTPD Config
Feed Title: Waste of Time
Feed URL: http://kasparov.skife.org/blog/index.rss
Feed Description: A simple waste of time and weblog experiment
Latest Java Buzz Posts
Latest Java Buzz Posts by Brian McCallister
Latest Posts From Waste of Time

Advertisement

So I have been stealing spare moments to hack up apache+lua stuff here at ApacheCon and I'm adding config stuff now, so I wanted to strip down the httpd.conf to keep it sane. As a lot of people complain that apache's config files are... verbose I had to post the one I am running on right now ;-)

ServerRoot "/Users/brianm/.opt/httpd-2.2.3-worker-for-lua"
Listen 8000

LoadModule apreq_module modules/mod_apreq2.so
LoadModule wombat_module modules/mod_wombat.so

Alias /testy /Users/brianm/src/wombat/htdocs/test.lua
AddHandler lua-script /Users/brianm/src/wombat/htdocs/test.lua

LuaPackagePath /Users/brianm/src/wombat/test/lib/?.lua
LuaPackagePath /Users/brianm/src/wombat/test/lib/?/init.lua
LuaPackagePath /Users/brianm/src/wombat/test/lib/?.so

That's it, and of the nine lines, the two LoadModule lines are for loading mod_wombat (my lua fun) and libapreq which it uses for parsing request stuff. Three of the lines are for adding paths to lua's package.path search path (equivalent of $: or CLASSPATH), one is for creating an alias and specifying the handler for my test script.

Fun!

Read: Apache HTTPD Config

Topic: If Indy Domain Name Speculator Start-Up were saveable Previous Topic   Next Topic Topic: Apache Tomcat 4.1.34 Stable

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use