hostess
hostess copied to clipboard
Virtual Hosts not working in 10.7 Lion
I'm testing Lion and can't seem to get Hostess virtual hosts to work.
Requests don't seem to be getting sent to the appropriate virtual hosts (e.g.: 'localhost' is loading one of the virtual hosts instead of the default "It Works!" page).
I'm guessing there may have been some change with the way directory services works in Lion, but don't have much more to go on.
Any feedback on running w/ Lion?
Okay, I've partially figured this out:
Looks like some of the Apache configuration defaults were changed in Lion. However, even after sorting the virtual host configuration out, Safari 5.1/WebKit nightlies still can't resolve the the local hostnames created by Hostess/dscl. Firefox & Chrome don't have a problem.
I don't have Lion at the moment, so I can't really comment, but once it's released I can take a look.
In the meantime, feel free to investigate....
On 6 July 2011 02:45, nathos [email protected] wrote:
I'm testing Lion and can't seem to get Hostess virtual hosts to work.
Requests don't seem to be getting sent to the appropriate virtual hosts (e.g.: 'localhost' is loading one of the virtual hosts instead of the default "It Works!" page).
Any feedback on running w/ Lion?
Reply to this email directly or view it on GitHub: https://github.com/lazyatom/hostess/issues/5
Did some additional testing last night & today.
Safari can load the virtual host if you edit /etc/hosts to add the hostname. For some reason it's not resolving Directory Services hosts.
A few days ago i almost banged my head against the wall.. I wasn't it working! Until i tried to open the virtual host in chrome...
I can confirm this bug, it's still present in the GM.
+1 Not with hostess, but using Ghost (similar application)
Using Ghost... but same problem here. Safari 5.1 and I might have to breakup for a bit.
This is almost certainly a bug in Lion; I've upgraded my own laptop now, so I'm in a position to investigate, but it looks like others are also seeing the issue with dscl - http://www.ehmac.ca/mac-masters/96070-dscl-local-default-hosts-resolution.html
Given the issue only seems to be with Safari, I'm hesitant to invest a huge amount of time fixing it at the moment, but we'll see.
Agree that this should be something we wait on Apple to fix. They broke it... let's all grab our pitchforks!
On 29 July 2011 09:08, lazyatom [email protected] wrote:
This is almost certainly a bug in Lion; I've upgraded my own laptop now, so I'm in a position to investigate, but it looks like others are also seeing the issue with dscl - http://www.ehmac.ca/mac-masters/96070-dscl-local-default-hosts-resolution.html
Given the issue only seems to be with Safari, I'm hesitant to invest a huge amount of time fixing it at the moment, but we'll see.
Reply to this email directly or view it on GitHub: https://github.com/lazyatom/hostess/issues/5#issuecomment-1682461
Using @nathos /etc/hosts solution worked for me. @robbyrussell +1 :-D