You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by aordin <ao...@disid.com> on 2007/04/23 19:39:46 UTC
[users@httpd] Problem with mod_proxy_ajp with apache2.2+tomcat5.5
Hi to all!
i'm newbie and this is my first question.
I have one problem when go to one link, my problem is something put a
duplicated component into the url, exemple:
The link url is: http://www.myportal.com/myapp/portal/intranet
and, when i click on it, the browser show this error:
http 404 - /myapp/myapp/portal/intranet (/myapp is duplicated)
Configuration only to describe the problem(complete config is down of
message):
With this VirtualHost config, i can see the first page of my portal but
not correctly, only partialy:
<VirtualHost *>
ServerName www.myportal.com
ProxyRequests Off
<Proxy *>
Order deny,allow
Allow from all
</Proxy>
ProxyPass / ajp://192.168.0.100:8009/myapp/ (this ip is my local ip
becuase i'm testing with two machines in the same LAN)
ProxyPassReverse / ajp://192.168.0.100:8009/myapp/
</VirtualHost>
I see if in my VirtualHost config i change the url specified in:
ProxyPass / ajp://192.168.0.100:8009/myapp/
to, for example:
ProxyPass / ajp://192.168.0.100:8009/myapp without ending "/", the first
page isn't showed, and shows this error:
http 404 - /myappmyapp/
its the same than the first error but without the middle bar, but now
it's showed in the first page too.
I'm using:
- apache2 - 2.2.3
- Tomcat-5.5.20
- mod_proxy
- mod_proxy_http
- mod_proxy_ajp
- Ubuntu 6.10
- Portal builded with jetspeed2
My config is:
All used modules enabled into /etc/apache2/mods-enabled/
The site enabled too into /sites-enabled/
Into the site is specified the virtual host:
<VirtualHost *>
ServerName www.myportal.com
ProxyRequests Off
<Proxy *>
Order deny,allow
Allow from all
</Proxy>
ProxyPass / ajp://192.168.0.100:8009/myapp/ (this ip is my local ip
becuase i'm testing with two machines in the same LAN)
ProxyPassReverse / ajp://192.168.0.100:8009/myapp/
</VirtualHost>
My application is situated into /TOMCAT_HOME/webapps/myapp/
If you need more details, please, answer to me.
I need your help!!
Thanks in advance!!
Adolfo.
---------------------------------------------------------------------
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@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: [users@httpd] Problem with mod_proxy_ajp with apache2.2+tomcat5.5
Posted by aordin <ao...@disid.com>.
SOLVED!!!
The problem was the redirections into VirtualHost, because "/" was
changed always to "/mypp" and for this, in the url the name is double.
One quick solution is(i'm working in one best with mod_rewrite):
<VirtualHost *>
ServerName www.myportal.com ProxyRequests Off
<Proxy *>
Order deny,allow
Allow from all
</Proxy>
ProxyPass /myapp/ ajp://192.168.0.100:8009/myapp/ (this line is the
new lane)
ProxyPass / ajp://192.168.0.100:8009/myapp/ (this ip is my local ip
becuase i'm testing with two machines in the same LAN)
ProxyPassReverse / ajp://192.168.0.100:8009/myapp/
</VirtualHost>
Adolfo.
aordin wrote:
> Hi to all!
> i'm newbie and this is my first question.
>
> I have one problem when go to one link, my problem is something put a
> duplicated component into the url, exemple:
>
> The link url is: http://www.myportal.com/myapp/portal/intranet
> and, when i click on it, the browser show this error:
> http 404 - /myapp/myapp/portal/intranet (/myapp is duplicated)
> Configuration only to describe the problem(complete config is down of
> message):
> With this VirtualHost config, i can see the first page of my portal
> but not correctly, only partialy:
>
> <VirtualHost *>
> ServerName www.myportal.com ProxyRequests Off
> <Proxy *>
> Order deny,allow
> Allow from all
> </Proxy> ProxyPass / ajp://192.168.0.100:8009/myapp/ (this ip
> is my local ip becuase i'm testing with two machines in the same LAN)
> ProxyPassReverse / ajp://192.168.0.100:8009/myapp/
> </VirtualHost>
>
> I see if in my VirtualHost config i change the url specified in:
> ProxyPass / ajp://192.168.0.100:8009/myapp/
> to, for example:
> ProxyPass / ajp://192.168.0.100:8009/myapp without ending "/", the
> first page isn't showed, and shows this error:
> http 404 - /myappmyapp/
> its the same than the first error but without the middle bar, but now
> it's showed in the first page too.
>
> I'm using:
>
> - apache2 - 2.2.3
> - Tomcat-5.5.20
> - mod_proxy
> - mod_proxy_http
> - mod_proxy_ajp
> - Ubuntu 6.10
> - Portal builded with jetspeed2
>
> My config is:
>
> All used modules enabled into /etc/apache2/mods-enabled/
> The site enabled too into /sites-enabled/
>
> Into the site is specified the virtual host:
>
> <VirtualHost *>
> ServerName www.myportal.com ProxyRequests Off
> <Proxy *>
> Order deny,allow
> Allow from all
> </Proxy> ProxyPass / ajp://192.168.0.100:8009/myapp/ (this ip
> is my local ip becuase i'm testing with two machines in the same LAN)
> ProxyPassReverse / ajp://192.168.0.100:8009/myapp/
> </VirtualHost>
>
> My application is situated into /TOMCAT_HOME/webapps/myapp/
>
> If you need more details, please, answer to me.
>
> I need your help!!
>
> Thanks in advance!!
>
> Adolfo.
>
> ---------------------------------------------------------------------
> 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@httpd.apache.org
> " from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
---------------------------------------------------------------------
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@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org