Re: RE: RE: Two domains and multiple server blocks

2017-08-12 Thread Jamesadamar
You are absolutely rightI'm feeling like an idiot, really! For weeks I've tried to change every single character in nginx configuration and your first tip to look at the request header was worth the number of characters in gold ;) wsc is indeed the default prefix for Woltlab Suite and indeed,

RE: RE: Two domains and multiple server blocks

2017-08-12 Thread Reinis Rozitis
> But the problem still remains and it is getting weirder with every minute.'' I'm not familiar with WoltLab Suite but it feels that it does the same as Wordpress as in it forces redirects to the domain the application is configured. Could it be that you configured it initially on the 3jgkp.de

Re: RE: Two domains and multiple server blocks

2017-08-12 Thread Jamesadamar
Thank you Reinis for the tip with the outdated version of Nginx, now I am using 1.12 ;) But the problem still remains and it is getting weirder with every minute. Even if I disable the 3jgkp.conf completely so only one server block remains, armapedia.de will be redirected to armapedia.3jgkp.de.

RE: Two domains and multiple server blocks

2017-08-12 Thread Reinis Rozitis
> From: nginx [mailto:nginx-boun...@nginx.org] On Behalf Of Iurii Medvedev > > https://nginx.ru/en/docs/http/ngx_http_core_module.html#server_name And? There is clearly written: " The first two of the names mentioned above can be combined in one: server { server_name .example.com; } "

Re: Two domains and multiple server blocks

2017-08-12 Thread Iurii Medvedev
https://nginx.ru/en/docs/http/ngx_http_core_module.html#server_name 2017-08-12 16:11 GMT+03:00 Reinis Rozitis : > > Please don't use server name like .armapedia.de you should USe fqdn > > Unless you care about micro performance gains (as in a bit slower wildcard > lookups) from

RE: Two domains and multiple server blocks

2017-08-12 Thread Reinis Rozitis
> Please don't use server name like .armapedia.de you should USe fqdn Unless you care about micro performance gains (as in a bit slower wildcard lookups) from configuration point of view it's fine and nothing wrong to use .domain. rr ___ nginx

RE: Two domains and multiple server blocks

2017-08-12 Thread Iurii Medvedev
Please don't use server name like .armapedia.de you should USe fqdn 12 авг. 2017 г. 15:58 пользователь "Reinis Rozitis" написал: > > Here, whenever I enter www.armapedia.de in my browser, I am redirected > to > > armapedia.3jgkp.de. I dont understand this behavior at all. All >

RE: Two domains and multiple server blocks

2017-08-12 Thread Reinis Rozitis
> Here, whenever I enter www.armapedia.de in my browser, I am redirected to > armapedia.3jgkp.de. I dont understand this behavior at all. All examples about > nginx and multiple vhosts with different domains just use the appropriate > server_name entries, so I'm really stuck here. First - I would

Re: Two domains and multiple server blocks

2017-08-12 Thread Jamesadamar
They are not wrong, look here: http://nginx.org/en/docs/http/server_names.html A special wildcard name in the form “.example.org” can be used to match both the exact name “example.org” and the wildcard name “*.example.org”. You should know your own documentation. If it would be wrong, 3.jgkp.de

Re: Two domains and multiple server blocks

2017-08-12 Thread basti
Hello, your server_name .3jgkp.de; and server_name .armapedia.de; are wrong. Use www.armapedia.de, wildcard, regex or whatever. See http://nginx.org/en/docs/http/server_names.html Best Regards, Basti On 12.08.2017 09:21, Jamesadamar wrote: Dear community, I am a beginner in the land of