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: [EMAIL PROTECTED]
" from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
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: [EMAIL PROTECTED]
" from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]