#1  
Old 21st November 2005, 20:50
islander islander is offline
Junior Member
 
Join Date: Nov 2005
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default 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 https://mydomain.com/exchange
To access RWW i would type https://mydomain.com/remote

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

mail.mydomain.com and yoda.mydomain.com 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.
Reply With Quote
Sponsored Links
  #2  
Old 22nd November 2005, 16:41
themachine themachine is offline
Senior Member
 
Join Date: Oct 2005
Location: Texas, USA
Posts: 109
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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

http://www.howtoforge.com/forums/showthread.php?t=903
__________________
themachine
5dollarwhitebox.org
Reply With Quote
  #3  
Old 22nd November 2005, 21:11
islander islander is offline
Junior Member
 
Join Date: Nov 2005
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
 
Default

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>

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

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Server Setup Behind a Router/Firewall/Cable Modem kisong Installation/Configuration 2 1st August 2010 17:05
Problem with instalation indicator72 Installation/Configuration 38 16th November 2005 11:39
POP3 SMTP FTP problem arsu Installation/Configuration 1 11th November 2005 09:32
ISPConfig and separate machines pfm.smits Installation/Configuration 1 11th October 2005 15:09
Server can't "see" the internet Luciano Installation/Configuration 8 22nd August 2005 23:22


All times are GMT +2. The time now is 01:57.


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