Timeline for nginx simply refuses already defined IP address on catch-all directive
Current License: CC BY-SA 3.0
16 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| May 22, 2013 at 17:04 | history | edited | xangr | CC BY-SA 3.0 | deleted 1 characters in body |
| May 22, 2013 at 16:40 | history | edited | xangr | CC BY-SA 3.0 | added 623 characters in body |
| May 22, 2013 at 15:59 | comment | added | Nathan C | I basically copy/pasted my first comment as an answer. Glad you figured it out. | |
| May 22, 2013 at 15:59 | vote | accept | xangr | ||
| May 22, 2013 at 15:59 | answer | added | Nathan C | timeline score: 3 | |
| May 22, 2013 at 15:57 | comment | added | xangr | Yes. Nginx accept all connection both specified in server { listen.. and not. It responds no matter of what. But, If i use one of them in any domain than nginx default_server for 80 port not working. Basically, i write each IP twice. For server itself and for one default server. I updated the first post. Please write an answer. Due to facts you're the answer of this question. It won't be nice to give answer to my own question myself. | |
| May 22, 2013 at 15:56 | history | edited | xangr | CC BY-SA 3.0 | edited title |
| May 22, 2013 at 15:50 | history | edited | xangr | CC BY-SA 3.0 | edited title |
| May 22, 2013 at 15:38 | history | edited | xangr | CC BY-SA 3.0 | added 733 characters in body |
| May 22, 2013 at 15:12 | comment | added | Nathan C | Ah, I understand your question better now. If you're saying nginx is using both IPs and not just one - then that is intended behavior. No bind = bind to all. If you want only one used, specify it in the config. | |
| May 22, 2013 at 15:11 | comment | added | xangr | Yes and no. I may or may not use the unused ip. The fact is, It should block all unknown domains. Target IP is used or not. Eventually, All Ips inside of my server seen by nginx somehow. | |
| May 22, 2013 at 15:08 | comment | added | Nathan C | If you want to use the "unused" ip for something else, then explicitly specify what IP you want to use in nginx and the other application. | |
| May 22, 2013 at 15:06 | comment | added | xangr | So, you're saying that this is by design and i have to clearly give them all to nginx. | |
| May 22, 2013 at 15:02 | comment | added | Nathan C | Typically applications will assign themselves to the "highest" available IP address on the system. This behavior is seen more often with IPv6 IPs but the concept is the same. If you specify both in server blocks it should work fine. | |
| May 22, 2013 at 14:57 | history | edited | xangr | CC BY-SA 3.0 | added 244 characters in body |
| May 22, 2013 at 14:38 | history | asked | xangr | CC BY-SA 3.0 |