Question

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

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


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.

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