You may need apache to take control because of apache redirection functions. The main idea is to configure apache, use the apache redirection functions (vhost, if you prefer to call it) to forward special requests to your IIS server.
Change IIS by listening on port 8080 (and, for example, set the domain to your domain, for example domain1.com). Run your apache to listen on 80.
Include the module below in the apache configuration file (http.conf):
LoadModule proxy_module modules/mod_proxy.so
LoadModule proxy_connect_module modules/mod_proxy_connect.so
LoadModule proxy_http_module modules/mod_proxy_http.so
LoadModule proxy_ftp_module modules/mod_proxy_ftp.so
And Include:
Include conf/extra/httpd-vhosts.conf
3. The next step is to configure the virtual host. Edit the configuration file conf\ extra\httpd-vhosts.conf
<VirtualHost *:80> DocumentRoot "x:\The\Dir\to\Your\Php\Site" ServerName domain2.com.br ErrorLog "logs/domain2-error.log" CustomLog "logs/domain2-access.log" common </VirtualHost>
And the installation on your domain2.com.br will be completed. Restart your Apache server, go to your site by domain name, and your php site should work.
If the steps work fine, this will be the last step.
<VirtualHost *:80> ServerName your.net.site.domain.com ProxyPreserveHost On ProxyPass "/" "http://127.0.0.1:8080/" ProxyPassReverse "/" "http://127.0.0.1:8080/" ErrorLog "logs/domain1-error.log" CustomLog "logs/domain1-access.log" common </VirtualHost>
And now it should work as you expect.
source share