The Virtual Host is a way to set multiple websites or URLS in one engine or one IP or run more than one domain on a webserver. The term virtual host in apache vhost or called by the virtual host, while on the NGINX server called blocks.
- Create a directory for the web root document placement
gambar 1. Create directory - Set Permissions For Directories
gambar 2. set permission - Create A Simple Web Pagegambar 3. simple
- Creating A Server Configuration File BlocksNext IE configuration in nginx. In fact there is already a default instance for server blocks in /etc/nginx/sites-available/default.Server configuration of the new blocks will we put it in the directory /etc/nginx/sites-available/Please copy the file default to direktory /etc/nginx/sites-available/
# sudo cp/etc/nginx/sites-available/default/etc/nginx/sites-available/test.localgambar 4. copy the file to the default file test
If it then edit the file as shown below.
gambar 5. the configuration file
- Call The Domain On The Ubuntu Web Browser
how to cek error log in nginx ?
ReplyDeletein terminal ubuntu, first you must login as a super user. and then you write this syntax # tail -f /var/log/nginx/error.log
Deleteawesome posts
ReplyDeletethank's
DeleteIts a great pleasure reading your post.Its full of information I am looking for and I love to post a comment that "The content of your post is awesome" Great work. UK RDP
ReplyDeleteThis is my first visit to your web journal! We are a group of volunteers and new activities in the same specialty. Website gave us helpful data to work. שרת וירטואלי
ReplyDeleteI'm glad to see the great detail here!. whrmarketing
ReplyDeleteI’m going to read this. I’ll be sure to come back. thanks for sharing. and also This article gives the light in which we can observe the reality. this is very nice one and gives indepth information. thanks for this nice article... nemzetközi szállítmányozás és áruszállításEuropa-Road Kft
ReplyDelete