You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Carsten Heidmann <he...@Hamburg.BAW.DE> on 2003/03/21 11:37:32 UTC
htaccess/virtual hosts doesn't work
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi,
I am experiencing a strange problem:
I have a combination of Apache 2.0.44/mod_jk2 (2.0.2)/Tomcat 4.1.12,
running on a Solaris 8 SPARC. Apache is configured to serve a number of
name based virtual hosts, of which some are serving content with jsp or/and
servlets.
After trying to configure mod_jk2 through JkSet/JkUriSet directives in
httpd.conf, which did not work for me, I returned to workers2.properties:
- ----------------------------------------------------------
[shm]
file=/usr/local/apache2/logs/shm.file
size=1048576
# Example socket channel, override port and host.
[channel.socket:localhost:8009]
port=8009
host=localhost
# define the worker
[ajp13:localhost:8009]
channel=channel.socket:localhost:8009
[uri:somehost1.somedomain.de/*.jsp]
[uri:somehost1.somedomain.de/editor*]
[uri:somehost1.somedomain.de/morvis4/*]
[uri:somehost1.somedomain.de/kueste*]
[uri:somehost2.somedomain.de/*.jsp]
- ----------------------------------------------------------
I now have the problem, that htaccess-based authentification works fine for
the virtual hosts without a [uri:...] mapping to Tomcat. When I try to
protect a directory from one of the mapped virtual hosts, nothing happens.
I suspected that the whole virtual host is mapped to Tomcat, so I tried to
protect this directory via Tomcat - again nothing.
In httpd.conf, I load mod_auth and mod_access, disable overriding per
default and enable it for the specific directory:
- ----------------------------------------------------------
[snip]
LoadModule access_module modules/mod_access.so
LoadModule auth_module modules/mod_auth.so
LoadModule php4_module modules/libphp4.so
LoadModule jk2_module modules/mod_jk2.so
[snip]
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
[snip]
<VirtualHost xxx.xxx.xxx.xxx>
[snip]
<Directory "/data/www1/nokis/intern">
AllowOverride AuthConfig
Options None
</Directory>
</VirtualHost>
- ----------------------------------------------------------
Any ideas are greatly appreciated,
TIA, Carsten
-----BEGIN PGP SIGNATURE-----
Version: 6.5.8ckt
iQA/AwUBPnrdSrjxzYr/SJ6uEQLJeQCfXGDnqi/GqmVl0rHsVrCI+vsMiGIAnjeD
v/NALiCYntkRGIJdE20OCe9A
=ZuMW
-----END PGP SIGNATURE-----
------------------------------------------------------------
Dipl. Geogr. Carsten Heidmann Bundesanstalt fuer Wasserbau
Tel.: 040.81908.345 - Aussenstelle Kueste -
Fax: 040.81908.373 Wedeler Landstrasse 157
heidmann@hamburg.baw.de DE - 22559 Hamburg
http://nokis.baw.de/ http://www.hamburg.baw.de/
------------------------------------------------------------
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org