server
{
listen 80;
server_name localhost;
charset utf-8;
location /q { //обработка backend...
proxy_pass http://localhost:8000;
proxy_set_header Host $host;
}
location / {
root /home/alex/projects/web/localhost/public;
index index.html;
}
}