Answer the question
In order to leave comments, you need to log in
Where is the error in the nginx config file?
Hello! Please tell me where is the error in the configuration file of the nginx virtual host?
server {
listen 80;
server_name *** ***;
user *** ***
location / {
proxy_pass http://127.0.0.1:8080;
}
location ~* \.(html|jpeg|jpg|gif|png|css|js|pdf|txt|tar|ico)$ {
root /home/***;
expires 60d;
}
}
Answer the question
In order to leave comments, you need to log in
nginx.org/en/docs/ngx_core_module.html#user
The context for user is only main. Those. user and group can only be set globally
Well and ; you are missing after user
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question