#1 (permalink)  
Old 09-11-2009, 03:25 PM
Registered User
 
Join Date: Sep 2003
Location: Bucharest, Romania
Posts: 4
deviancelabs
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 09-13-2009, 05:53 AM
Registered User
 
Join Date: May 2008
Posts: 1,083
thewebhosting is an unknown quantity at this point
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 09-13-2009, 10:15 AM
Registered User
 
Join Date: Sep 2003
Location: Bucharest, Romania
Posts: 4
deviancelabs
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 ?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 09-16-2009, 01:25 PM
Registered User
 
Join Date: Aug 2003
Location: La Crosse, WI
Posts: 672
sneader is on a distinguished road
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Tags
apache , default , host , vhost , virtual

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


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


All times are GMT -5. The time now is 04:34 AM.


Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
© cPanel Inc