May be interesting to know, if you have also set up the
crossdomain.xml file properly according to your setup?
I found out that etherpad sometimes will do some strange redirects if
the hostname will be parsed in some manner.. In our case etherpad had
problems, parsing hostnames with 4 slots (
http://one.two.three.four)
and always redirected to
http://three.four
Your problem may be related. Maybe your hostname (etherpad) matches
one of the hostname rules since
etherpad.com is written inside the
allow superdomains and crossdomain.xml and therefore redirects..
It doesn't seem to be a mis-configuration in Apache, though.
// One new thought (I just leave the upper part for completeness):
Since, "ProxyPreserveHost on" seems to work:
I think "etherpad" is not in your superdomains, nor
crossdomains.xml ?? If it redirects to localhost, it does this,
because the hostname it has been called with, is not in the list of
allowed domains..
Best,
Sebastian
On 26 Jun., 23:06, sergey arlashin <
s.arlas...@gmail.com> wrote:
> Hi!
> My Etherpad is up and running on localhost:9000 on my server. So I'm
> trying to get it to work with Apache reverse proxy to be able to
> access it from the Internet.
> I added the following lines to the httpd config:
>
> <VirtualHost *:80>
> ServerName etherpad
> ErrorLog /var/log/httpd-etherpad-error_log
> CustomLog /var/log/httpd-etherpad-access_log common
> ProxyPass /
http://localhost:9000/
> ProxyPassReverse /
http://localhost:9000/
> ProxyPreserveHost on
> <Proxy *>
> Options FollowSymLinks MultiViews
> AllowOverride All
> Order allow,deny
> allow from all
> </Proxy>
> </VirtualHost>
>
> I added host etherpad to my hosts file as well.
>
> And when I try to get the urlhttp://etherpad/ in my browser it
> redirects me to
etherpad.com
> In the etherpad.log I see
>
> "request: 2010-06-26 21:00:44.159+0200 127.0.0.1
> etherpad get / http 36f2fe262977b53d
> 302 9e2a2f95a6e9463a Mozilla/5.0 (Windows; U; Wiows NT 6.1;
> ru; rv:1.9.2.4) Gecko/20100611 Firefox/3.6.4"
>
> When I disable "ProxyPreserveHost on" line in httpd.conf I get html
> which contains:
>
> EtherPad: Open-Sourced!
> Create new pad
>
> But the "Create new pad" URL leads tohttp://localhost:9000/ep/pad/newpad