I have a virtual host for apache, which is also connected to Tomcat for executing JSP pages.Now i am trying to allow access to my virtual host to the directory "/home/adv".The entries in my different files are:
In Tomcat's server.xml:<VirtualHost 192.168.0.111:80>
# Alias for examplesite
Alias /adv/ "/home/adv/"
Allow from all
JkMount /* wrkr
In workers.properties:<!-- sep14dom3.com -->
<Host name="sep14dom3.com" appBase="/webspace/sep14dom3.com/docs/html"
<Context path="" docBase="" debug="0" reloadable="true"/>
<Valve className="org.apache.catalina.valves.AccessLogVal ve"
directory="logs" prefix="web1_access_log." suffix=".txt"
Now, when i access the site: http://sep14dom3.com, i get the correct html page.worker.wrkr.port=8009
When i try to access the jsp- page, my examples execute correctly.
But when i enter http://sep14dom3.com/adv, i get the errorI have created the /home/advcomm directory and html page is also placed there.Can anybody help me with it?HTTP Status 404
Well, I just tried it and it worked.
YMMV though.Code:Alias /test/ /home/compunuts/test-zencart/ <directory "/home/compunuts/test-zencart/"> Options Indexes FollowSymLinks MultiViews AllowOverride None Order allow,deny allow from all </Directory>
Thanx a lot for your reply but i have already tried it and its not working.
Last edited by honey bee; 09-23-2006 at 10:52 AM.
What about if you put in those options within directory setting?
Code:Options Indexes FollowSymLinks MultiViews AllowOverride None
I just tried to put that with my home directory and it worked.
Code:Alias /test/ /home/compunuts/ <directory "/home/compunuts/"> Options Indexes FollowSymLinks MultiViews AllowOverride None Order allow,deny Allow from all </directory>
Thanks a lot for your replies.
Ok, now i just tried it with httpd service only it works fine, but when i try to do it with tomcat5 too. Its not working and i am also not getting any errors related to it in log
Any idea about it ?