View previous topic :: View next topic |
Author |
Message |
honeymak Guru
Joined: 30 Dec 2002 Posts: 595
|
Posted: Sat Sep 20, 2008 9:19 am Post subject: DocumentRoot not pointing to the correct place under ssl |
|
|
<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 |
|
|
thunder Retired Dev
Joined: 01 Sep 2003 Posts: 164 Location: Wroclaw, PL
|
Posted: Mon Sep 22, 2008 6:39 pm Post subject: |
|
|
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 |
|
|
honeymak Guru
Joined: 30 Dec 2002 Posts: 595
|
Posted: Tue Sep 23, 2008 3:17 am Post subject: |
|
|
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?
_________________ hackers - make sth real
academics - read sth said to be real |
|
Back to top |
|
|
jamapii l33t
Joined: 16 Sep 2004 Posts: 637
|
Posted: Wed Sep 24, 2008 11:33 pm Post subject: |
|
|
I guess the <VirtualHost *:443> is also defined somewhere else, as _default_:443 or something similar, and that definition takes precedence. |
|
Back to top |
|
|
honeymak Guru
Joined: 30 Dec 2002 Posts: 595
|
Posted: Thu Sep 25, 2008 5:36 pm Post subject: |
|
|
i tried to change that _default_ one to *:443
or even not include that config file
but still no luck
_________________ hackers - make sth real
academics - read sth said to be real |
|
Back to top |
|
|
jamapii l33t
Joined: 16 Sep 2004 Posts: 637
|
Posted: Sat Oct 04, 2008 11:45 am Post subject: |
|
|
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 |
|
|
|