Is this better? server { listen 443 ssl; listen 127.0.0.1:8001; server_name www.example.org; return 301 $scheme://example.org$request_uri; } server { listen 127.0.0.1:8001; server_name example.org; root /home/user/public; index index.php gzip_static on; access_log /var/log/nginx/example.org_access.log; error_log /by velvetpixel - How to...
Is it ok to have rewrites for www to non-www as if statements in each http and https server block rather than using a separate server block just for the rewrite as listed in the pitfalls page? My current config looks like this: server { listen 127.0.0.1:8001; server_name example.org www.example.org; root /home/user/public; index index.php gzip_by velvetpixel - How to...
The error in logs I am seeing is: 2013/08/21 16:07:14 1001#0: *1 open() "/home/example/public_html/admin" failed (2: No such file or directory), client: 10.102.130.237, server: dev.example.com, request: "GET /admin HTTP/1.1", host: "dev.example.com" Is this because /home/example/public_html/admin is not a real directory in the filesystem but an alias that druby velvetpixel - How to...
I am trying to deny access to drupal admin except for a /24 and I can't get it to work. I am using this code: location /admin/* { allow 10.102.130.0/24; deny all; } Is my syntax incorrect? Does it need to be in a different location in the file? It is currently right after my server_name and root declarations.by velvetpixel - How to...
![]() |
![]() |
![]() |
![]() |
|