HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (
-   Server Operation (
-   -   Redirect to other server. (

islander 21st November 2005 21:50

Redirect to other server.
I have set up debian-sarge with Apache2 to use as webserver in my DMZ. It's behind a router/firwall and only port 80 is pointing to it. I also have a Windows server doing webmail and RWW on port 443.

To access webmail i would type
To access RWW i would type

Everything works fine, but as one is lazy i would like to continue using and for RWW

instead today this will take me to my homepage ofcourse.

I have this setup in the DNS servers so that points it to the IP of my router.

I looked in the Apache docs there were som some redirect commands and there was Name-based Virtual Hosts. But I'am not sure how to this. :confused:

themachine 22nd November 2005 17:41

vhosts in Debian is simple... Please checkout a previous post:

islander 22nd November 2005 22:11

Ofcourse it is once you know how :)

About an hour of reading and testing solved the problem.

<VirtualHost *>
ServerName mail.mydomain
redirect / https://mydomain/exchange

<VirtualHost *>
ServerName yoda.mydomain
redirect / https://mydomain/remote

All times are GMT +2. The time now is 19:47.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.