Re: Configuring Apache Web Server with Tomcat

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

 



On Tue, 2009-07-14 at 20:44 +0600, alee amin wrote:
> I am trying to configuring apache webserver with tomcat using AJP but
> i am not sure am i doing it right or not.
> 
> 
> Here are the steps that i followed
> 
> 
> - Enabled required module in httpd.conf file
>   LoadModule proxy_module modules/mod_proxy.so
>   LoadModule proxy_ajp_module modules/mod_proxy_ajp.so
> 
> 
> - Added the ifModule condition in httpd.conf file
>   <IfModule mod_proxy>
> ProxyPass / ajp://localhost:8009/
> ProxyPassMatch ^(/photos/.*\.jpg)$!

^^^^ This line isn't correct. I assume it is trying to say 'If requested
URI is like /photos/foo.jpg, then do not proxy it. I believe you will
need a space between the regular expression and the '!' eg:

ProxyPassMatch ^(/photos/.*\.jpg)$ !

>   </IfModule>
> 
> 
>   Alias /photos "F:\projects\AL\Photos"
> 
> 
>   <Directory "F:\projects\AL\Photos">
>   Options Indexes MultiViews
>   AllowOverride None
>       Order allow,deny
>       Allow from all
>   </Directory>
> 
> 
> - Added the worker.properties file to Catalina_home/conf directory
> with follwoing properties
>    worker.list=testWorker
>    worker.testWorker.port=8009
>    worker.testWorker.host=localhost
>    worker.testWorker.type=ajp13
> 
> 
> - And finally adding the connector in server.xml file of tomcat
>   <Connector 
> className="org.apache.ajp.tomcat4.Ajp13Connector"
> port="8009" 
> minProcessors="5" 
> maxProcessors="75" 
> acceptCount="10" 
> debug="0"
> />
> 
> 
> Now i am trying to test to browse some JSP file at the following
> location
> "http://localhost:8009/examples/jsp/jsp2/el/basic-arithmetic.jsp";
> which is working fine. but i want to browse this file
> at http://localhost/examples/jsp/jsp2/el/basic-arithmetic.jsp. 
> 
> 
> Have i done it right or there is something else that i can do?
> 
> 
> ..alee
> http://techboard.wordpress.com
> 
> 


---------------------------------------------------------------------
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