Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: Simple command line web server for running cgis.

by EvdB (Deacon)
on Aug 26, 2004 at 11:11 UTC ( #385968=note: print w/ replies, xml ) Need Help??


in reply to Simple command line web server for running cgis.

I have now taken to using boa as the small webserver. I requires one config file (boa.conf) but that can be made generic and just copied over to the correct directory as needed. My config file is:

Port 8080 ErrorLog error_log AccessLog access_log CgiLog cgi_log DocumentRoot . DirectoryIndex index.html DirectoryMaker /usr/lib/boa/boa_indexer DefaultType text/html AddType application/x-httpd-cgi pl MimeTypes /etc/boa/mime.types
This then allows you to change to the correct directory and then to type boa -c . to start the server. It handles CGI errors well which makes it better than mini_httpd for this usage.

--tidiness is the memory loss of environmental mnemonics


Comment on Re: Simple command line web server for running cgis.
Select or Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://385968]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (16)
As of 2014-07-23 20:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (152 votes), past polls