Creating the nginx file
-
I am trying to set up that my forum should be accessible from all ports so i
Create the nginx configuration file,$ sudo vim /etc/nginx/conf.d/nodebb.conf
Then the server gives me the option to edit the file,
So i put inserver { listen 80; server_name forum.computingforgeeks.com; location / { proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Proto $scheme; proxy_set_header Host $http_host; proxy_set_header X-NginX-Proxy true; proxy_pass http://127.0.0.1:4567; proxy_redirect off; # Socket.IO Support proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "upgrade"; } }
Okay now how do i save this file and go back to the server?
I couldn't find any clear instructions for a newbie like me
Thanks -
This document don't help?
-
If you don't know how to create, edit, and save files in Linux you are going to have a hard time. I suggest you learn a little bit about Linux command line before proceeding.
-
@qwerty Are you freakin' serious or punking us? If basics such as this are beyond you then you have absolutely no business deploying server based anything on the Internet. Much less a juicy target for crackers like a forum. Seriously irresponsible. Your name/reputation will be crap once your site is cracked and your users forever hate you. If this sounds harsh, it is because it is meant to. Moderator was being polite.
That said:
- ESC
- :
- wq!
- Return/Enter
Good luck!