Msg#: 4671941 posted 7:19 pm on May 17, 2014 (gmt 0)
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.
Msg#: 4671941 posted 8:57 am on May 18, 2014 (gmt 0)
welcome to WebmasterWorld, LukeP!
configure the plex.example.nl VirtualHost to Listen on port 32400 and set the DocumentRoot for that hostname to the /web/ subdirectory. then you need to configure your router so it forwards to port 32400. also specify index.html in the DirectoryIndex Directive so you don't have to include that in the url.