Solved

'where' is http://localhost/?

Posted on 2000-02-29
3
344 Views
Last Modified: 2013-12-15
I have Apache installed. Under the URL http://localhost/, I get the ok message 'It Worked'. It also says 'You may now add content to this directory and replace this page.' Well my question basically is, where is 'this page'? on the server. How can I locate it? Is it a file with a name. What is the path to it? Is it possible to have a URL something like http://localhost/usr/lib/cgi-bin, or in order to use the server to access the cgi-bin will I have to create and register a domain name or something?
            -thanks, Alan
0
Comment
Question by:alanhll
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 3

Expert Comment

by:freesource
ID: 2571794
Here is the standard location of the important files used by apache, but you system may be setup differently, you could do a "locate srm.conf" or a "find / -name srm.conf"

       /etc/apache/httpd.conf
       /etc/apache/srm.conf
       /etc/apache/access.conf
       /etc/apache/mime.types
       /etc/apache/magic
       /var/log/apache/error.log
       /var/log/apache/access.log

In srm.conf look for DocumentRoot, on system that is "DocumentRoot /var/www."
That's where index.html is found for  http://localhost/.

Yes, you can set-up cgi-bins for users, this may already be setup, check srm.conf and access.conf, also read the documentation, apache.org always has the most current.  You don't need a domain name .. localhost could be it, or you could associate a name with localhost in your /etc/hosts file.
0
 
LVL 3

Expert Comment

by:jyu_88
ID: 2573636
that famous index.html should be at /home/httpd/htdocs, /etc/httpd/htdocs, or /usr/local/apache/htdocs,
depending on how you installed Apache.

DocumentRoot is defined in httpd.conf located at /etc/httpd/conf or /usr/local/apache/conf
0
 

Accepted Solution

by:
stevewarren earned 40 total points
ID: 2573807
try  /home/httpd/html
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

This is the error message I got (CODE) Error caused by incompatible libmp3lame 3.98-2 with ffmpeg I've googled this error message and found out sometimes it attaches this note "can be treated with downgrade libmp3lame to version 3.97 or 3.98" …
Over the last ten+ years I have seen Linux configuration tools come and go. In the early days there was the tried-and-true, all-powerful linuxconf that many thought would remain the one and only Linux configuration tool until the end of times. Well,…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

726 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question