Re: Re: Configuring Apache Web Server with Tomcat

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, 2009-07-15 at 21:17 +0600, alee amin wrote:
> I want apache httpd running on front and wants to forward the
> jsp/servlet requests to tomcat only. I want my static pages and photos
> to be processed by apache and want to configure it through mod_ajp
> 
> 
> 
> 
> I have come up with some settings which actually helped me in
> forwarding the reqeust to tomcat. But now i can't add ProxyPassMatch
> directive to it.. here are the configurations i have done in
> httpd.conf file
> 
> 
> ------
> one of the best explanation. I have been trying to work on it since
> yesterday but could not figure it out. but now it's working
> 
> 
> ok one question, i want to add ProxyPassMatch directive. If i put in
> VirtualHost then it gives me error. Can someone help?
> 
> 
> <VirtualHost *:80>
>    ServerName localhost
>    <Proxy *>
>      AddDefaultCharset Off
>      Order deny,allow
>      Allow from all
>    </Proxy>
>  
>    ProxyPass / ajp://localhost:8009/
>    ProxyPassReverse / ajp://localhost:8009/
> #   ProxyPassMatch ^(/photos/.*\.jpg)$!
>    
> Alias /photos "F:\projects\AL\Photos"
> 
> 
> <Directory "F:\projects\AL\Photos">
> Options Indexes MultiViews
> AllowOverride None
> Order allow,deny
> Allow from all
> </Directory>
>    
> </VirtualHost>
> ------
> 
> 
> How can if some request is for photos, don't forward, else forward it.
> Suggestions?
> 

ProxyPass /photos !

This is all well covered in the documentation.

http://httpd.apache.org/docs/2.2/mod/mod_proxy.html#proxypass

Cheers

Tom


---------------------------------------------------------------------
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: users-unsubscribe@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx


[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux