How can I add a Virtualhost domain to apache from the shell | Domain Hosting

How can I add a Virtualhost domain to apache from the shell

Below are the procedure To add a virtual host entry

1. Login to ssh as root using a program like putty.
2. Backup the current httpd.conf file

cp -r /usr/local/apache/conf/httpd.conf /usr/local/apache/conf/httpd.conf.bakup

3. Open the file /usr/local/apache/conf/httpd.conf using an editor like vi.

Navigate to the end of file and add the virtual host entry in the following format. You may copy-paste this demo entry and edit it from vi.

Read More

There are no comments.

Leave a Reply