I have OS X Server(.app) installed (because I'm a registered developer, so I got it for free). I figured it would be an easy way to flip a switch and get a web server for some static files, for my own local testing, but I can't seem to make it work.
There's a default website with location
/Library/Server/Web/Data/Sites/Default), and going to
localhost in my browser shows a "Welcome to Lion Server" page, so it's definitely running.
I clicked the "+" button, changed the Domain Name to "*" (I assume that means "any", since it's what the default used), changed the port to
8000 (so it wouldn't collide with the default), changed the location to
/Users/ken/Sites (which has a demo
index.html file already), and clicked OK. It spins for a few seconds, the window goes away, and I'm back at the list of sites, and my new site isn't there.
I'm sure it'd be easier to install my own Apache or nginx through Homebrew at this point, but I'm invested. How do I make this thing work?
Update: I found
/etc/apache2/sites/0000_any_8000_.conf, which appears to be exactly the website I created. I assumed it didn't work since it didn't appear in the Server list of web sites, but going to
localhost:8000 actually works! Something is truly weird.