nginx file server code example
Example 1: how to softlink nginx server file
ln -s /etc/nginx/sites-available/example.conf /etc/nginx/sites-enabled/
Example 2: static content nginx
server {
root /www/data;
location / {
}
location /images/ {
}
location ~ \.(mp3|mp4) {
root /www/media;
}
}