homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Home / Forums Index / Code, Content, and Presentation / Apache Web Server
Forum Library, Charter, Moderators: Ocean10000 & incrediBILL & phranque

Apache Web Server Forum

Server not redirecting port 80 to address

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.

<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 /



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

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.

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]

Global Options:
 top home search open messages active posts  

Home / Forums Index / Code, Content, and Presentation / Apache Web Server
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved