Solved

'where' is http://localhost/?

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

 Watch the Recording: Learning MySQL 5.7

MySQL 5.7 has a lot of new features. If you've dabbled with an older version of MySQL, it is definitely worth learning.

Question has a verified solution.

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

Network Interface Card (NIC) bonding, also known as link aggregation, NIC teaming and trunking, is an important concept to understand and implement in any environment where high availability is of concern. Using this feature, a server administrator …
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.…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
Suggested Courses

623 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