- We need to create an user in the VPS: $ adduser -m "Account"
- Assign a password to the new account: passwd "Account"
-
You must make sure that your home directory permissions are set properly so that Apache can get there. Your home directory and ~/public_html must be executable for others ("rest of the world"):
$ chmod o+x ~
$ chmod o+x ~/public_html
$ chmod -R o+r ~/public_html
- Config Nginx creating file in: sites-available. Here an example:
- Create virtual link with: ln -s sites-available/"Account" sites-enabled/"Account"
- Restart Nginx
- Test the URL in a browser
- Have a cup of coffe
I don't have money to buy a domain, but I need to save all my work memories. If you are a software developer that use Mongo, NodeJS, Ionic, Angular, PHP or any Linux server distribution; maybe this blog going to help you.
I need a beer
jueves, 29 de junio de 2017
Configure NGINX block to new Account
Suscribirse a:
Enviar comentarios (Atom)
Launch iPhone simulator from command line
xcrun simctl list /Applications/Xcode.app/Contents/Developer/Applications/Simulator.app/Contents/MacOS/Simulator -CurrentDeviceUDID
-
cd /opt/Rocket.Chat/programs/server/npm/node_modules npm rebuild sharp
-
Nginx: 413 – Request Entity Too Large Error and Solution $ sudo nano /etc/nginx/nginx.conf client_max_body_size 2M;
No hay comentarios:
Publicar un comentario