Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
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 making s'mores by the fire in the courtyard of the Monastery: (13)
As of 2014-09-19 13:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (138 votes), past polls