-   Linux - Server (
-   -   Re: DocumentRoot... NOT!` (

chris 01-31-2007 04:12 PM

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
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!!



comprookie2000 01-31-2007 04:29 PM

Look at /etc/httpd/conf/httpd.conf.
may be a Virtual Hosts

chris 02-01-2007 07:04 AM

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.



chris 02-01-2007 07:39 AM

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?


# ServerAdmin
DocumentRoot /var/www/html/vhost
# ErrorLog logs/
# CustomLog logs/ common



comprookie2000 02-01-2007 08:34 PM

I think once you start using virtual hosts the default site needs to be listed first.
something like;

<VirtualHost *>
# ServerAdmin
DocumentRoot /var/www/html
ServerName localhost
# ErrorLog logs/
# CustomLog logs/ common

chris 02-02-2007 06:17 AM

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!!


comprookie2000 02-02-2007 06:41 AM

Your welcome, where is the site?

chris 02-02-2007 11:39 AM

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

The sites are & and

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



All times are GMT -5. The time now is 11:51 PM.