hostess icon indicating copy to clipboard operation
hostess copied to clipboard

Virtual Hosts not working in 10.7 Lion

Open nathos opened this issue 13 years ago • 9 comments

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?

nathos avatar Jul 06 '11 01:07 nathos

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.

nathos avatar Jul 06 '11 04:07 nathos

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

lazyatom avatar Jul 06 '11 09:07 lazyatom

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.

nathos avatar Jul 06 '11 17:07 nathos

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.

jcalado avatar Jul 18 '11 11:07 jcalado

+1 Not with hostess, but using Ghost (similar application)

leehambley avatar Jul 24 '11 16:07 leehambley

Using Ghost... but same problem here. Safari 5.1 and I might have to breakup for a bit.

robbyrussell avatar Jul 27 '11 19:07 robbyrussell

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.

lazyatom avatar Jul 29 '11 16:07 lazyatom

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

robbyrussell avatar Jul 29 '11 23:07 robbyrussell

Using @nathos /etc/hosts solution worked for me. @robbyrussell +1 :-D

lassebunk avatar Dec 29 '11 09:12 lassebunk