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

nginx default SERVER_NAME == '_' crashing interface #10

Closed
walkeralencar opened this issue Jun 16, 2015 · 3 comments
Closed

nginx default SERVER_NAME == '_' crashing interface #10

walkeralencar opened this issue Jun 16, 2015 · 3 comments
Assignees

Comments

@walkeralencar
Copy link

when using nginx it crash interface because Theme cant get right SERVER_NAME

walkeralencar pushed a commit to walkeralencar/phpmongodb that referenced this issue Jun 16, 2015
@phpmongodb
Copy link
Owner

Sorry for late reply but i am also using nginx its working fine. kindly please explain a little bit for the scenario

@phpmongodb phpmongodb self-assigned this Jun 29, 2015
@walkeralencar
Copy link
Author

whend u use nginx with multiple vhosts, dont exist variable: $_SERVER["SERVER_NAME"], in that case you will need to get: $_SERVER["HTTP_HOST"]

c892693 fix that ;)

@lostsnow
Copy link

lostsnow commented Sep 8, 2015

why not use HTTP_HOST instead of SERVER_NAME

http://stackoverflow.com/questions/2297403/http-host-vs-server-name
The HTTP_HOST is obtained from the HTTP request header and this is what the client actually used as "target host" of the request. The SERVER_NAME is defined in server config.

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

3 participants