Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Comment on

( #3333=superdoc: print w/ replies, xml ) Need Help??
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., http://123.45.67.89 +/) # anyway, and this will make redirections work in a sensible way. # # 127.0.0.1 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 127.0.0.1 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.

In reply to Re: setting up a localhost by AcidHawk
in thread setting up a localhost by Anonymous Monk

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.
  • Log In?
    Username:
    Password:

    What's my password?
    Create A New User
    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: (6)
    As of 2015-07-08 01:50 GMT
    Sections?
    Information?
    Find Nodes?
    Leftovers?
      Voting Booth?

      The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









      Results (93 votes), past polls