How would I configure my nginx server to serve a different set of files for when a user goes directly to an IP address?
-
In other words, I'd like my users to be directed to one sets of files when they go to the domain name and another set when they go directly to the IP address.
-
Answer:
You are looking for this: Mixed name-based and IP-based virtual servers http://nginx.org/en/docs/http/request_processing.html#mixed_name_ip_based_servers
Stefan Rieger at Quora Visit the source
Related Q & A:
- How do I permanently block a user forever? I mean, find or enter the username, when the user isnt on my list?Best solution by Yahoo! Answers
- How do I change my my Yahoo ID to a different name, but still have the same account?Best solution by Yahoo! Answers
- How do I set up windows 03 server as a server?Best solution by Yahoo! Answers
- How do I access my outlook express email from a different computer?Best solution by Yahoo! Answers
- How do I transfer ALL of my songs onto a different iTunes on a different computer?Best solution by Yahoo! Answers
Just Added Q & A:
- How many active mobile subscribers are there in China?Best solution by Quora
- How to find the right vacation?Best solution by bookit.com
- How To Make Your Own Primer?Best solution by thekrazycouponlady.com
- How do you get the domain & range?Best solution by ChaCha
- How do you open pop up blockers?Best solution by Yahoo! Answers
For every problem there is a solution! Proved by Solucija.
-
Got an issue and looking for advice?
-
Ask Solucija to search every corner of the Web for help.
-
Get workable solutions and helpful tips in a moment.
Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.