Score:-2

Connect domain name with Linux VPS server ip using nginx

in flag

I have a VPS Linux (Ubuntu) server and I would like to connect a domain name with my server IP through nginx. I have checked the following:

$ sudo systemctl reload nginx

nginx.service is not active, cannot reload

$ sudo service nginx start
Job for nginx.service failed because the control process exited with error code.
See "systemctl status nginx.service" and "journalctl -xe" for details.

$ systemctl status nginx.service
● nginx.service - A high performance web server and a reverse proxy server
     Loaded: loaded (/lib/systemd/system/nginx.service; enabled; vendor preset: enabled)
     Active: failed (Result: exit-code) since Sun 2022-05-15 18:53:40 CEST; 11s ago

$ sudo nginx -t
nginx: [emerg] unknown "connection_upgrade" variable
nginx: configuration file /etc/nginx/nginx.conf test failed


I would appreciate if someone could help me with this issue.

djdomi avatar
za flag
enduser question are offtopic for serverfault.com. your topic might be on topic on superuser.com
Ivan Shatsky avatar
gr flag
@Citizen Looks like your config was supposed to proxy a WebSocket protocol once according to [this](http://nginx.org/en/docs/http/websocket.html) instruction, but missing the required `map` block as of now. Your question makes a little sense here - start from the official documentation first.
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.