location matching.

Steve Wilson lists-nginx at swsystem.co.uk
Sun May 12 16:28:00 UTC 2013


The good news is it looks like subversion clients support SNI so I've
got a new server block which is now working great.

server {
        listen                  80; ## listen for ipv4
        listen                  443; ## listen for ipv4
        listen                  [::]:80; ## listen for ipv6
        listen                  [::]:443; ## listen for ipv6
        server_name             svn.xyz.com;
        ssl_certificate             /etc/ssl/STAR.xyz.com.pem;
        ssl_certificate_key         /etc/ssl/STAR.xyz.com.pem;
        client_max_body_size 300M;
        access_log /var/log/nginx/svn_access.log;
        location ^~ /svn {
                proxy_pass http://apache;
                proxy_set_header X-Real-IP $remote_addr;
        }
        location / {
            return 200 "There's nothing at $scheme://$host$uri";
        }
}

Thanks for the help.

Steve.



More information about the nginx mailing list