Help with Apache config

For system help, all hardware / software topics NOTE: use Coders Corner for all coders topics.

Moderators: Krom, Grendel

Locked
User avatar
Verran
DBB Captain
DBB Captain
Posts: 589
Joined: Thu Nov 05, 1998 12:01 pm
Location: Colorado
Contact:

Help with Apache config

Post by Verran »

Hey all,

I've setup Apache to use virtual hosting, as I'm running multiple sites:

1. whatever.com -> /my/path/whatever.com
2. whatever2.com -> /my/path/whatever2.com
3. whatever3.com -> /my/path/whatever3.com

Now I need to point a virtual host from Apache to another server on my LAN, which is running IIS. I basically need to do this:

whatever4.com -> 192.168.0.3

However, it can't redirect (duh, it's an internal IP) it just needs to alias to my internal windows server. I can't find any config options in Apache to do this.

Any thoughts?

Thanks in advance!
User avatar
Verran
DBB Captain
DBB Captain
Posts: 589
Joined: Thu Nov 05, 1998 12:01 pm
Location: Colorado
Contact:

Post by Verran »

Oh dear, slap me sideways. Feel free to delete this post.

I had to add mod_proxy, then simply added:
<BLOCKQUOTE><font size="1" face="Arial">code:</font><HR><pre>
ProxyPass / http://192.168.0.3/
ProxyPassReverse / http://192.168.0.3/
</pre><HR></BLOCKQUOTE>
to the virtual host entry. Works like a charm!
Locked