Search This Blog

Friday, 23 June 2017

How to add a Subdomain in VPS

Step 1: Create a sub domain Directory under the /var/www/subdomain.com
1
Step 2: Create a index.html file inside your subdomain directory
2
Step 3: Edit the file as your wish to display on the browser. and save and exit the file
3
Step 4: Next step is to enter into the apache configuration file itself.
4

Step 5: Scroll down to the very bottom of the document to the section called Virtual Hosts. and add the below content with your subdomain details and correctly mention the document root.
then save and exit the file.
5
Step 6: Finally restart the apache service with the following command.
6

that’s it now your subdomain will load properly.





Thank You….!

No comments:

Post a Comment