11 lines
286 B
Plaintext
11 lines
286 B
Plaintext
% nginx
|
|
|
|
# Enable site
|
|
sudo ln -s /etc/nginx/sites-available/<ls_site> /etc/nginx/sites-enabled/<ls_site>
|
|
|
|
# Disable site
|
|
sudo 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}'
|