User Tools

Site Tools


linux:nginx

This is an old revision of the document!


Nginx Config

This page is used record some notes when I config a VPS running with Nginx.

Create a new server block

cd /etc/nginx/
cd sites-available/
cp default team.pjq.me.conf
vim team.pjq.me.conf 

Then edit the config file

 listen 80;
 root /var/www/team/;

Then enable this site:

ln -s /etc/nginx/sites-available/team.pjq.me.conf /etc/nginx/sites-enabled/
/etc/init.d/nginx restart

So the site is running, cheers.

/var/www/dokuwiki/wiki/data/attic/linux/nginx.1398350883.txt.gz · Last modified: 2016/05/05 13:06 (external edit)