You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Amir Porat <am...@gmail.com> on 2008/10/19 11:42:02 UTC
[users@httpd] Reverse proxy (cross domain) - ProxyPass issue
Hello.
I have HTML page from server1. this page should request (XMLHTTP) to server2
(not in the same domain) - cross domain issue here.
Trying to overcome this I tried to request HTML to server1:
*oXmlHttpRequest.open("GET", "**
http://server1.aabbcc.com/RemoteServerTest/RemoteServer.asp*<http://server1.aabbcc.com/RemoteServerTest/RemoteServer.asp>
*", false);*
and by reverse proxy to "redirect" the request:
*ProxyRequests Off*
*ProxyPass aabbcc.com/ **http://server2.xxyyzz.com/*<http://server2.xxyyzz.com/>
Do I miss somthing here?
Any configuration in httpd.conf ?
Thanks.
--
Regards...
Porat Amir
Re: [users@httpd] Reverse proxy (cross domain) - ProxyPass issue
Posted by Amir Porat <am...@gmail.com>.
Sorry, all, for the spamming.
Can anyone refer/guide me to any example?
Still can't get complete answer...
Thanks.
On Sun, Oct 19, 2008 at 2:22 PM, André Warnier <aw...@ice-sa.com> wrote:
> Eric Covener wrote:
>
>> On Sun, Oct 19, 2008 at 5:42 AM, Amir Porat <am...@gmail.com> wrote:
>>
>>> Hello.
>>>
>>> I have HTML page from server1. this page should request (XMLHTTP) to
>>> server2
>>> (not in the same domain) - cross domain issue here.
>>> Trying to overcome this I tried to request HTML to server1:
>>> oXmlHttpRequest.open("GET",
>>> "http://server1.aabbcc.com/RemoteServerTest/RemoteServer.asp", false);
>>>
>>
>> Stop creating new threads.
>>
>> Sorry, Eric, my fault.
>
> I was the one to tell Amir to stop sending the same message several times
> under different subjects, but also to ask him to re-submit this with with a
> relevant subject, instead of "APACHE question".
> Of course now we have a 4th thread for the same thing..
> But hopefully the last one.
>
>
>
> ---------------------------------------------------------------------
> 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
>
>
--
Regards...
Porat Amir
Re: [users@httpd] Reverse proxy (cross domain) - ProxyPass issue
Posted by André Warnier <aw...@ice-sa.com>.
Eric Covener wrote:
> On Sun, Oct 19, 2008 at 5:42 AM, Amir Porat <am...@gmail.com> wrote:
>> Hello.
>>
>> I have HTML page from server1. this page should request (XMLHTTP) to server2
>> (not in the same domain) - cross domain issue here.
>> Trying to overcome this I tried to request HTML to server1:
>> oXmlHttpRequest.open("GET",
>> "http://server1.aabbcc.com/RemoteServerTest/RemoteServer.asp", false);
>
> Stop creating new threads.
>
Sorry, Eric, my fault.
I was the one to tell Amir to stop sending the same message several
times under different subjects, but also to ask him to re-submit this
with with a relevant subject, instead of "APACHE question".
Of course now we have a 4th thread for the same thing..
But hopefully the last one.
---------------------------------------------------------------------
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] Reverse proxy (cross domain) - ProxyPass issue
Posted by Eric Covener <co...@gmail.com>.
On Sun, Oct 19, 2008 at 5:42 AM, Amir Porat <am...@gmail.com> wrote:
> Hello.
>
> I have HTML page from server1. this page should request (XMLHTTP) to server2
> (not in the same domain) - cross domain issue here.
> Trying to overcome this I tried to request HTML to server1:
> oXmlHttpRequest.open("GET",
> "http://server1.aabbcc.com/RemoteServerTest/RemoteServer.asp", false);
Stop creating new threads.
--
Eric Covener
covener@gmail.com
---------------------------------------------------------------------
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] Reverse proxy (cross domain) - ProxyPass issue
Posted by Amir Porat <am...@gmail.com>.
Thank you all for your great help - as apache says: "It Works" ;)
On Sun, Oct 19, 2008 at 3:47 PM, Amir Porat <am...@gmail.com> wrote:
> How can I see the packet trace?
> ...Don't see anything special in the event viewer of server2.
>
> On Sun, Oct 19, 2008 at 3:38 PM, Eric Covener <co...@gmail.com> wrote:
>
>> On Sun, Oct 19, 2008 at 9:33 AM, Amir Porat <am...@gmail.com> wrote:
>> > [Sun Oct 19 15:30:55 2008] [notice] Apache/2.2.9 (Win32) configured --
>> > resuming normal operations
>> > [Sun Oct 19 15:30:55 2008] [notice] Server built: Jun 13 2008 04:04:59
>> > [Sun Oct 19 15:30:55 2008] [notice] Parent: Created child process 27688
>> > [Sun Oct 19 15:30:55 2008] [notice] Child 27688: Child process is
>> running
>> > [Sun Oct 19 15:30:56 2008] [notice] Child 27688: Acquired the start
>> mutex.
>> > [Sun Oct 19 15:30:56 2008] [notice] Child 27688: Starting 64 worker
>> threads.
>> > [Sun Oct 19 15:30:56 2008] [notice] Child 27688: Starting thread to
>> listen
>> > on port 80.
>>
>> Maybe the 403 just comes from the backend server -- have you looked at
>> any logs there?
>>
>> Try LogLevel debug on both, sending the request directly to the
>> origin server, or looking at a packet trace between the two
>> webservers.
>>
>>
>> --
>> Eric Covener
>> covener@gmail.com
>>
>> ---------------------------------------------------------------------
>> 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
>>
>>
>
>
> --
> Regards...
> Porat Amir
>
--
Regards...
Porat Amir
Re: [users@httpd] Reverse proxy (cross domain) - ProxyPass issue
Posted by Amir Porat <am...@gmail.com>.
How can I see the packet trace?
...Don't see anything special in the event viewer of server2.
On Sun, Oct 19, 2008 at 3:38 PM, Eric Covener <co...@gmail.com> wrote:
> On Sun, Oct 19, 2008 at 9:33 AM, Amir Porat <am...@gmail.com> wrote:
> > [Sun Oct 19 15:30:55 2008] [notice] Apache/2.2.9 (Win32) configured --
> > resuming normal operations
> > [Sun Oct 19 15:30:55 2008] [notice] Server built: Jun 13 2008 04:04:59
> > [Sun Oct 19 15:30:55 2008] [notice] Parent: Created child process 27688
> > [Sun Oct 19 15:30:55 2008] [notice] Child 27688: Child process is running
> > [Sun Oct 19 15:30:56 2008] [notice] Child 27688: Acquired the start
> mutex.
> > [Sun Oct 19 15:30:56 2008] [notice] Child 27688: Starting 64 worker
> threads.
> > [Sun Oct 19 15:30:56 2008] [notice] Child 27688: Starting thread to
> listen
> > on port 80.
>
> Maybe the 403 just comes from the backend server -- have you looked at
> any logs there?
>
> Try LogLevel debug on both, sending the request directly to the
> origin server, or looking at a packet trace between the two
> webservers.
>
>
> --
> Eric Covener
> covener@gmail.com
>
> ---------------------------------------------------------------------
> 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
>
>
--
Regards...
Porat Amir
Re: [users@httpd] Reverse proxy (cross domain) - ProxyPass issue
Posted by Eric Covener <co...@gmail.com>.
On Sun, Oct 19, 2008 at 9:33 AM, Amir Porat <am...@gmail.com> wrote:
> [Sun Oct 19 15:30:55 2008] [notice] Apache/2.2.9 (Win32) configured --
> resuming normal operations
> [Sun Oct 19 15:30:55 2008] [notice] Server built: Jun 13 2008 04:04:59
> [Sun Oct 19 15:30:55 2008] [notice] Parent: Created child process 27688
> [Sun Oct 19 15:30:55 2008] [notice] Child 27688: Child process is running
> [Sun Oct 19 15:30:56 2008] [notice] Child 27688: Acquired the start mutex.
> [Sun Oct 19 15:30:56 2008] [notice] Child 27688: Starting 64 worker threads.
> [Sun Oct 19 15:30:56 2008] [notice] Child 27688: Starting thread to listen
> on port 80.
Maybe the 403 just comes from the backend server -- have you looked at
any logs there?
Try LogLevel debug on both, sending the request directly to the
origin server, or looking at a packet trace between the two
webservers.
--
Eric Covener
covener@gmail.com
---------------------------------------------------------------------
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] Reverse proxy (cross domain) - ProxyPass issue
Posted by Amir Porat <am...@gmail.com>.
[Sun Oct 19 15:30:55 2008] [notice] Apache/2.2.9 (Win32) configured --
resuming normal operations
[Sun Oct 19 15:30:55 2008] [notice] Server built: Jun 13 2008 04:04:59
[Sun Oct 19 15:30:55 2008] [notice] Parent: Created child process 27688
[Sun Oct 19 15:30:55 2008] [notice] Child 27688: Child process is running
[Sun Oct 19 15:30:56 2008] [notice] Child 27688: Acquired the start mutex.
[Sun Oct 19 15:30:56 2008] [notice] Child 27688: Starting 64 worker threads.
[Sun Oct 19 15:30:56 2008] [notice] Child 27688: Starting thread to listen
on port 80.
On Sun, Oct 19, 2008 at 3:20 PM, Eric Covener <co...@gmail.com> wrote:
> On Sun, Oct 19, 2008 at 9:13 AM, Amir Porat <am...@gmail.com> wrote:
> >
> > Now I'm getting "permission denied" msg.
> >
> > Do I need to add this: ./configure --enable-proxy ??
>
> Probably not. What does your error log say?
>
> --
> Eric Covener
> covener@gmail.com
>
> ---------------------------------------------------------------------
> 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
>
>
--
Regards...
Porat Amir
Re: [users@httpd] Reverse proxy (cross domain) - ProxyPass issue
Posted by Eric Covener <co...@gmail.com>.
On Sun, Oct 19, 2008 at 9:13 AM, Amir Porat <am...@gmail.com> wrote:
>
> Now I'm getting "permission denied" msg.
>
> Do I need to add this: ./configure --enable-proxy ??
Probably not. What does your error log say?
--
Eric Covener
covener@gmail.com
---------------------------------------------------------------------
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] Reverse proxy (cross domain) - ProxyPass issue
Posted by Amir Porat <am...@gmail.com>.
My xmlHTTPRequest is:
*oXmlHttpRequest.open("GET", "**
http://example.com/mirror/foo/RemoteServerTest*<http://example.com/mirror/foo/RemoteServerTest>
*", false);*
The config file code is:
*ProxyPass /mirror/foo/ http://server2.aaabbb.com/*
The expected URL should be:
*http://server2.aaabbb.com/RemoteServerTest*<http://server2.aaabbb.com/RemoteServerTest>
Now I'm getting "permission denied" msg.
Do I need to add this: *./configure --enable-proxy ??*
**
On Sun, Oct 19, 2008 at 2:49 PM, Eric Covener <co...@gmail.com> wrote:
> On Sun, Oct 19, 2008 at 5:42 AM, Amir Porat <am...@gmail.com> wrote:
> > Hello.
> >
> > I have HTML page from server1. this page should request (XMLHTTP) to
> server2
> > (not in the same domain) - cross domain issue here.
> > Trying to overcome this I tried to request HTML to server1:
> > oXmlHttpRequest.open("GET",
> > "http://server1.aabbcc.com/RemoteServerTest/RemoteServer.asp", false);
> >
> > and by reverse proxy to "redirect" the request:
> >
> > ProxyRequests Off
> >
> > ProxyPass aabbcc.com/ http://server2.xxyyzz.com/
>
> Neither argument looks correct. See the examples that use a path
> followed by a URL:
>
> http://httpd.apache.org/docs/2.2/mod/mod_proxy.html#proxypass
>
> --
> Eric Covener
> covener@gmail.com
>
> ---------------------------------------------------------------------
> 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
>
>
--
Regards...
Porat Amir
Re: [users@httpd] Reverse proxy (cross domain) - ProxyPass issue
Posted by Eric Covener <co...@gmail.com>.
On Sun, Oct 19, 2008 at 5:42 AM, Amir Porat <am...@gmail.com> wrote:
> Hello.
>
> I have HTML page from server1. this page should request (XMLHTTP) to server2
> (not in the same domain) - cross domain issue here.
> Trying to overcome this I tried to request HTML to server1:
> oXmlHttpRequest.open("GET",
> "http://server1.aabbcc.com/RemoteServerTest/RemoteServer.asp", false);
>
> and by reverse proxy to "redirect" the request:
>
> ProxyRequests Off
>
> ProxyPass aabbcc.com/ http://server2.xxyyzz.com/
Neither argument looks correct. See the examples that use a path
followed by a URL:
http://httpd.apache.org/docs/2.2/mod/mod_proxy.html#proxypass
--
Eric Covener
covener@gmail.com
---------------------------------------------------------------------
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