I've SSH installed a Python 3.5 application on CentOS along with uwsgi
and nginx
, but after doing a sudo vi /etc/nginx/nginx.conf
to edit the nginx config file as per usual, the response is currently:
nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
these are the contents of the /etc/nginx/nginx.conf file:
sendfile on;
tcp_nopush on;
tcp_nodelay on;
keepalive_timeout 65;
types_hash_max_size 2048;
include /etc/nginx/mime.types;
default_type application/octet-stream;
include /etc/nginx/conf.d/*.conf;
server {
listen [::]:80 default_server;
server_name _;
root /var/www/html/<directory//;
location / {
}
The server is currently showing an nginx error page.
This is the results of a sudo service nginx configtest
:
2017/07/18 15:34:04 [crit] 2829#0: *41 connect() to unix:/var/www/html/pricing-service/socket.sock failed (2: No such file or directory) while connecting to upstream, client: 90.63.208.189, server: localhost, request: "HEAD 178.62.201.111:80/phpmyadmin2013/ 1.1", upstream: "uwsgi://unix:/var/www/html/pricing-service/socket.sock:", host: "178.62.201.111"