I have XAMPP setup with several virtual hosts, all of which work. These virtual hosts basically resolve external requests and do a ReverseProxy to various internal servers.
I now need to reverse proxy to an internal server running IIS. IIS is running with SSL. I've tried a couple of different setups with the virtual host. One setup ends up prompting me for the XAMPP User password. The other setup passes through to IIS, but returns a 404 error. I'm guessing because the certificate isn't being accepted somewhere?
VirtualHost setup that returns 404 error
- Code: Select all
<VirtualHost careers.domainname.org:80>
ServerAdmin xampp@domainname.org
# DocumentRoot /www/docs/dummy-host2.example.com
ServerName careers.domainname.org
ErrorLog logs/careers.domainame.org-error_log
CustomLog logs/careers.domainname.org-access_log common
# SSLRequireSSL
# ProxyRequests Off
# ProxyPass / http://10.1.0.10/
# ProxyPassReverse / http://10.1.0.10/
# Redirects to Exchange b/c HR IIS app is not secured. Remove below lines on$
ProxyRequests Off
AllowCONNECT 80 443 563
ProxyPass / http://192.0.0.13/
ProxyPassReverse / http://192.0.0.13/
# ProxyPassReverse https://192.0.0.13/ /
</VirtualHost>
VirtualHost setup that prompts for XAMPP user password | The only change was that AllowCONNECT was commented out
- Code: Select all
<VirtualHost careers.domainname.org:80>
ServerAdmin xampp@domainname.org
# DocumentRoot /www/docs/dummy-host2.example.com
ServerName careers.domainname.org
ErrorLog logs/careers.domainname.org-error_log
CustomLog logs/careers.domainname.org-access_log common
# SSLRequireSSL
# ProxyRequests Off
# ProxyPass / http://10.1.0.10/
# ProxyPassReverse / http://10.1.0.10/
# Redirects to Exchange b/c HR IIS app is not secured. Remove below lines on$
ProxyRequests Off
# AllowCONNECT 80 443 563
ProxyPass / http://192.0.0.13/
ProxyPassReverse / http://192.0.0.13/
# ProxyPassReverse https://192.0.0.13/ /
</VirtualHost>
Any help will be very much appreciated because I'm totally stumped.