LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 01-31-2007, 04:12 PM   #1
chris
Member
 
Registered: Nov 2001
Location: Toronto, Canada
Distribution: CentOS 4
Posts: 66

Rep: Reputation: 15
Re: DocumentRoot... NOT!`


Ok folks.. I've been using Apache for many years.. I'm not familiar with all of its directives but I know how work it. I've just recently went with dedicated hosting and the box came with fedora core 4 and plesk 8.. which I removed as it was using site builder and just using up too much resources along with confusing me.. I find the command line much more friendlier! Anyhow, my problem. Apache 2.0 DocumentRoot "/var/www/html" & DocumentDirectory "/var/www/html" as well... the defaults.
the permissions on html drwxr-xr-x.. ok. I have documents in html... directories and files. Let's use index.html with full permissions. when I go to my domain www.clickablelove.com
I get an index listting page with no listings as though I had no files or dirs in my document root??? I have no clue what it can be.. has anyone dealt with this before? I need some help.. trying to launch some sites but being held back too long by this silly issue of mine!!

Cheers!

Chris
 
Old 01-31-2007, 04:29 PM   #2
comprookie2000
Gentoo Developer
 
Registered: Feb 2004
Location: Fort Lauderdale FL.
Distribution: Gentoo
Posts: 3,291
Blog Entries: 5

Rep: Reputation: 54
Look at /etc/httpd/conf/httpd.conf.
may be a Virtual Hosts
 
Old 02-01-2007, 07:04 AM   #3
chris
Member
 
Registered: Nov 2001
Location: Toronto, Canada
Distribution: CentOS 4
Posts: 66

Original Poster
Rep: Reputation: 15
Thanks for the message and yes there is a vhost directive as I have another domain. I've been using vhosts for sometime now and I don't believe this to be the problem. I'm gonna comment the vhost out and restart httpd and see though... just to say I've tried it.

Thanks,

Chris
 
Old 02-01-2007, 07:39 AM   #4
chris
Member
 
Registered: Nov 2001
Location: Toronto, Canada
Distribution: CentOS 4
Posts: 66

Original Poster
Rep: Reputation: 15
Thanks!

My RedHat goes off to you comprookie200. it was the vhost directive causing the problem as httpd was serving from that instead of the document root. I don't understand though because I have configured the vhost the same way as I always have.... can you notice anything odd with this?

NameVirtualHost 74.210.9.160


<VirtualHost 74.210.9.160>
# ServerAdmin webmaster@dummy-host.example.com
DocumentRoot /var/www/html/vhost
ServerName www.vhost.com
# ErrorLog logs/dummy-host.example.com-error_log
# CustomLog logs/dummy-host.example.com-access_log common
</VirtualHost>

Thanks,


Chris
 
Old 02-01-2007, 08:34 PM   #5
comprookie2000
Gentoo Developer
 
Registered: Feb 2004
Location: Fort Lauderdale FL.
Distribution: Gentoo
Posts: 3,291
Blog Entries: 5

Rep: Reputation: 54
I think once you start using virtual hosts the default site needs to be listed first.
something like;
Code:
<VirtualHost *>
# ServerAdmin webmaster@dummy-host.example.com
DocumentRoot /var/www/html
ServerName localhost
# ErrorLog logs/dummy-host.example.com-error_log
# CustomLog logs/dummy-host.example.com-access_log common
</VirtualHost>

Last edited by comprookie2000; 02-01-2007 at 08:37 PM.
 
Old 02-02-2007, 06:17 AM   #6
chris
Member
 
Registered: Nov 2001
Location: Toronto, Canada
Distribution: CentOS 4
Posts: 66

Original Poster
Rep: Reputation: 15
All Good Now! : )

Thanks and once again comprookie2000 you are absolutely right... I figured it out after I compared my other httpd.conf file. Things have all come together nicely now... something tells me I may need to come back here for more help though in a bit! You've been a good help.. thanks alot!!

Chris
 
Old 02-02-2007, 06:41 AM   #7
comprookie2000
Gentoo Developer
 
Registered: Feb 2004
Location: Fort Lauderdale FL.
Distribution: Gentoo
Posts: 3,291
Blog Entries: 5

Rep: Reputation: 54
Your welcome, where is the site?
 
Old 02-02-2007, 11:39 AM   #8
chris
Member
 
Registered: Nov 2001
Location: Toronto, Canada
Distribution: CentOS 4
Posts: 66

Original Poster
Rep: Reputation: 15
Re: Sites

Hey comprookie2000.. who's not so much a rookie afterall! lol

The sites are www.clickablelove.com & and www.gtagoodies.com


they are both works in progress at this point but just about done.

cheers,

Chris
 
  


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
debian apache documentroot see Linux - Newbie 2 02-28-2006 02:18 AM
Where is DocumentRoot? tfc MEPIS 3 06-02-2005 01:41 AM
DocumentRoot redhatlover Red Hat 3 04-27-2004 12:45 PM
DocumentRoot apache illtbagu Linux - Software 6 02-28-2003 12:04 AM
DocumentRoot error message Thinkgeekness Linux - Software 3 02-18-2003 08:59 PM


All times are GMT -5. The time now is 08:02 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration