I have a Small Business Server install that I would like to have both IIS and Apache (WAMP) running. I need IIS due to SBS services, Sharepoint, and one existing ASP.NET website, otherwise I would ditch IIS. Basically, I would like to have both sharing the same port and IP so both can be seen from the outside world. From my research, mod_rewrite is a good option. Right now, the IP of the server is 192.168.2.4 ,IIS is 192.168.2.4 and Apache is 192.168.2.8. So I thought I could put Apache on 192.168.2.4:80 and then change IIS port 80 to 81 and use mod_rewrite to connect to the IIS website. Can someone please point me in the right direction. Can all of this be done in the VirtualHost section of the Apache httpd.conf file?
I currently have uncommented:
LoadModule proxy_module modules/mod_proxy.so
LoadModule proxy_http_module modules/mod_proxy_http.so
LoadModule rewrite_module modules/mod_rewrite.so
and this for the virtual host in the httpd.conf file:
<VirtualHost 192.168.2.8:80>
ServerName www.domain.biz
RewriteEngine On
ProxyVia Block
ProxyPreserveHost On
RewriteRule ^/(.*)$ http://www.domain.biz:81/$1 [P,L]
RewriteCond C:/Inetpub/websites/%{REQUEST_FILENAME} !-f
RewriteRule ^/(.*)$ http://localhost:3001/$1 [P,L]
</VirtualHost>
with 192.168.2.8 being open to the outside world all other Apache websites function fine. And IIS website is listening on port 81 and IIS website works from outside world if you put :81 on the end of it.
Thank you for any and all help.