Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] Apache2 problem.
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
azmodai
n00b
n00b


Joined: 07 Jul 2006
Posts: 63

PostPosted: Tue Aug 14, 2007 11:57 am    Post subject: [SOLVED] Apache2 problem. Reply with quote

Hello,

I've a weird problem with apache ... it seems to doesn't find htdocs directory.
When my gentoo is booting i get a weird message about a Virutal Host that is not found and when i run firefox to go to 127.0.0.1 i get that thing :
"The request URL / not found on this server."
When i look inside /var/log/apache2/error_log i get that :
"File does not exists : /usr/htdocs" wheras inside the httpd.conf file there is nothing speaking about htdocs repertory ....

Do you know how resolve the problem?

Thanks,


Last edited by azmodai on Tue Aug 14, 2007 3:03 pm; edited 1 time in total
Back to top
View user's profile Send private message
vad3r
Guru
Guru


Joined: 02 May 2004
Posts: 461
Location: Munich, Germany

PostPosted: Tue Aug 14, 2007 2:41 pm    Post subject: Reply with quote

This error normally indicates that you have a virtual host without a defined document root. Please check your configuration
Back to top
View user's profile Send private message
azmodai
n00b
n00b


Joined: 07 Jul 2006
Posts: 63

PostPosted: Tue Aug 14, 2007 3:03 pm    Post subject: Reply with quote

Ok, i find the problem.
I've "commented" this line : "Include /etc/apache2/vhosts.d/*.conf" and add this line :
DocumentRoot "/var/www/localhost/htdocs" and now it's resolved.

bye,
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum