By Alfred Anate Bodurin MAYAKI
Group Managing Director
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 textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
This comment has been deleted
Uhm, but your Nginx has server_name localhost; which means it’s only accessible from the server itself.
Can you post your entire Nginx site configuration and your entire uWSGI?
And I would recommend that you do not have any server blocks in your main Nginx configuration located in /etc/nginx/nginx.conf
/etc/nginx/nginx.conf file:
https://jpst.it/11K8f
and ```/etc/init/uwsgi.conf`` config file: https://jpst.it/11K8T
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.