Welcome to WebmasterWorld Guest from

Forum Moderators: Ocean10000 & incrediBILL & phranque

Message Too Old, No Replies

Server not redirecting port 80 to address

7:19 pm on May 17, 2014 (gmt 0)

New User

joined:May 17, 2014
votes: 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.

<VirtualHost plex.mywebsite.nl:80>
ServerName plex.mywebsite.nl

Redirect permanent / http://mywebsite.nl:32400/



<VirtualHost *:80>
ServerName plex.example.com

<Proxy *>
Order deny,allow
Allow from all

ProxyRequests Off
ProxyPreserveHost On
ProxyPass /
ProxyPassReverse /
8:57 am on May 18, 2014 (gmt 0)


WebmasterWorld Administrator phranque is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:Aug 10, 2004
votes: 53

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.

this should give you some ideas about how to configure that - VirtualHost Examples - Apache HTTP Server:
http://httpd.apache.org/docs/current/vhosts/examples.html [httpd.apache.org]

Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members