Welcome! Log In Create A New Profile

Advanced

Search $querystring for a particular string

Posted by YumiNanako 
Search $querystring for a particular string
September 05, 2009 02:38AM
Ah hi all. I just converted to Nginx from Lighttpd. Originally my Mercurial repositories were using mod_wsgi with Lighttpd (pull for all users, and push needed authorization based on htpasswd).

Now I have just switched to Nginx with mod_wsgi, finding it a lot faster than the previous, so I'm sticking to Nginx here.

The bottom code excerpt from http://mercurial.selenic.com/wiki/HgWebDirStepByStep#Configuring_Lighttpd_push_support was to search the querystring for unbundle and makes it require authentication for that. How do I convert the following to Nginx. Thanks

[code]
$HTTP["querystring"] =~ "cmd=unbundle" {
auth.require = ( "" => (
"method" => "basic",
"realm" => "Mercuial Repo",
"require" => "valid-user"
)
)
}
[/code]

Regards and Thanks, Yumi Nanako
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 78
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready