Create nginx.md

v0.1.7
Suresh Alse 2016-04-28 11:33:06 -07:00
parent d2386f0edb
commit 58ce767707
1 changed files with 25 additions and 0 deletions

25
nginx.md Normal file
View File

@ -0,0 +1,25 @@
Hosting
=======
Install [nginx](http://nginx.org/) on your server. Then edit the configuration to map port 80 (or any other port) to 8000
```
sudo vi /etc/nginx/sites-available/default
```
Change it to this
```
server {
listen 80;
server_name localhost;
location / {
proxy_pass http://localhost:8000;
}
}
```
##Authentication
You can enable basic http authentication with user name and password on nginx to prevent unauthorized users from accessing your cronjobs. Refer [this](https://www.digitalocean.com/community/tutorials/how-to-set-up-http-authentication-with-nginx-on-ubuntu-12-10).