Igor Sysoev Wrote: ------------------------------------------------------- > On 15 May 2014, at 04:01, SAH62 <nginx-forum@nginx.us> wrote: > > > Sorry for posting this twice. I posted it in the "How to" forum last > week, > > there haven't been any replies, so I thought I'd try again. > > > > I'm using nginx for multiple virtual hosts on tby SAH62 - Nginx Mailing List - English
Sorry for posting this twice. I posted it in the "How to" forum last week, there haven't been any replies, so I thought I'd try again. I'm using nginx for multiple virtual hosts on the same physical server. The issue I'm having is that a browser request for https://www.domain1.org/ is being answered with a certificate for a different domain. Here's what the slices from my config filesby SAH62 - Nginx Mailing List - English
I'm using nginx to provide service for 4 virtual hosts on the same physical server. The issue I'm having is that a browser request for https://www.domain1.org/ is being answered with a certificate for a different domain. Here's what the slices from my config files look like: domain1.conf: (note that there's no listen directive for port 443) server { listen 80; server_name domby SAH62 - How to...
Bug reported and confirmed: https://bugs.launchpad.net/ubuntu/+source/nginx/+bug/1314740by SAH62 - How to...
The ticket was closed as invalid with this comment: "This doesn't looks like a problem in nginx. Rather, it's an incorrect assumption in init.d script you use - looks like it tries to grep nginx.conf for the "pid" directive, and fails to do it properly. Ask your package maintainer for a refund." Indeed, /etc/init.d/nginx does this: PID=$(awk -F'[ \t;]+' '/[^#]pid/ {priby SAH62 - How to...
Done! Thanks for the suggestion. http://trac.nginx.org/nginx/ticket/551by SAH62 - How to...
A little more testing has identified "spid" as the issue, not "spider", but I have no idea why that would create a regular expression problem. Clues, please?by SAH62 - How to...
I have the following directive in my nginx.conf file: map $http_user_agent $is_bot { default 0; ~*(crawl|Google|Slurp|bingbot|tracker|click|parser|msnbot|msnbot|Gigabot|spider) 1; } This works just fine on a server running PHP 5.3 and nginx 1.1.19. It's causing an invalid option error when I try to start nginx on a different server running PHP 5.5 and nginx 1.4.6: nginx: invalby SAH62 - How to...
I think I have this figured out. The trick was in understanding how the "if" directive really works. This blog post was very helpful: http://agentzh.blogspot.com/2011/03/how-nginx-location-if-works.html I tried adding the "if" to my forum/php location location ^~ /forum/ { include local/block-search.conf; index index.php; try_files $uri $uri/ =404; location ~ ^/forby SAH62 - How to...
I'm new to nginx so please pardon my ignorance. I've read the appropriate documentation, but I'm still having some trouble with a location directive. I'm trying to block (return HTTP 403) web spiders from accessing everything under /forum. Here's my config: I create a map in nginx.conf: http { ... map $http_user_agent $is_bot { default 0; ~*(crawl|Google|Sby SAH62 - How to...