Solved

'where' is http://localhost/?

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

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

The purpose of this article is to demonstrate how we can use conditional statements using Python.
Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
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.

705 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