HI. I have the Mavericks OS X server and I have set the hostname of the server to example.domain.com
On the web I have the same domain (owned) and have created the Cname record example.domain.com to point to a dynamic DNS provider which then maps to my broadband allocated IP - my router than passes this port 80 traffic (via port forwarding) to my mac server on the internal address.
All of the above works and when I browse example.domain.com it goes to my server but it loads the page saying "Websites are turned off, you can turn this on using the server application". When I turn on the website service it loads the Welcome to mac os server holding page with the wiki/xcode options etc.
I want the server to load localhost:32400/web/index.html which is a plex media server address.
I have tried various edits in the etc/apache/httpd.conf file but I cant seem to get it to go anywhere apart from the pages I mentioned before (wiki/excode if web is enabled or error if not).
Any idea what I need to do to resolve my example.domain.com to localhost:32400/web/index.html?
The URL of the web resolves all the way to my mac mini, I need to just redirect the landing page to the localhost:32400/web/index.html address.
Anytime I use examples like below in the httpd.conf file nothing works and there is no redirect.
<VirtualHost plex.mywebsite.nl:80>
ServerName plex.mywebsite.nl
Redirect permanent / http://mywebsite.nl:32400/
</VirtualHost>
or
<VirtualHost *:80>
ServerName plex.example.com
<Proxy *>
Order deny,allow
Allow from all
</Proxy>
ProxyRequests Off
ProxyPreserveHost On
ProxyPass / http://127.0.0.1:32400/
ProxyPassReverse / http://127.0.0.1:32400/
</VirtualHost>