Solved

'where' is http://localhost/?

Posted on 2000-02-29
3
350 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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

I am a long time windows user and for me it is normal to have spaces in directory and file names. Changing to Linux I found myself frustrated when I moved my windows data over to my new Linux computer. The problem occurs when at the command line.…
In the first part of this tutorial we will cover the prerequisites for installing SQL Server vNext on Linux.
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…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

728 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