Question

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

Posted January 7, 2021 119 views
Nginx

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

edited by MattIPv4

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.

×
Submit an Answer
1 answer

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