I don't think you can edit the httpd.conf via WHM. Unless you have setup your ftp configuration at some point to allow root ftp into the server. Then you can download the file and edit on your computer, upload it, restart services through WHM.
Follow these steps, you will have it done at no time.
- Download Putty - Run it - type <yourserverIP> into the Host Name field - select SSH - click Open
- Whatever warning message pop up, just click Yes. Then enter your username as root, and your root's password.
- In the shell, type vi /usr/local/apache/conf/httpd.conf
- Then in vi editor, type /<VirtualHost main_ip>
. This is to search for the matched string. Of course, replace the 'main_ip' to the real ip address.
- The configuration should look like the following:
- Click i
. This allows you to type.
Then you can edit them just link you edit a document at Microsoft Word.
- After you have done, click Esc
, follow by :wq
. This step will save the file and quit the vi editor.
- Then, login to WHM as root and restart Apache.
I've checked all the mis-typed thing, so just follow exactly the command I used in bold