Pete Houston wrote:
Most likely what you are after is the "Alias" directive.
On 21.10.11 10:53, milan tomic wrote:
Yes, Alias is what I need. But it doesn't work for me. I have this case:
<VirtualHost *:80>
DocumentRoot "D:/Dir1/Dir2"
<Location /MainPath/App1>
ProxyPass http://tomcat1/MainPath/App1
</Location>
Alias /MainPath/AL "D:\Dir3\Dir4"
<Directory "D:\Dir3\Dir4">
Order allow,deny
Allow from all
</Directory>
<Location /MainPath/>
ProxyPass ajp://tomcat2/MainPath/
</Location>
ProxyPass /MainPath ajp://tomcat2/MainPath
</VirtualHost>
and when I visit http://apachehttpd1/MainPath/AL tomcat returns 404 not
found :(
I am afrtaid you are instructing apache to pass /MainPath/ to tomcat,
which includes /MainPath/AL ... maybe you could Alias /MainPath/AL
within other Location directive.
--
Matus UHLAR - fantomas, [email protected] ; http://www.fantomas.sk/
Warning: I wish NOT to receive e-mail advertising to this address.
Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu.
- Holmes, what kind of school did you study to be a detective?
- Elementary, Watson. -- Daffy Duck & Porky Pig
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [email protected]
" from the digest: [email protected]
For additional commands, e-mail: [email protected]