Apple Event: May 7th at 7 am PT

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Mavericks as a Intranet Server... without Server.app?

I am starting a new posting as it will provide the opportunity to give credit should someone be helpful or solve the issue... it is an extention of a previous thread which was most helpful in getting Apache, mySql and php up and functioning on my MBP Mavericks machine. My first shot was to post this on the Mavericks forum but that yeilded squat. You guys are so much more engaged!


Browsing localhost, localhost/~myname and a couple of sites I set up using vhosts in ~myname/Sites from the laptop is working as it should. However, I am unable to browse to these from other machines on my LAN using http://myComputerName or http://myComputerName/~myname. I spent a good long time before noticing something odd about the IPv4 Address for my laptop.... when I tried switching it to a static IP I got the message that the IP was already in use.


At this point I need to describe my setup... a MBP with Thunderbolt connection to an Apple Cinema display. The ACD is connected via ethernet and the laptop was connected to the LAN via the Thunderbolt. The network router is (unfortunately) an HGV-3800 whose radio is turned off. Wireless in the household is accomplished by a Time Capsule in bridge mode. Most of the time I use the ethernet connection but can use both as needed.


A quick browse of devices on the router revealed that the IP being used by my MBP/ACD had an unknown device name while all the other devices in the house had their names... odd. So I fired up the wireless on the MBP and took another look at the device list... the router listed this new connection with my correct device name. Even better, when I browsed to http://myComputerName and http://myComputerName/~myname from another computer on the LAN the It Works! and My Site Works! came up perfectly. However, the sites that i set up in vhosts will not come up on the other devices.


My interpretation of what is happening with the ethernet connection to the ACD is that this connection is not identified as being to my laptop... it is to the ACD and somehow the laptop is borrowing it... surfing works and I can connect for file sharing to other computers on the LAN (though it is a bit clunky)... the borrowed connection is not up to the task of hosting on the LAN. My question about this is whether there is a setting I can make which will correct this behaviour and allow the Thunderbolt connection to function as if the ethernet was directly connected to the laptop?


The other more important question is what is needed to make the sites I have in myComputer/~myName/Sites directory browseable from other devices on the LAN... these same sites that are coming up perfectly when I browse from the local machine?


I ran across information on the HoffmanLabs site that seems to be saying that it is not possible to do what I am trying to do with the non-server version of Mavericks. Could it be that if you want to host sites on an intranet, that in order to get the DNS functioning properly, that it is necessary to install the Server.app?

MacBook Pro, OS X Mavericks (10.9.1), Win 7 running on BootCamp and vmFus

Posted on Jan 10, 2014 8:12 AM

Reply
18 replies

Jan 10, 2014 9:12 AM in response to pamela.parks

You don't need Server. Server would likely only make your life worse. It has some unique services and if you need those, it is the best tool for the job. Otherwise, it will just complicate things.


Your problem is with domain names. On a local network, OS X can create its own domain names using Bonjour. These names are in the ".local" domain. If you just define all of your names to be "myComputerName.local" then everything will work magically. You can even install Bonjour on Windows or Linux machines should you need to access your services from those.


That is, by far, the best solution. Use those names in your client access and in your vhosts. If you want to use something else, you will likely have to add a custom entry in /etc/hosts on each machine (both clients and servers) on your local network. Complicating this will be DHCP which assigns dynamic IP addresses. A real name server could sort this all out but now you are into OS X Server territory and over my head. Usually, once you get to this level, you just ask your corporate IT department to handle it and, presto!, the problem will be solved in 2-3 months.

Jan 10, 2014 10:52 AM in response to etresoft

etresoft,

I gave this a try but perhaps am still missing something.


Here is what I tried:

On my host computer I changed the /etc/hosts entries from:

127.0.0.1 mySite1.com

127.0.0.1 www.mySite1.com

to:

127.0.0.1 mySite1.local

127.0.0.1 www.mySite1.local


then I changed the /etc/apache2/extra/httpd-vhosts.conf entries to

<VirtualHost *:80>

ServerName mysite1.local

ServerAlias www.mysite1.local

DocumentRoot "/Users/myshortname/Sites/mysite1"

ErrorLog "/private/var/log/apache2/mysite1.local-error_log"

CustomLog "/private/var/log/apache2/mysite1.local-access_log" common

ServerAdmin me@mac.com

<Directory "/Users/myshortname/Sites/mysite1”>

Options Indexes FollowSymLinks

AllowOverride All

Order allow,deny

Allow from all

</Directory>

</VirtualHost>


Then I restarted apache and tested.

The site came up fine on the local machine when I type http://mysite1.local When I try this from another machine it will not bring up the page... http://mycomputer/~myname/mysite1.local also does not work.

Jan 10, 2014 11:59 AM in response to pamela.parks

The problem is you are already jumping ahead to the "something else" part. If you want to use a ".local" domain, keep that out of /etc/hosts. That is a different name resolution system. Having those entries in /etc/hosts will make everyone confused.


Furthermore, if you are running on a local network, 127.0.0.1 is not valid. You have to use the IP address for your local network. I have no idea what that might be. Likely candidates will be 192.168.1.3, 10.10.10.12, among several hundred other possibilities. In a normal setup, your IP address will be dynamically determined. There is no way to tell what it might be. If you give your computer the name "mysite1" in System Preferences > Sharing, then it will show up to any other Bonjour-enabled devices as "mysite1.local".


You cannot dig into Apache vhosts until the DNS layer is running correctly.

Jan 10, 2014 2:56 PM in response to etresoft

I removed the 127.0.0.1 references from the hosts file and started playing around with the browsing address.

What does not work is mysite.local from other machines. What does work is ServerName.local/~myshortname/mySite where mySite is the directory that has the pages within ~myshortname/Sites directory. I am guessing that I still have something wrong in my vhosts.conf file... or the vhosts.conf is not getting used at all.


<VirtualHost *:80>

ServerName mysite1.local

ServerAlias www.mysite1.local

DocumentRoot "/Users/myshortname/Sites/mysite1"

ErrorLog "/private/var/log/apache2/mysite1.local-error_log"

CustomLog "/private/var/log/apache2/mysite1.local-access_log" common

ServerAdmin me@mac.com

<Directory "/Users/myshortname/Sites/mysite1”>

Options Indexes FollowSymLinks

AllowOverride All

Order allow,deny

Allow from all

</Directory>

</VirtualHost>

If there is some good reading material somewhere, I would like to get a hold of it. I am happy things are working but would like to understand it a bit better.

Jan 10, 2014 3:27 PM in response to pamela.parks

It looks as though AT & T are doing their best to limit their customers' options.


I am in the UK with my original telephone line. I am not forced to use my ISPs modem/router so I use a secondhand one I bought for £20. This has wireless, 4 wired ethernet ports, firewall and many software configurable options. I recently turned off wired DHCP and use fixed IPs internally which are slightly more secure and easy to use with my servers.


I see that others have given up trying to do much with, or behind, the very limited HGV-3800. What are your prospects of changing to a decent router?

Jan 10, 2014 4:04 PM in response to pamela.parks

You are still going too far. When you are speaking of a name that "works" or not, all you need is ping. If you can ping "ServerName.local" from a remote machine, then it works. If you attempt to ping "mysite.local", it should not work. You would have to have a machine with its Bonjour name setup as "mysite". Which one do you want to use?


The standard Bonjour setup only allows for one server name. You can have more server names depending on how much configuration you want to do. But do you need multiple server names? And do you need multiple server names to be accessible from anywhere inside your local network?

Jan 11, 2014 6:31 AM in response to Neville Hillyer

The Hgv 3800 router is my only choice unless I jump to Comcast. Twice in the last 4 years I tried the router behind router. The first time it worked and I used the time capsule for dhcp. The second time was caused by a rough upgrade to the home security system. It was necessary to take everything back to att configuration. Afterwards I spent several days trying to get back. Uncle! So one of these days after the current contract expires I will head over to Comcast and put the time capsule in the drivers seat.

Jan 11, 2014 7:53 AM in response to pamela.parks

Sorry to hear choice is so limited in parts of the US. I don't recall my daughter in Washington being so restricted.


In the UK we have many ISPs competing for our custom: http://www.thinkbroadband.com/isps.html


For about £20 a month I can cover the cost of:


  • Unlimited data via 16 M bits per second download speed - upload about 1 M bit per second
  • Line rental
  • All UK phone calls 24/7
  • All US and other popular destinations phone calls 24/7
  • 2 domain names


To keep within this total cost we have to accept a few limitation:


  • Select cheapest main supplier annually - TalkTalk this year
  • Route calls via cheapest supplier - dial thro' service during office hours and abroad - 18185 & sister company
  • Use ddns (historic free zoneedit) rather than fixed IP for public web server - fixed IPs would double the cost
  • Use alternative supplier for domain names and email - Gandi
  • Maintain my own web server at home - ISPs only provide a page or two without charge


The above does not cover the cost of:


  • Our recently acquired mobile wi-fi - at least £10 a month extra
  • Mobile (cell) phones - at least £10 a month extra each for low use pay as you go


Not easy yet to get a cost effective package which included the mobile costs but this may change.

Apr 5, 2014 1:30 PM in response to pamela.parks

I'm happy to see these posts, and especially to etresoft's global ISP Domain Assignment 3 month corporate resolution time-frame.


We need these issues resolved now in the states for all parties concerned (including me!).


Given AT&T DHCP routers for the current example, I have cleared all issues regarding DHCP service, domain name re-assignment for customers, and minimum customer service requirements. AT&T has addressed all the issues and is ready for customer access to AT&T networks. (By access, I mean sharing files and posting web pages from home).


I then encountered an issue with Apple's push notifications service, where I was being notified three times per minute that I did not have a valid SSL certificate. Here's the news: I DON'T WANT ONE. IN conjunction with that, I suspected, my web server was being shut down and re-assigned by configd from the ATT assigned domain name to the local domain name.


After calling Apple and escalating the issue, I received a return call explaining that there was nothing Apple could do and that the issue could not be escalated further for resolution. OK, so I found my own solution: Reduce the 'local' name in sharing preferences to nothing, forcing Mavericks to wait for the ATT assigned domain name (I was under the false understanding from internet google searches that the issue was due to ATT taking too long to serve the domain name to Mavericks). That solution worked fine for 6 days.



Just now, the server shut down again, reset by Apple. Only this time, the local domain name was back as the default. And, outrageously, when I went back in to remove the local name, I could not. A blank entry was no longer allowed. Further, I could not enter my machine IP address because dots were no longer accepted in that field.


So I'm now waiting for a response from apple to explain 1)Who is sending so many notifications throught the push notifications service regarding SSL certificates, and why are they allowing it and 2)Who changed the filtering for sharing preferences fields and how and why. Plus, 3)Are they going to give me any guidance on how THEY think I should be posting files and html docs to the internet, or are they now in the business of preventing that sort of activity?


I'm sure there's a simple solution there, and many people working to get our system up and running in an American fashion, but the confusion (along with the ignorance) is a little frustrating at the moment. Sorting legitimate government security concerns from legitimate corporate security concerns from legitimate citizen requirements, from all the other stuff out there is a bit testing.



Maybe AT&T DHCP routers and security system (reviewing traffic through the assigned domain name) are in conflict with Apple's pre-assigned IP address with SSL traffic monitoring security system? And apparently then, Apple has no way to trust the customer to reconfigure their computer for whichever type of network they choose to use? And will even go to lengths to prevent customers from logging-on to an ATT network for services? I doubt that is the reason or explanation, but that's where I am now, and waiting for Apple to call back with an explanation, which apparently is requiring more time than a day on the part of Apple.

Apr 5, 2014 1:40 PM in response to mark133

I'm posting this as a matter of record, and I think a solution is on its way. I wish I had more information to go on, but alas, citizens are not privy to much of it and we must make our best guesses to resolve our part of the deals going on out there.


One thing is clear, Apple cannot require SSL certification or special sotware in order for a cutomer to use their computer as a server.

Apr 5, 2014 3:12 PM in response to mark133

Actually, I wasn't addressing you, Neville, but if you want to know, I'm clearing OUR system for citizens to use the internet. Apparently there is some conflict with that from vaarious interests present in the USA.

We seem to have multiple intelligence and security interests trying to gain a monopoly on the information security system. Here's the deal: we do not need a single information monitoring hub. We can have multiple private traffic monitoring systems that are all subject to inspection by federal permit or local jurisidictions for local traffic and local addresses.


By extension, we can and should have multiple verification services. By the way, I just got off the phone with Apple and they assured me that a customer is not expected to have to purchase special software or to purchase an SSL certificate in order to use their computer as a web server, and that apple computers should be perfectly compatible with ATT DHCP routers. ATT assured me that Macs used as servers should be perfectly compatible with all ATT ISP services. Apple will call me next week regarding the reason for so many SSL verification notifications, and I also assured them that I would double check for configuration errors on my part that could be causing the issues.


IF the solution is not simple enough for most customers, then it is not an acceptable solution. All of this used to be very easy with the 'web sharing' switch, which has been removed. Still, I'm sure there is a solution.



AS soon as I ended the call with Apple, an alert appeared asking if I wanted kdc to accept incoming connections. So I'm sort of wondering if Kerberos has been triggering the incoming connections to my computer as a security flag.



That is my best guess at this point, and maybe you know something about that? I thought Kerberos was operating a third party verification service (and traffic monitoring, by extension). I don't mind that coming from MIT, as well as the monitoring that is imposed (or received) from AT&T through their assigned domain name service. However, it seems there is also new, unfounded, pressure for web server customers to purchase yet another SSL encryption (and monitoring) service? That is not going to fly here.


Again, maybe I should have notified Kerberos through some kind of configuration, or maybe I still have to make the proper configuration on my system somewhere else. But these kinds of difficulties are not appropriate, when the previous systems were easily managed with a user-friendly GUI.

Apr 5, 2014 3:41 PM in response to Neville Hillyer

It appears there is a legitimate concern about 'copy-cat' hostnames, and users setting hostnames on their computers to imitate other hostnames on the internet and interecept that traffic?


SSL certification is obviously a good system for preventing that, but over-stepping the bounds of preventing individuals from entering the internet, especially through their ISP assigned domain name, seems to be happenning more than it should, or at too great an inconvenience to the average customer.


A better awareness of the issues is in order, however, at the point of purchase of the ISP service and not through broad scare or integrity testing campaigns which oppress and prevent people from using their computers to their full potential.

Mavericks as a Intranet Server... without Server.app?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.