Re: apache jk2.conf and tomcat question heeelp
B Wiley wrote: Hello, Is there a way to put an absolute path in the jk2.conf location tag that would look like /var/www/html/*.jsp I'm trying to set things up so If i have a .jsp in my website root it forwards the request to tomcat without having the .jsp physically sitting inside the tomcat root. How will Tomcat know where that file is? He has not clue about your website root. Is this possible ??? Not without Tomcat itself capable of serving that file. The Tomcat is not PHP where you can fed the physical file to it's engine. Also, do not use JK2. It's unsupported. Mladen. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: apache jk2.conf and tomcat question heeelp
Thank you but I'm still not getting something, how do you create an alias directory ??? Is that just a symlink ? Please help me understand one concept. I cannot seem to get an answer for this ANYWHERE I've been at this for WEEKS I do not want my jsp pages and my html pages in two different locations . I just want them all in /var/www/html. Is this possible ? Can this be done, does anyone understand what I'm talking about hlp At 08:45 PM 12/22/2004, you wrote: I think the way to do that is set up an alias directory inside apache.conf pointing to that absolute location, then put the entry in jk2.conf for that alias. Cheers, -T Hello, Is there a way to put an absolute path in the jk2.conf location tag that would look like /var/www/html/*.jsp I'm trying to set things up so If i have a .jsp in my website root it forwards the request to tomcat without having the .jsp physically sitting inside the tomcat root. Is this possible ??? Thanks in advance - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: apache jk2.conf and tomcat question heeelp
Create a Java web application in the 'normal' fashion. See http://localhost/tomcat-docs/appdev/index.html for how to set things up. This will create your entire web application in $CATALINA_HOME/webapps. Now, in your Apache httpd.conf file, you need some configuration additions. Let's say your application is called beg-jsp (for beginning JSP). Directory /home/tomcat/tomcat-5.0/webapps/beg-jsp Options Indexes MultiViews AllowOverride None Order allow,deny Allow from 127.0.0.1 Allow from 192.168.1 /Directory Replace /home/tomcat/tomcat-5.0/webapps/beg-jsp with the directory where your application is located. Adjust the Allow from statements as desired. Also add an alias directive in your httpd.conf. Alias /beg-jsp//home/tomcat/tomcat-5.0/webapps/beg-jsp/ Again, replace /home/tomcat/tomcat-5.0/webapps/beg-jsp with YOUR directory. Now, in workers2.properties, add the following lines to pass all jsp requests to Tomcat. [uri:lvh.mdeggers.org/beg-jsp/*.jsp] worker=ajp13:localhost:8009 Replace lvh.mdeggers.org with your hostname. The worker I'm using is the default worker. Change that if you've defined it differently than the default. Now Apache will serve all content except for files ending with jsp. That will get sent to Tomcat to serve. HTH - /mde/ just my two cents . . . . - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
apache jk2.conf and tomcat question heeelp
Hello, Is there a way to put an absolute path in the jk2.conf location tag that would look like /var/www/html/*.jsp I'm trying to set things up so If i have a .jsp in my website root it forwards the request to tomcat without having the .jsp physically sitting inside the tomcat root. Is this possible ??? Thanks in advance - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: apache jk2.conf and tomcat question heeelp
I think the way to do that is set up an alias directory inside apache.conf pointing to that absolute location, then put the entry in jk2.conf for that alias. Cheers, -T Hello, Is there a way to put an absolute path in the jk2.conf location tag that would look like /var/www/html/*.jsp I'm trying to set things up so If i have a .jsp in my website root it forwards the request to tomcat without having the .jsp physically sitting inside the tomcat root. Is this possible ??? Thanks in advance - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]