Solved

'where' is http://localhost/?

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

VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.

Question has a verified solution.

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

Daily system administration tasks often require administrators to connect remote systems. But allowing these remote systems to accept passwords makes these systems vulnerable to the risk of brute-force password guessing attacks. Furthermore there ar…
Setting up Secure Ubuntu server on VMware 1.      Insert the Ubuntu Server distribution CD or attach the ISO of the CD which is in the “Datastore”. Note that it is important to install the x64 edition on servers, not the X86 editions. 2.      Power on th…
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.:
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

910 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now