|
|||
|
customize apache's default virtual host
I was wondering if anyone has any idea on how to edit/customize the default virtual host definition?
According to the EA3 docs, one way would be to use the include files but since this particular vhost contains no "Include" definition, that doesn't seem to be an option. Adding either the "Include" definition or the custom directives directly to the httpd.conf file, within the virtual host definition, and using the apache_conf_distiller + rebuildhttpdconf doesn't work either as the changes aren't preserved (even though the datastore gets updated). One last option that I haven't tried yet would be to use a custom template file but I'm not sure it will work either. So has anyone had any success with this? Thanks. |
|
|||
|
You can try to use custom template option to customize apache default virtual host. You can get the information from the below URL:
cPanel - The Easy Apache Configuration System - Adding Custom Directives to httpd.conf |
|
|||
|
Thanks a lot for the reply.
As I said in my initial post, that was one last option that I haven't tried and I was curious if anyone has done this and can report that it works. Did you make this work, btw ? |
|
|||
|
I'm in the same boat. I just want to create a VirtualHost entry for the hostname of the server itself, so that it serves up pages in /usr/local/apache/htdocs
Something like: <VirtualHost 11.22.33.44:80> ServerName boxname.hostingcompany.com DocumentRoot /usr/local/apache/htdocs ServerAdmin sysadmin@hostingcompany.com </VirtualHost> I tried to add this directly to httpd.conf, then distill and rebuild, and the change is lost. Ideas on the RIGHT way to do this? - Scott |
![]() |
| Tags |
| apache , default , host , vhost , virtual |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Dedicated IP address default virtual host | xous | cPanel and WHM Discussions | 1 | 11-08-2008 07:52 PM |
| Virtual host | pinehead | cPanel and WHM Discussions | 0 | 06-11-2007 09:56 PM |
| Creating a new virtual host | cacathcart | cPanel Newbies | 2 | 10-25-2006 07:33 AM |
| Virtual Host | zaqizaba | cPanel and WHM Discussions | 0 | 06-20-2005 11:18 AM |
| change Default Virtual Host entry | ryantechsupport | cPanel and WHM Discussions | 2 | 03-04-2005 02:17 PM |