TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Ask HN: Does anyone here use OS X as a webserver?

31 pointsby rohanprabhualmost 9 years ago
We have webservers running BSD, Linux, Windows, but when it comes to OSX, I have only seen people installing server software on it because they do development on it. Does anyone here run/administrate a big website (say with a million users) on OSX? Why did you (or your company) choose OSX? Can you compare it to hosting on other platforms?

22 comments

pyrophanealmost 9 years ago
I doubt you will fine anyone who does this today for reasons other than a needing to support legacy software that only runs on OS X for some reason.<p>All modern web application stacks run as well on Linux as they would on OS X, if not better, so there is no advantage to running OS X and lots of downsides.<p>You need to run OS X on Apple hardware, and they haven&#x27;t made a blade server for several years, so you&#x27;d be stuck with either the mini or the Mac Pro, either of which is going to be expensive for the computing resources you get. You also can&#x27;t fit them neatly into an enclosure.<p>Also, if you ever wanted to move your infrastructure to the cloud you&#x27;d need to move to Linux anyway.<p>I can think of no valid reason to use OS X server to host any kind of web app.
评论 #11804121 未加载
detaroalmost 9 years ago
There is an image CDN (EDIT: imgix, as tristanj linked below) which runs OS X for their image processing servers and I&#x27;ve seen pictures of rack holders for Mac Minis for build servers, but in general OS X isn&#x27;t a very interesting choice.<p>Running it on non-Apple hardware is legally questionable at best (the EULA forbids it, if this part of the EULA is applicable in your country is a question for a lawyer), Apple doesn&#x27;t do server hardware anymore, it costs money and you don&#x27;t get support or special software from Apple for server-usage for it, and since nearly nobody runs it as a server OS it probably isn&#x27;t very high on the priority list to support that usage for other software vendors or open-source project.<p>A lot of things probably will work well since they are made to run for developer usage, but if you do not absolutely need integration with something apple-specific or just want to reuse an old mac lying around for a hobby project it doesn&#x27;t give you anything over other OSes as a normal web server.
评论 #11803395 未加载
tristanjalmost 9 years ago
Not me personally, but Imgix uses Mac Pros in their datacenter for graphics related work.<p><a href="http:&#x2F;&#x2F;photos.imgix.com&#x2F;racking-mac-pros" rel="nofollow">http:&#x2F;&#x2F;photos.imgix.com&#x2F;racking-mac-pros</a><p>And not directly what you asked, but a thread that comes to mind is this one, where an unnamed company (presumably Mathworks) built a rack of Macbook Pros for testing purposes.<p><a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=9967357" rel="nofollow">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=9967357</a>
xchaoticalmost 9 years ago
Serving HTTP requests has been commoditised, there is a hundred cheaper, better, ways to serve a webpage. The only sensible case is non-mission critical SOHO scenario where you happen to have a mac mini or iMac idling around and gathering dust otherwise.
scosmanalmost 9 years ago
A few of the continuous integration companies that support iOS&#x2F;Mac development run fleets of Macs. If you need info, talk to the folks at bitrise.io or CircleCI
silverlightalmost 9 years ago
I would think the main barrier to doing this is the tie-in between the hardware and software. Mac hardware doesn&#x27;t even really have a &quot;large server&quot; piece. And certainly if they did it wouldn&#x27;t be very cheap compared to a Linux box. Since basically any software you would run on OSX to run a server you would presumably be able to run on Linux as well (e.g. nginx, etc.), I don&#x27;t know what the advantage would be.
dslalmost 9 years ago
I ran part of a website on OS X. We needed to generate screen captures of URLs back before lots of tools existed to solve that problem, so we had a Mac Mini generating captures and thumbnails. For a very long time they were all generated, stored locally, and served by Apache. Recently (after I stopped working on the project) serving was migrated to S3, I believe just due to disk space issues.
spottedquollalmost 9 years ago
<a href="https:&#x2F;&#x2F;macminicolo.net&#x2F;" rel="nofollow">https:&#x2F;&#x2F;macminicolo.net&#x2F;</a><p>An entire colocation facility that runs Mac minis. It looks fun.
spriggan3almost 9 years ago
The only reason why I would personally do that is to run some continuous integration for OSX software. Otherwise I can&#x27;t think of any reason why one would run a OSX server,which implies owning a Macintosh. Some legacy frameworks like web objects might run better on OSX. At a previous job, we used a server on a mac mini that ran a proprietary software which did 3GP video encoding with DRM. We had to buy a mac mini for that single purpose (+ the cost of the software license).
评论 #11804256 未加载
kcrwfrdalmost 9 years ago
If you use it, don&#x27;t install their Server.app unless you specifically need something it does. It takes over port 443 and others forcing you to do things in their way behind their global proxy.
wittedhaddockalmost 9 years ago
We do, but not at the millions of users level. We use it to run a swift proxy server.<p>We have no interest in scaling on OSX and plan to port to linux. It&#x27;s an interim type of thing.
zaphoydalmost 9 years ago
Ten years ago when Xserves were a thing we ran web servers on OS X, but primarily because we needed OS X for some other server software and it was cheaper to also run a web server on those boxes than stand up a Linux box.<p>We&#x27;ve since abandoned this practice as there is no Apple hardware suitable for it. We still run some Mac mini servers for things that do not run on any other OS, but definitely not web sites&#x2F;apps.
taknilalmost 9 years ago
I did serve a company internal tool written in PHP&#x2F;mysql from a white macbook. It was served to all our retail locations (under 100 DAUs). It was a &quot;but it works on my machine&quot; - &quot;back up your email, your machine is going into production&quot; situation. It ended up taking almost two years to migrate the application away because it just worked. Picture of said server macbook <a href="https:&#x2F;&#x2F;flic.kr&#x2F;p&#x2F;DY4k1U" rel="nofollow">https:&#x2F;&#x2F;flic.kr&#x2F;p&#x2F;DY4k1U</a>
sam_goodyalmost 9 years ago
Edit: Offtopic but interesting.<p>I definitely don&#x27;t have millions of users, but there are hosting companies that do mac only. You can ask them if they have large clients.<p>(My needs are a node.js based site on virtualmacosx.<p>I had written something locally on Mac, and it depended on things that OSX did different than Linux, and decided I didn&#x27;t have the time or inclination to fix it, so went with VMOSX.)
评论 #11804242 未加载
NathanKPalmost 9 years ago
The only webservice I&#x27;ve run on OSX was a Jenkins webserver to provide an HTTP dashboard for an automated ios app build system running on the same machine. And it was not a pleasant experience at all. I do not recommend using OSX as a webserver unless you absolutely have to (for example to run Xcode builds).
throwaway2016aalmost 9 years ago
I have some OS X machines on the LAN for things like dashboards but I wouldn&#x27;t dream of using one on production web servers.<p>I really like OS X, I&#x27;ve been using it on my personal and work computers for 9 years. But for server sit is Linux all the way.
gatespherealmost 9 years ago
IIRC, a few years back <a href="http:&#x2F;&#x2F;iolanguage.org&#x2F;" rel="nofollow">http:&#x2F;&#x2F;iolanguage.org&#x2F;</a> was hosted on an aging Macbook. I&#x27;m not sure if that&#x27;s still the case.
jparishyalmost 9 years ago
RunSwiftLang.com&#x27;s Swift interpreter component runs on OS X to make use of the native Foundation libraries. Not a huge app (Ruby&#x2F;Sinatra) in of itself but fits the bill.
brbsixalmost 9 years ago
I&#x27;ve used Filemaker Server to host it&#x27;s web interface. I probably wouldn&#x27;t use it again, but I didn&#x27;t know of any simple self-hosted alternatives at the time.
King-Aaronalmost 9 years ago
I&#x27;ve spun up OSX Server instances to run 4D databases in the past, nothing in production with the sort of users you&#x27;re looking at however.
CoffeePoweralmost 9 years ago
I suspect interest in this withered greatly after Apple abandoned Xserve
_hnwoalmost 9 years ago
used to have a few Xserves when they were a thing, never a million users though.