server { # add this hostname to /etc/hosts to translate to the localhost ip server_name cms.localhost; listen 80; include server.defaults.sph-cms; root /opt/web-app/sph-cms/root; location / { default_type text/html; scgi_pass unix:/tmp/1000/scgi } location /files/ { internal; default_type application/octet-stream; root /opt/web-app/sph-cms/storage/main/; } }