Apache reverse proxy redirect/forward http and ftp requests

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

 



Hello.

So, I have a webserver which is my reverse proxy, and the I have another webserver which is the actual server where the web content is located, let's call it server A (reverse proxy) and server B (the other).

I have this website on my dns (windows AD) : yadda.domain
What I want is: if the user puts in the browser http://yadda.domain the user is redirected to the Server B, and thus sees the website If the user puts ftp://yadda.domain, the user is redirected to the same Server B, but through FTP protocol.

My question is, how can I acomplish this in apache?

I know I need mod_proxy but I don't understand how I can make the redirect in the <VirtualHost ServerA>
???
???
???
</VirtualHost>

I want something like (though I doubt it is possible):
IF http THEN
redirect to http://serverB-yadda.domain
ELSE IF ftp THEN
redirect to ftp://serverB-yadda.domain
END IF;

Thanks.

Regards,
Vilhena

--
Ricardo Vilhena



---------------------------------------------------------------------
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