now i have successfully set the 'nginx.conf ' like this:
29 auth_basic "LTP Web Service";
30 auth_basic_user_file ltpasswd;
and when visit the web site, it will pop a box ask for username and pwd.
here is problem:
i want to communicate with the server by C++/JAVA or some other
languages and don't know how to put my username and pwd to the server.
shall i add Authorization Option to the http header or write something
in cookie?
Posted at Nginx Forum:
http://forum.nginx.org/read.php?2,61427,61427#msg-61427
on 2010-03-08 14:26
Please log in before posting. Registration is free and takes only a minute.
Existing account
(Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
Log in with Google account | Log in with Yahoo account
No account? Register here.