root vovka etc nginx sites-available service nginx restart Restarting

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
root@vovka:/etc/nginx/sites-available# service nginx restart
Restarting nginx: nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
nginx: configuration file /etc/nginx/nginx.conf test is successful
nginx.
root@vovka:/etc/nginx/sites-available# cat share.vovka.pw.conf
server {
listen 80;
server_name share.vovka.pw www.share.vovka.pw;
root /home/vovka/vovka.pw/share;
charset utf-8;
location / {
autoindex on;
types {
image/jpeg jpg jpeg;
}
default_type application/octet-stream;
}
}
root@vovka:/etc/nginx/sites-available#