deviancelabs

Registered
Sep 28, 2003
4
0
151
Bucharest, Romania
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.
 

deviancelabs

Registered
Sep 28, 2003
4
0
151
Bucharest, Romania
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 ?
 

sneader

Well-Known Member
Aug 21, 2003
1,195
64
178
La Crosse, WI
cPanel Access Level
Root Administrator
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 [email protected]
</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