Hostgator VPS generates apache’s httpd.conf file automatically. Therefore, any new lines you add to apache’s configuration file will be overwritten. In order to add new configuration settings we need to include a configuration. Open up your main config file /etc/httpd/conf/httpd.conf and search for a virtual host with the domain name you wish to edit. Last two lines of your virtual host should look similar to this:
# To customize this VirtualHost use an include file at the following location
# Include "/usr/local/apache/conf/userdata/std/2/linuxcon/linuxconfig.org/*.conf"
uncomment the Include line by remove leading “#”.
Next, create a directory to reflect the Include location:
# mkdir -p /usr/local/apache/conf/userdata/std/2/linuxcon/linuxconfig.org/