LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-24-2003, 05:51 AM   #1
Javadude
LQ Newbie
 
Registered: Aug 2003
Posts: 1

Rep: Reputation: 0
Apache serving from unexpected DocumentRoot location


Using Slackware 9.0 and Latest Apache Versions.
I installed Apache in /usr/local/apache
Changed DocumentRoot in
/usr/local/apache/conf/httpd.conf
to /mnt/drive_d/htdocs
( which is a FAT drive ) and of course, restarted.

However, i've found that Apache is actually serving
the localhost index.html from /var/www/htdocs
and not from /mnt/drive_d/htdocs
as i expected.

Am confusted as to why is this happening?

 
Old 08-24-2003, 05:57 AM   #2
markus1982
Senior Member
 
Registered: Aug 2002
Location: Stuttgart (Germany)
Distribution: Debian/GNU Linux
Posts: 1,467

Rep: Reputation: 46
Are you using virtualhosts ?
 
Old 08-24-2003, 07:51 AM   #3
JavaDudeIL
LQ Newbie
 
Registered: Aug 2003
Posts: 3

Rep: Reputation: 0
No I'm not using Virtual hosts. Its a very vanilla installation

What I don't understand is why are there two
'apachectl' files? One is in /usr/sbin and another is
in /usr/local/apache/bin.

I don't think Apache was included in the slackware 9.0 release, which i downloaded from the single CD ISO Image from slackware.

Could I have two different apache installations? Any way to tell if the apache in /usr/local/apache is the one that is actually running or another installation?? Of course, /usr/sbin is in my path, so when I login as root from the root directoty and run apachectl start, it is probably running the /usr/sbin. Where would this version keep its httpd.conf file?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Changing Apache DocumentRoot walterbyrd Linux - Software 1 10-18-2005 03:30 PM
Apache DocumentRoot problem elliottsb Linux - Software 6 02-24-2005 09:40 PM
how to change apache documentroot tr3s Red Hat 6 08-31-2003 10:34 AM
apache looking for documentroot in /usr/htdocs niehls Linux - Software 3 07-06-2003 05:39 PM
DocumentRoot apache illtbagu Linux - Software 6 02-28-2003 12:04 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:40 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration