Find the answer to your Linux question:
Results 1 to 2 of 2
Hi, I have an question on something that i have been trying to fix for quite some time now. At home I have a server for learning/ myself purpose. Where ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Apr 2013
    Posts
    1

    Apache and IIS Exchange 2010


    Hi,

    I have an question on something that i have been trying to fix for quite some time now. At home I have a server for learning/ myself purpose. Where I am running the following configuration:

    One Public IP

    Host:
    Server Windows 2008 R2 – AD, DNS, DHCP, Hyper-V

    Hyper-V:
    Server Windows 2008 R2 – Webserver , Exchange
    Ubuntu Linux 12.04 – Apache2 with virtual hosts


    All my 80 and 443 port request goes directly to my Ubuntu apache 2 service, at the moment I can access from within my network my exchange webserver but from the outside I get a apache default page. My question is how can I configure apache, that when a specific request like mail.contoso.com is requested it directs to my mail server.

    So lets say I got apache running on 192.168.1.2 and exchange mail server on 192.168.1.3.
    Mail.contoso.com --> 192.168.1.2 --> 192.168.1.3 (perfer to redirect this request automatic to https)
    contoso.com --> 192.168.1.2

  2. #2
    Trusted Penguin
    Join Date
    May 2011
    Posts
    4,307
    hello and welcome!

    have you tried a simple redirect rule in your virtual hosts config? e.g.:

    Code:
    <VirtualHost *:80>
      ServerName mail.contoso.com
      Redirect 301 / http://192.168.1.3
    </VirtualHost>
    note that you have to have the default vhosts container already defined somewhere above that.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •