On Sun, Feb 7, 2010 at 9:54 PM, Matus UHLAR - fantomas
<uh...@fantomas.sk> wrote:
> On 07.02.10 01:09, fulan Peng wrote:
>> I am trying to set up a reverse proxy for facebook by using Apache
>> mod_proxy and mod_proxy_html.
>
> reverse proxy for facebook? Are you running facebook servers so you can run
> reverse proxy for it?

I am not running facebook server. I just set up a reverse proxy server for it.

>
>> Before, it always complain missing a file called ua_callback.php
>> I wget it from http://m.facebook.com. It looks like a html file
>> instead of a php file.
>
> Of course, the PHP is (usually) parsed on server and (usually) generates
> different content than PHP.

I cannot not understand this. I have set up reverse proxy for many web
sites which have php files. The browser ask for the php file, the
proxy should ask for the  backend server. The proxy get the results
from the backend server then deliver the results to the browser. Now,
error message on the proxy says the proxy is missing a php file,
something is wrong.

[Sun Feb 07 08:36:58 2010] [error] [client {the browser}] File does
not exist: /usr/local/www/apache22/data/ajax, referer:
https://{myip}:8381/15/login.php?login_attempt=1

So I wget http://m.facebook.com/ua_callback.php, I got a
ua_callback.php file which is the results to run the ua_callback.php.

I made a directory, /usr/local/www/apache22/data/ajax and put the
so-called ua_callback.php file in it to trick the browser.

I won't work.

This is my current config with cookie path and domain rewritten.
Still, it won't work.
....
ProxyPass /13/ http://www.facebook.com/
ProxyPassReverse /13/ http://www.facebook.com/
        ProxyPassReverseCookiePath      /  /13
        ProxyPassReverseCookieDomain      www.facebook.com  <myip>
<Location /13/>
        RequestHeader unset Accept-Encoding
        ProxyHTMLURLMap http://www.facebook.com
https://${envirnvariableformyip}:8381/13   V
        ProxyHTMLURLMap https://login.facebook.com
https://${envirnvariableformyip}:8381/15   V
        ProxyHTMLURLMap / /13/
</Location>
ProxyPass /15/ https://login.facebook.com/
ProxyPassReverse /15/ https://login.facebook.com/
        ProxyPassReverseCookiePath      /  /15
        ProxyPassReverseCookieDomain     login.facebook.com  <myip>
<Location /15/>
....
>
>> Any body had experience to make a reverse proxy for facebook, please
>> give me a hint!
>
> What is the point for running special proxcy for facebook?

Reverse proxy for facebook can help those people behind a firewall to
access facebook. There are many reverse proxy already made for
facebook. I dont know how they are made.
facebook.com worth 5 billion dollars. If you can make a proxy for it,
sure it is useful.

>
>
> Matus  - fantomas, uh...@fantomas.sk ; http://www.fantomas.sk/
> Warning: I wish NOT to receive e-mail advertising to this address.
> Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu.
> Chernobyl was an Windows 95 beta test site.
>
> ---------------------------------------------------------------------
> 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-unsubscr...@httpd.apache.org
>   "   from the digest: users-digest-unsubscr...@httpd.apache.org
> For additional commands, e-mail: users-h...@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-unsubscr...@httpd.apache.org
   "   from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org

Reply via email to