Sorry I have corrected the server name but the issue is the same.(I am
hiding the actual names).

<VirtualHost http://sonar.it.xyz.com :80 <http://mylaptop.company.com/>>
ServerName mylaptop.company.com
RewriteEngine On
RewriteCond %{REQUEST_METHOD} ^TRACE

RewriteRule ^/sonar/* http:// <http://mylaptop.company.com:81/sonar/*>
sonar.it.xyz.com:81/sonar/* <http://mylaptop.company.com:81/sonar/*>

ProxyPass / http://
<http://mylaptop.company.com:81/>sonar.it.xyz.com:81/<http://mylaptop.company.com:81/>
ProxyPassReverse / http:// <http://mylaptop.company.com:81/>sonar.it.xyz.com
:81/ <http://mylaptop.company.com:81/>
ProxyPass /sonar/* http:// <http://mylaptop.company.com:81/sonar/*>
sonar.it.xyz.com:81/sonar/* <http://mylaptop.company.com:81/sonar/*>
ProxyPassReverse /sonar/* http:// <http://mylaptop.company.com:81/sonar/*>
sonar.it.xyz.com:81/sonar/* <http://mylaptop.company.com:81/sonar/*>
ProxyPass /sonar/openid/validate/*
http://<http://mylaptop.company.com:81/sonar/openid/validate/*>
sonar.it.xyz.com:81/sonar/openid/validate/*<http://mylaptop.company.com:81/sonar/openid/validate/*>
ProxyPassReverse /sonar/openid/validate/*
http://<http://mylaptop.company.com:81/sonar/openid/validate/*>
sonar.it.xyz.com:81/sonar/openid/validate/*<http://mylaptop.company.com:81/sonar/openid/validate/*>

</VirtualHost>

Hope this helps. Will wait for your replies.

Thanks & Regards,
Jitesh Dundas

Phone - 732-357-6292





On Mon, Feb 18, 2013 at 1:00 PM, jitesh dundas <jbdun...@gmail.com> wrote:

> Hi,
>
> Thank you for your reply. Here is the virtualhost entry:-
>
> <VirtualHost mylaptop.company.com:80>
> ServerName mylaptop.company.com
> RewriteEngine On
> RewriteCond %{REQUEST_METHOD} ^TRACE
>
> RewriteRule ^/sonar/* http://mylaptop.company.com:81/sonar/*
>
> ProxyPass / http://mylaptop.company.com:81/
> ProxyPassReverse / http://mylaptop.company.com:81/
> ProxyPass /sonar/* http://mylaptop.company.com:81/sonar/*
> ProxyPassReverse /sonar/* http://mylaptop.company.com:81/sonar/*
> ProxyPass /sonar/openid/validate/*
> http://mylaptop.company.com:81/sonar/openid/validate/*
> ProxyPassReverse /sonar/openid/validate/*
> http://mylaptop.company.com:81/sonar/openid/validate/*
>
> </VirtualHost>
>
>
>
> Thanks & Regards,
> Jitesh Dundas
>
> Phone - 732-357-6292
>
>
>
>
>
> On Fri, Feb 15, 2013 at 8:30 PM, Igor Cicimov <icici...@gmail.com> wrote:
>
>>
>> On 16/02/2013 2:44 AM, "jitesh dundas" <jbdun...@gmail.com> wrote:
>> >
>> > Hi Everyone,
>> >
>> > I am trying to setup the Apache HTTP Server to handle requests from my
>> Tomcat 7 application.
>> > So for example any URL -> http://sonar.it.xyz.com should actually
>> handle requests from the application:-
>> >
>> >  http://tomcat:81/sonar .
>> >
>> > I used Proxypass and ReverseProxyPass for this and it seems to be
>> handling requests from http://sonar.it.xyz.com/sonar but not
>> http://sonar.it.xyz.com
>> >
>> > In short, I wanted to remove the /sonar part from the URL ..I have a
>> virtualhost defined to handle this.
>> >
>> > Thanks & Regards,
>> > Jitesh Dundas
>> >
>> > Phone - 732-357-6292
>> >
>> Show us the statements you used
>>
>>
>

Reply via email to