Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: Simple command line web server for running cgis.

by Anneq (Vicar)
on Aug 25, 2004 at 00:17 UTC ( [id://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 learning in the Monastery: (4)
As of 2024-04-19 06:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found