Question

Nginx is unable to bind to 443

  • Posted on January 31, 2015
  • oliverAsked by oliver

Hi all, I have been trying to bind my nginx to port 443. The config file works fine however when i type sudo nginx i repeatedly get address is in use on the bind. I have then used netstat which claims nginx is using the port yet nginx is actually saying it’s not binding.

/etc/nginx/sites-available$ sudo netstat -pan | grep “:443” tcp 0 0 0.0.0.0:443 0.0.0.0:* LISTEN 3448/nginx /etc/nginx/sites-available$ sudo nginx nginx: [emerg] bind() to 0.0.0.0:443 failed (98: Address already in use) nginx: [emerg] bind() to 0.0.0.0:443 failed (98: Address already in use) nginx: [emerg] bind() to 0.0.0.0:443 failed (98: Address already in use) nginx: [emerg] bind() to 0.0.0.0:443 failed (98: Address already in use) nginx: [emerg] bind() to 0.0.0.0:443 failed (98: Address already in use) nginx: [emerg] still could not bind()

I have killed all Nginx processes and started up a new nginx copy. rebooted the server to no avail…

Any ideas on what i can do next?

Thanks


Submit an answer


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!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Accepted Answer

sudo fuser -k 443/tcp service nginx restart

This comment has been deleted

    Case Closed: You need to create an upstream proxy to get node.js to proxy via Nginx.

    Thanks to everyone who helped on IRC! <3

    Try DigitalOcean for free

    Click below to sign up and get $200 of credit to try our products over 60 days!

    Sign up

    Become a contributor for community

    Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.

    DigitalOcean Documentation

    Full documentation for every DigitalOcean product.

    Resources for startups and SMBs

    The Wave has everything you need to know about building a business, from raising funding to marketing your product.

    Get our newsletter

    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

    The developer cloud

    Scale up as you grow — whether you're running one virtual machine or ten thousand.

    Get started for free

    Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

    *This promotional offer applies to new accounts only.