Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Virtual Hosts not working in 10.7 Lion #5

Open
nathos opened this issue Jul 6, 2011 · 9 comments
Open

Virtual Hosts not working in 10.7 Lion #5

nathos opened this issue Jul 6, 2011 · 9 comments

Comments

@nathos
Copy link

nathos commented Jul 6, 2011

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
Copy link
Author

nathos commented Jul 6, 2011

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
Copy link
Owner

lazyatom commented Jul 6, 2011

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:
#5

@nathos
Copy link
Author

nathos commented Jul 6, 2011

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
Copy link

jcalado commented Jul 18, 2011

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
Copy link

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

@robbyrussell
Copy link

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

@lazyatom
Copy link
Owner

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
Copy link

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:
#5 (comment)

@lassebunk
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants