PDA

View Full Version : Apache 2 subdomain help.


Somken
1st August 2007, 13:48
I'm running into a roadblock. I'm trying to setup a sub domain on my apache2 server. The server is on Linux if that helps. I want the subdomain to point at a different computer on my network. It's running IIS 6.0. Any idea how to config the apache 2 server to point at the IIS server when I goto sub.domain.com.

The apache server has a public port of 80 and a private IP of 192.168.1.1
The IIS server has a public port of 81 and a private IP of 192.168.1.5.

Can you also give me a sample config of the v host. Thanks!

falko
2nd August 2007, 18:38
The easiest way would be to let the A record for sub.domain.com point directly to your IIS server.
A second solution would be to use mod_rewrite in Apache: http://httpd.apache.org/docs/2.0/misc/rewriteguide.html