Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: Simple command line web server for running cgis.

by Anneq (Vicar)
on Aug 25, 2004 at 00:17 UTC ( #385547=note: print w/ replies, xml ) Need Help??


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

Actually, its not that hard to edit the apache config file to do what you want. For example, assuming WinXP, just add something like the following to the end of your httpd.conf file:

<VirtualHost *:80> ServerName www.sandbox.laptop ServerAlias sandbox.laptop DocumentRoot "C:/www.sandbox.laptop/htdocs" DirectoryIndex index.pl index.html ScriptAlias /cgi-bin/ "C:/www.sandbox.laptop/htdocs/cgi-bin/" ScriptAlias /index.pl "C:/www.sandbox.laptop/htdocs/index.pl" </VirtualHost>

And then edit your hosts file (on WinXP its C:/WINDOWS/system32/drivers/etc/hosts) like:

127.0.0.1 localhost www.sandbox.laptop sandbox.laptop

HTH,

Anne


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://385547]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (6)
As of 2014-08-28 04:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (256 votes), past polls