I think you need to specify the virtual hosts.
When I was trying to proxy requests to my app server , I got the same
problem and got it fixed after modfying the VH.
NameVirtualHost *:80
VirtualHost _default_:80
DocumentRoot your doc root
/VirtualHost
VirtualHost *:80
ServerName hostname:80
On Thursday 03 August 2006 00:14, dfelicia wrote:
http://myserver/myapp/my.jsp - route to Tomcat
http://myserver/myapp/my.gif - serve via Apache
This is quite easy to accomplish using mod_jk, but Apache 2.2 seems to
prefer mod_proxy_ajp.
Look up LocationMatch in TFM.
This looks like
When I try to insert a ProxyPass directive inside a LocationMatch, Apache
fails to start - syntax error.
I'm really hoping for an example, here. I'm wading through the doc, but am
not coming up with a solution.
--
View this message in context:
Got it working. Here's how I did it:
Directory /foo/bar
Options FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
Allow from all
/Directory
Alias /bar /foo/bar
RewriteEngine On
RewriteRule ^/bar/(.*)\.jsp$ ajp://127.0.0.1:45002/bar/$1.jsp [P]
RewriteRule
@httpd.apache.org'
Subject: RE: [EMAIL PROTECTED] mod_proxy_ajp (mod_rewrite) with ssl
Thanks for the tip, but I don't think that's my problem. I
just noticed that Tomcat is getting the request and
generating the html from the jsp. However, by the time it
gets back to my browser the content type is text
I finally figured it out. I had to add 'RewriteEngine on' to my rewrite
config inside the ssl virtualhost. Thanks.
,
Josh.
-Original Message-
From: Fenlason, Josh
Sent: Wednesday, June 07, 2006 10:28 AM
To: 'users@httpd.apache.org'
Subject: RE: [EMAIL PROTECTED] mod_proxy_ajp
I was wrong. I was just looking a simple tomcat example jsp that
contained html, so I thought the request was getting passed onto Tomcat,
but it wasn't.
...
Thanks for the tip, but I don't think that's my problem. I
just noticed that Tomcat is getting the request and
generating the
Fenlason, Josh wrote:
I think
it's probably something to do with my mod_rewrite configuration,
If you're using a SSL virtualhost, be sure to either inherit the rules
from the main server config section with the RewriteOptions directive or
repeat the rules in that virtual host.
--
Robert
^/(.*) ajp://localhost:8010/$1 [P]
-Original Message-
From: Robert Ionescu [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 06, 2006 12:01 PM
To: users@httpd.apache.org
Subject: Re: [EMAIL PROTECTED] mod_proxy_ajp (mod_rewrite) with ssl
Fenlason, Josh wrote:
I think
it's probably
Please remove me from your mailing list immediately. Thank you.
From: Fenlason, Josh [EMAIL PROTECTED]
Reply-To: users@httpd.apache.org
To: users@httpd.apache.org
Subject: [EMAIL PROTECTED] mod_proxy_ajp (mod_rewrite) with ssl
Date: Mon, 5 Jun 2006 15:53:13 -0400
I'm running into a problem
Charlie Moher wrote:
Please remove me from your mailing list immediately. Thank you.
Please follow the directions to remove yourself.
-
The official User-To-User support forum of the Apache HTTP Server Project.
See
On Tuesday 20 December 2005 17:19, Fenlason, Josh wrote:
Alias /jsp-examples D:/test/tomcat/webapps/jsp-examples
Directory D:/test/tomcat/webapps/jsp-examples
Options Indexes FollowSymLinks
AllowOverride None
allow from all
/Directory
ProxyPass /jsp-examples
[mailto:[EMAIL PROTECTED]
Sent: Tuesday, December 20, 2005 11:31 AM
To: users@httpd.apache.org
Subject: Re: [EMAIL PROTECTED] mod_proxy_ajp
On Tuesday 20 December 2005 17:19, Fenlason, Josh wrote:
Alias /jsp-examples D:/test/tomcat/webapps/jsp-examples
Directory D:/test/tomcat/webapps/jsp
13 matches
Mail list logo