Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
DocumentRoot not pointing to the correct place under ssl
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
honeymak
Guru
Guru


Joined: 30 Dec 2002
Posts: 595

PostPosted: Sat Sep 20, 2008 9:19 am    Post subject: DocumentRoot not pointing to the correct place under ssl Reply with quote

<VirtualHost *:80>
ServerName webmail.abc.hk
DocumentRoot /home/www/roundcubemail
<Location />
order allow,deny
allow from all
</Location>
</VirtualHost>
<VirtualHost *:443>
ServerName webmail.abc.hk
DocumentRoot /home/www/roundcubemail
<Location />
order allow,deny
allow from all
</Location>
</VirtualHost>

apache 2.2.9
the http one is working correctly
the https is not <-- this one points to /var/www/localhost/htdocs NOT the one defined by me
T.T

i found that this should be related to the value inside default_vhost.include
but i don't know how to fix this........T.T
this kind of config used to be working correctly
_________________
hackers - make sth real
academics - read sth said to be real
Back to top
View user's profile Send private message
thunder
Retired Dev
Retired Dev


Joined: 01 Sep 2003
Posts: 164
Location: Wroclaw, PL

PostPosted: Mon Sep 22, 2008 6:39 pm    Post subject: Reply with quote

try to grep configuration and find this string. You can do that in whole /etc if you want:
grep -rl /var/www/localhost/htdocs /etc

this should resolve you problem, probably there is another configuration directive which changes this DocumentRoot.
_________________
Damian Florczyk
Gentoo/NetBSD development lead
Back to top
View user's profile Send private message
honeymak
Guru
Guru


Joined: 30 Dec 2002
Posts: 595

PostPosted: Tue Sep 23, 2008 3:17 am    Post subject: Reply with quote

but after i commented out the one in default_vhost.include

it points to /usr
still not my docroot

T.T
is there any compile time "hard-code" problem?
:oops:
_________________
hackers - make sth real
academics - read sth said to be real
Back to top
View user's profile Send private message
jamapii
l33t
l33t


Joined: 16 Sep 2004
Posts: 637

PostPosted: Wed Sep 24, 2008 11:33 pm    Post subject: Reply with quote

I guess the <VirtualHost *:443> is also defined somewhere else, as _default_:443 or something similar, and that definition takes precedence.
Back to top
View user's profile Send private message
honeymak
Guru
Guru


Joined: 30 Dec 2002
Posts: 595

PostPosted: Thu Sep 25, 2008 5:36 pm    Post subject: Reply with quote

i tried to change that _default_ one to *:443
or even not include that config file

but still no luck
:cry:
_________________
hackers - make sth real
academics - read sth said to be real
Back to top
View user's profile Send private message
jamapii
l33t
l33t


Joined: 16 Sep 2004
Posts: 637

PostPosted: Sat Oct 04, 2008 11:45 am    Post subject: Reply with quote

I'm unsure how it fits all together, but you have some options left I think...

Change DocumentRoot in default_vhost.include and include it as in the original conf files.

Define DocumentRoot before or after including default_vhost (try finding out what should be the correct way, from experiment AND reading the docs)

Don't define SSL_DEFAULT_VHOST in /etc/conf.d/apache2, and create your own vhost by "clone and modify".


Whatever you do, I recommend to have a <Directory > directive for your docroot like the one in default_vhost.include.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security 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