pbcaer

Q: How to host my website(s) on a Mac Mini with OS X Server ?

It's been 2 weeks and getting disappointed. I tought OS X Server would be the easiest way to host a website from home, but now I see that's not true.

 

Got a Mac Mini and want to use it as a dedicated server, for my home network and for my websites (and iOS apps, databases etc.).

 

Registered a temporary domain, replaced my dynamic ip with a static one, bought a SSL, and purchased OS X Server for Mavericks, right just one month after purchasing for Server 2.2 (that's not fair I think, another story.).

 

I went to my domain registrars control panel and redirected the A host record to my brand new static ip, and edited the nsX.domain.com / nsY.domain.com records.

 

Then on the OS X Server, I turned the website option on, and added the new domain there. (both with port 80 and port 443 for SSL).

 

I don't know what's wrong but the website doesnot run.

 

Another thing, it's really hard to find where the OS X Server stores my website files, hard to locate it. By default it seems like generates a new folder with domain name, but you can't locate it.

 

Need help.

Mac mini, OS X Mavericks (10.9), OS X Server

Posted on Nov 16, 2013 5:31 PM

Close

Q: How to host my website(s) on a Mac Mini with OS X Server ?

  • All replies
  • Helpful answers

first Previous Page 3 of 3
  • by MrHoffman,

    MrHoffman MrHoffman Dec 8, 2013 6:28 PM in response to pbcaer
    Level 6 (15,637 points)
    Mac OS X
    Dec 8, 2013 6:28 PM in response to pbcaer

    pbcaer wrote:

     

    So I don't need to add my static IP there. People enters my domain name and they are redirected to my router, and the router translates the domain name they entered to my local IP,...

     

    Routers don't know from domains.  Domains are DNS.  Routers care about IP addresses.

     

    and finds where the website is,

     

    The router doesn't know where the web site is.  It knows how to get from one IP address to another.

     

     

    and sends them what they requested.

     

    The IP router gets the packets to the web server, and back again.  The web client then sends the target host over the connection, to be received and processed by the web server.  As far as IP routers are concerned, this transfer of the web site name is just data payload in the packets.  The routers neither know nor care about the contents of the packets.  The routers look at IP addresses only.

     

     

    Apple's tutorial said there should be static IP, and that got me confused.

    I haven't looked at the Apple tutorial, so I don't know what they're referring to.  For a typical web site, there would be a static IP address in the public IP address space, and a second static IP address at the web server host, and whatever firewall-NAT-router-gateway device in use will need to map packets arriving at the public address to IP packets forwarded to the internal private static IP address, and also smart enough to map returning packets from the web server back to the firewall-NAT-router-gateway device and from there along to the remote web browser.

     

    About NAT, I can access my AirPort Extreme on Server app, and made webservices available on it. So 80 and 443 ports are now available. But why does my website not on ?

     

    I don't use Server.app for that.  I manually configure the settings.  Check AirPort Utility and confirm the settings are as expected; that packets arriving at the AirPort Extreme are correctly configured for NAT, and being sent to the target web server.   Also check that local network traffic is correctly resolving the host name and the IP address — if DNS is incorrect, then local traffic will probably fail to find the web server.  Then confirm that the web site is configured in Server.app.  Then check the web server logs, and see if there are packets arriving and some problem, or if the packets are not reaching the host.  Further IP testing is usually with the command line ping tool; that'll indicate whether connections by IP address and DNS name are both working.

     

    registered a new host, server.mydomain.com. My website will be mydomain.com. Whenever I go to server.mydomain.com, it shows the sample html page which is not in server's website folder, but in mydomain.com folder. Should I create a Server folder inside mydomain.com folder ? Whenever I try to go to mydomain.com it says the server cannot be found. It opens the subdomain, but not the domain itself. I know that you've warned me about registering a seperate domain for server, but for now I wanted to try this.

    There's no difference from IP and DNS, whether it's the first or the second host.   I'm apparently not effectively communicating the details and the requirements here (and that's entirely on me), so I'm going to bow out of this discussion and allow somebody else to provide assistance.  I'll probably just end up confusing things further, and I'd rather not have that happen.  

     

    That written, please fix your local DNS services configuration.  Until local DNS servers are correct, enabling and configuring further services is something I'd consider premature, and can end up being a waste of time and effort. As services are activated, these DNS configuration issues can enter into the server-specific configuration, and these inital DNS service errors can tend to be pernicious.   Restarting from scratch can be easier than clearing these, unfortunately.

  • by pbcaer,

    pbcaer pbcaer Jan 28, 2014 4:31 AM in response to MrHoffman
    Level 1 (0 points)
    Jan 28, 2014 4:31 AM in response to MrHoffman

    I have a registered domain, a mac mini server and Server Mavercisk app.. Don't know what's wrong, but can't get the website run..

     

    Need help and ready to pay.

     

    Thanks.

  • by joshuafromwaterford,

    joshuafromwaterford joshuafromwaterford May 6, 2014 6:14 PM in response to nick101
    Level 1 (25 points)
    May 6, 2014 6:14 PM in response to nick101

    Is the external DNS setup for connecting the URL with the IP address where the website is located, or is it just for translating URLs to IP addresses for the Mac Mini, which is already set up at the router?

  • by MrHoffman,

    MrHoffman MrHoffman May 7, 2014 6:35 AM in response to pbcaer
    Level 6 (15,637 points)
    Mac OS X
    May 7, 2014 6:35 AM in response to pbcaer


    joshuafromwaterford wrote:

    Is the external DNS setup for connecting the URL with the IP address where the website is located, or is it just for translating URLs to IP addresses for the Mac Mini, which is already set up at the router?

     

    Not sure if you're joining this thread and asking a question of the OP, or if you're asking a question related to the thread...  If it's the latter.... The external DNS translation is only for getting to the public static IP address for the gateway-router-firewall box.

     

    NAT and port-forwarding at the gateway-router-firewall box gets the incoming connection from there to the internal-addressed server.

     

    Low-end routers don't usually provide DNS services, they have DNS forwarders.  Some mid- and upper-end DNS servers can and variously do have embedded DNS servers.

     

    OS X Server itself needs a separate local network translation for its own operations; this is what the changeip command verifies.

     

    External public DNS providers can provide name to IP address translations — what I usually refer to as forward translations — but generally do not provide IP address to name translations — reverse translations — for private IP address spaces.

     

    nb: I replied to the wrong post here..

first Previous Page 3 of 3