NHR Blog

Time Is Money

Virtual host ubuntu 18.04

10 months ago

VHOST Shortcuts

Steps:
1. Create directory (/var/www/html/projectone.rob/public_html)
2. Folder permission
3. Create demo web pages for each host
4. Create configuration file for each host
5. Enable virtual host configuration files
6. Test Virtual hosts (Open /etc/hosts file in any editor:)

V1804
Issue :
Permission issue (read only file)
Cant create new folder

Solution:
mount -o remount,rw /media/user /drive

Vim

How to Save a File in Vi / Vim Editor in Linux
Press 'i' to Insert Mode in Vim Editor.
Once you have modified a file, press [Esc] shift to the command mode and press :w and hit [Enter] as shown below.

Save File in Vim.
To save the file and exit at the same time, you can use
the ESC and :x key and hit [Enter] . ...

Save and Exit File in Vim

By Admin