Report this

What is the reason for this report?

Unable to set Nginx reverse proxy in my droplet ubuntu 20.4?

Posted on January 7, 2021

Hi Team,

Am unable to copy and paste the below properly qs it is replacing the other code on /etc/nginx/sites-available/default

location / {
        proxy_pass http://localhost:3000;
        proxy_http_version 1.1;
        proxy_set_header Upgrade $http_upgrade;
        proxy_set_header Connection 'upgrade';
        proxy_set_header Host $host;
        proxy_cache_bypass $http_upgrade;
    }

using the droplet- console using sudo vim and sudo nano .

Kindly check and let know how to paste in the above location?

Thanks and Regards Shivaprasad.G



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!

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.

Hi @shivaprasad,

Unfortunately, at the moment the Copy/Paste functions do not work properly. I’ll suggest writing those manually or us a terminal from your laptop directly.

Keep in mind that you can also put the posted information in a file hosted on any Dropbox or remote server and then you can just download it via the console using curl or wget.

Regards, KFSys

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.