lazyatom / hostess

Create apache virtual hosts simply and easily
34 stars 3 forks source link

Virtual Hosts not working in 10.7 Lion #5

Open nathos opened 13 years ago

nathos commented 13 years ago

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 commented 13 years ago

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.

lazyatom commented 13 years ago

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 reply@reply.github.com 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

nathos commented 13 years ago

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.

jcalado commented 13 years ago

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.

leehambley commented 13 years ago

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

robbyrussell commented 13 years ago

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

lazyatom commented 13 years ago

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.

robbyrussell commented 13 years ago

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 reply@reply.github.com 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

lassebunk commented 12 years ago

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