LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   Re: DocumentRoot... NOT!` (https://www.linuxquestions.org/questions/linux-server-73/re-documentroot-not-%60-524484/)

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

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.

Thanks,

Chris

chris 02-01-2007 07:39 AM

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

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


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

Chris

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 www.clickablelove.com & and www.gtagoodies.com


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

cheers,

Chris


All times are GMT -5. The time now is 09:55 AM.