Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
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

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others studying the Monastery: (3)
As of 2023-12-10 11:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What's your preferred 'use VERSION' for new CPAN modules in 2023?











    Results (39 votes). Check out past polls.

    Notices?