navi: Add nginx cheat sheet
This commit is contained in:
parent
dda8e881de
commit
ec5fc20ae5
10
navi/nginx.cheat
Normal file
10
navi/nginx.cheat
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
% nginx
|
||||||
|
|
||||||
|
# Enable site
|
||||||
|
ln -s /etc/nginx/sites-available/<ls_site> /etc/nginx/sites-enabled/<ls_site>
|
||||||
|
|
||||||
|
# Disable site
|
||||||
|
rm /etc/nginx/sites-enabled/<rm_site>
|
||||||
|
|
||||||
|
$ ls_site: ls /etc/nginx/sites-available/ | awk '{print $1}'
|
||||||
|
$ rm_site: ls /etc/nginx/sites-enabled/ | awk '{print $1}'
|
Loading…
x
Reference in New Issue
Block a user