Re: proxying an external server into a website (subdirectory)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Oct 8, 2008 at 12:19 AM, Michelle Konzack
<linux4michelle@xxxxxxxxxxxxxxx> wrote:
> Hello,
>
> I have a devel site and I like to use a translation too called "pootle".
> unfortunately it runs as its own webserver on another port.
>
> I like to know, whether it is possibel to make a proxy or  rewrite  rule
> which let "pootle" run in a subdirectory
>
>    http://localhost:8080/
>
>  -> http://devel.debian.tamay-dogan.net/pootle/
>
> of my website?

This is possible, this is what is called a "reverse proxy" and it
allows one server to appear in the webspace of another.

In your case you could add the following to the webserver config of
devel.debian.tamay-dogan.net

ProxyPass  /pootle/ http://localhost:8080/
ProxyPassReverse /pootle/ http://localhost:8080/

The ProxyPassRevers statement is only needed if pootle generates
redirects. If pootle also generates pages with absolute links you
might have to mangle the html it produces, using mod_proxy_html, but
this is fairly advanced.

More info is available here:

http://www.apachetutor.org/admin/reverseproxies

Krist

-- 
krist.vanbesien@xxxxxxxxx
krist@xxxxxxxxxxxxx
Bremgarten b. Bern, Switzerland
--
A: It reverses the normal flow of conversation.
Q: What's wrong with top-posting?
A: Top-posting.
Q: What's the biggest scourge on plain text email discussions?

---------------------------------------------------------------------
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@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx


[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux