Forum Moderators: phranque

Message Too Old, No Replies

Apache URL Handling

         

kpryan01

7:58 pm on Nov 29, 2006 (gmt 0)

10+ Year Member



I have purchased a VPS system and I am experiencing a strange problem with virtual Hosting. Any URL of the form [domain-name...] gets directed to /var/lib/tomcat4/server/webapps/admin. Tomcat is not active and I have been through the apache conf files without finding anything wrong.

Does anybody have any ideas? - is this even an Apache problem?

Regards,

kpryan01

jdMorgan

8:12 pm on Nov 29, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Look for Alias, ScriptAlias, Redirect, RedirectMatch, RewriteCond, and RewriteRule directives that contain the string "admin".

Who set up this VPS? They should know why this happens.

Jim

kpryan01

9:19 pm on Nov 29, 2006 (gmt 0)

10+ Year Member



Jim,

I have been back to them once and they referred me to the documentation! Nothing there - I have complained that this makes the system unusable and await their reply.

Per your suggestion I have examined the httpd.conf file and right at the bottom was an include file called: /etc/httpd/conf/mod_jk.conf which contains the lines:

Alias /admin "/var/lib/tomcat4/server/webapps/admin"
<Directory "/var/lib/tomcat4/server/webapps/admin">
Options Indexes FollowSymLinks
</Directory>

This is obviously the problem but I am not sure of the effects of not including this mod_jk.conf in the Apache setup.

Kevin

jdMorgan

11:17 pm on Nov 29, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Not much to lose if you don't use Tomcat...

Add a "#" character at the front of that include line, restart the server, and your problem will likely be gone.

Jim

[edited by: jdMorgan at 12:35 am (utc) on Nov. 30, 2006]