Regex do not match

Simone Fumagalli simone.fumagalli at contactlab.com
Wed Oct 19 16:07:37 UTC 2011


Hello, can someone please help me and tell me why this regex

	location ~ /(.*)/wp\-content(/.*) {
		[..]
	}

does not match this URL http://www.mysite.com/mydir/wp-content/my_image/foo.jpg ?

I just have this other directive in the server section

	location / {
		[..]
	}

Thanks

--
Simone



More information about the nginx mailing list