Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical

Re: setting up a localhost

by AcidHawk (Vicar)
on Mar 11, 2004 at 07:11 UTC ( #335738=note: print w/replies, xml ) Need Help??

in reply to setting up a localhost

In the httpd.conf file there is this explination
# ServerName allows you to set a host name which is sent back to clien +ts for # your server if it's different than the one the program would get (i. +e., use # "www" instead of the host's real name). # # Note: You cannot just invent host names and hope they work. The name + you # define here must be a valid DNS name for your host. If you don't und +erstand # this, ask your network administrator. # If your host doesn't have a registered DNS name, enter its IP addres +s here. # You will have to access it by its address (e.g., +/) # anyway, and this will make redirections work in a sensible way. # # is the TCP/IP local loop-back address, often named localho +st. Your # machine always knows itself by this address. If you use Apache stric +tly for # local testing and development, you may use as the server n +ame. # ServerName myservername
This will allow me to call http://localhost or http://myservername in the URL

In the same file you also need to make sure that your cgi-bin settings are correct..

# ScriptAlias: This controls which directories contain server scri +pts. # ScriptAliases are essentially the same as Aliases, except that # documents in the realname directory are treated as applications +and # run by the server when requested rather than as documents sent t +o the client. # The same rules about trailing "/" apply to ScriptAlias directive +s as to # Alias. # ScriptAlias /cgi-bin/ "C:/Documents and Settings/Administrator/My +Documents/myweb/cgi-bin/" # # "C:/Program Files/Apache Group/Apache/cgi-bin" should be changed + to whatever your ScriptAliased # CGI directory exists, if you have that configured. # <Directory "C:/Documents and Settings/Administrator/My Documents/m +yweb/cgi-bin"> AllowOverride None Options None Order allow,deny Allow from all </Directory>
Your cgi script shoud go in this dir. On the windows platform make sure you have the #!perl.exe line as the first line of your script, and that perl.exe is in your path.

Of all the things I've lost in my life, its my mind I miss the most.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://335738]
[choroba]: Tire chains are mandatory here in mountains, and the only unprepared each year are gritters
[stevieb]: I have a 3 day winter survival kit in my vehicle in the event I get snowed in in the mountains (which has happened before due to avalanches closing the roads (and once in the summer due to a massive forest fire that trapped us
[perldigious]: a handful of people in my work area did not make it, but I live pretty close and it's flat the whole way, so I didn't have any trouble. The roundabout is the worst thing I have to negotiate.
[thezip]: G'day all!
[perldigious]: Well, that and dodging the people who forget how ice works right away. :-)
[stevieb]: hey, thezip
[perldigious]: I don't miss having to drive up and down in elevation on roads that are iced over, I white knuckled gripping the steering wheel every time I had to where I used to live.
[perldigious]: So I don't envy you mountain guys if you have to drive in the winter, even with tire chains.
MidLifeXis waves.
[stevieb]: man, I absolutely LOVE driving in the worst winter conditions. In the mountainous roads, there are extremely few (if any) other drivers. I love the challenge. I've been doing extreme off-road my whole life, and as I said, I'm always well...

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (10)
As of 2016-12-06 16:40 GMT
Find Nodes?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:

    Results (112 votes). Check out past polls.