OpenVPN setup on Slicehost VPS

Ubuntu 12 Comments

Today, my VPS on slicehost has been setup as virtual private network server via OpenVPN. As I have mentioned at Google said goodbye to Chinese, the google.cn has been disabled and restricted by IP. So I have to find a way to setup the VPN server so that I can visit Google.com in China. Well, my story is over. Let’s start the VPN server tutorial right now! Read the rest of this entry »

500 Error Once http authentication set up?

nginx No Comments

Nginx, as one of light web server software, is awesome. It has the ability to protect whole or parts of your web application via http authentication. It can be set up with ease. Be careful with the path of your auth user file. Try to change it to the absolute path if your pages drop into 500 Internal Server Error.

auth_basic_user_file

syntax: auth_basic_user_file the_file

default: no

context: http, server, location, limit_except

This directive sets the htpasswd filename for the authentication realm. Since version 0.6.7 the filename path is relative to directory of nginx configuration file nginx.conf, but not to nginx prefix directory.

The format of file is the following:

user:pass
user2:pass2:comment
user3:pass3

Passwords must be encoded by function crypt(3). You can create the password file with the htpasswd program from Apache.

@ 2009 - GGIN.Com
Entries RSS Comments RSS Log in