Access my web site without the port in the url?


Have a web site with gunicorn + nginx, but only achieve to access

As I can configure to access only with ?


Show comments

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.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

This comment has been deleted

You should use Nginx as a reverse proxy for your server, Here is a sample configuration for Nginx that may do what you want:

server {
   listen       80;

   access_log  /var/log/nginx/log/  main;
   error_log  /var/log/nginx/log/;
   root   /usr/share/nginx/html;
   index  index.html index.htm;

   location / {
      proxy_next_upstream error timeout invalid_header http_500 http_502 http_503 http_504;
      proxy_redirect off;
      proxy_buffering off;
      proxy_set_header  Host  $host;
      proxy_set_header  X-Real-IP   $remote_addr;
      proxy_set_header  X-Forwarded-For   $proxy_add_x_forwarded_for;

Feel free to ask your questions about this settings.