No, the CLI is empty .. :-? Can't figure out why. O wait, i moved the error log to \var\log\nginx. What's in it? And .. found it. I had one 'real' but misconfigured config-file in the \sites-enabled\-folder, instead of just symlinks to \sites-available\. So that's why i couldn't find it in the config-files. I thought, they where all in the \sites-available\, but there was one more ..by lennart - How to...
Running service nginx configtest on a LEMP-system (ubuntu 12.04 LTS) gives a . However, i've no clue why .. Is there a way to debug the parameter configtest or is there somewhere al log-file?by lennart - How to...
I've several config-files in sites-enabled, all working fine. However, if a domain (foobar2.com) not is mentioned in a config, NGINX takes the conf-file of foobar1.com. How can i overrule this and make some sort of catch-all? With the line in the default-config i get an error 500: server { listen 80 default_server; server_name _; # This is just an invalid value which will nevby lennart - Nginx Mailing List - English
Hi all, Some stuff should only be accesible from host2.com/folder. When i enter host1.com/folder, there's a redirect to host2.com/folder. Ehh what? The're bot separated config-files. In the server-section of host2 i have the following line: # block folder location ~ ^/folder/* { return 403; } Is this correct?by lennart - How to...
Edho Arief Wrote: ------------------------------------------------------- > On Sun, Jul 7, 2013 at 6:30 PM, lennart <nginx-forum@nginx.us> wrote: > > > > Is there a way to do this with regex or variables? I've ~15 domains > and it > > would be more convenient to have only one entry "to rule them all" > ;-) > > > > the regex way, whiby lennart - Nginx Mailing List - English
Jonathan Matthews Wrote: ------------------------------------------------------- > On 7 Jul 2013 10:30, "lennart" <nginx-forum@nginx.us> wrote: > > > > According to http://wiki.nginx.org/Pitfalls#Server_Name this is the > best > > solution to redirect www to no-www for one domain: > > > > server { > > server_name www.domain.com;by lennart - Nginx Mailing List - English
According to http://wiki.nginx.org/Pitfalls#Server_Name this is the best solution to redirect www to no-www for one domain: server { server_name www.domain.com; return 301 $scheme://domain.com$request_uri; } server { server_name domain.com; [...] } Is there a way to do this with regex or variables? I've ~15 domains and it would be more convenient to have only one entry "tby lennart - Nginx Mailing List - English
![]() |
![]() |
![]() |
![]() |
|