This may be an obvious question, but for the life of me I have not been able to figure this out. I run a service that operates on a specific port, lets call it port X. When I was running my linux server, I had a .conf file named 1001-(servicename).conf to configure a virtual host that would redirect a specific subdomain to this port, creating a friendly URL instead of having to type www.host.com:PortX, which contained:
<VirtualHost *:80>
ServerName subdomain.domain.com
<Proxy *>
Order deny,allow
Allow from all
</Proxy>
ProxyPass / http://10.0.1.100:PortX/
ProxyPassReverse / http://10.0.1.100:PortX/
</VirtualHost>
I don't know why, but for the life of me I have not been able to get this to work on my HTTP server on OSX. Any advice?
<VirtualHost *:80>
ServerName subdomain.domain.com
<Proxy *>
Order deny,allow
Allow from all
</Proxy>
ProxyPass / http://10.0.1.100:PortX/
ProxyPassReverse / http://10.0.1.100:PortX/
</VirtualHost>
I don't know why, but for the life of me I have not been able to get this to work on my HTTP server on OSX. Any advice?