best way to not lose changes in httpd.conf

Lem0nHead

Verified User
Joined
Nov 28, 2004
Messages
265
hello
I have a few questions about how httpd.conf changes are handled

1) will /etc/httpd/conf/httpd.conf ever be replaced (I read somewhere in the help.directadmin.com that it wouldn't, but I'm almost sure it was after I recompile apache 2.2 with custombuild - although a backup was done)
if it is, where can I add "permanent changes" (like include modsecurity)?

2) I need special settings for a virtualhost
things like CustomLog and a few Alias, but that's just for one user
do you think using the "if" on virtualhost templates is the best way to do that?
I don't feel very confortable with that solution... maybe it's possible to configure "special settings" for some users anywhere else?

thanks
 
Last edited:
1) will /etc/httpd/conf/httpd.conf ever be replaced (I read somewhere in the help.directadmin.com that it wouldn't, but I'm almost sure it was after I recompile apache 2.2 with custombuild - although a backup was done)
if it is, where can I add "permanent changes" (like include modsecurity)?

Only when you upgrade it (e.g. go from 1.3 to 2.0 or 2.2) or run "./build rewrite_confs".

2) I need special settings for a virtualhost
things like CustomLog and a few Alias, but that's just for one user
do you think using the "if" on virtualhost templates is the best way to do that?
I don't feel very confortable with that solution... maybe it's possible to configure "special settings" for some users anywhere else?

http://help.directadmin.com/item.php?id=3
 
one more thing
I have a user for which the <VirtualHost ...:443> is not being generated (but it is for other users)
any hints on the reason?
this user has SSL=ON and I rewrite the httpd.conf after I enabled SSL
isn't this enough?
 
Hello,

Go to the User Level for that User. Click "Domain Setup", then click the domain name. Ensure that the ssl checkbox is present. I believe it might be lower case in the domain.com.conf file in the users directadmin user's domains directory.

John
 
Back
Top