- server {
- listen 80;
- listen [::]:80;
- server_name server www.server;
- root /var/www/server/html;
- index index.html index.xml;
- location ~ \.(gif|jpg|png)$ {
- root /images;
- }
- }
server { listen 80; listen [::]:80; server_name server www.server; root /var/www/server/html; index index.html index.xml; location ~ \.(gif|jpg|png)$ { root /images; } }