PDA

View Full Version : Changes in httpd.conf



mmmm77
02-12-2008, 01:05 AM
In httpd.conf i have

# All the DirectAdmin vhosts
Include conf/extra/directadmin-vhosts.conf

in conf/extra/directadmin-vhosts.conf i have:

Include /usr/local/directadmin/data/users/admin/httpd.conf

in /usr/local/directadmin/data/users/admin/httpd.conf i have the definitions of virtual host. If i change any in this file from console DA rewrite my changes. How i can to change this file and DA don't rewrite my changes?
I want to make some changes in a virtual host as to use mod_rewrite.

Thx.

nobaloney
02-15-2008, 09:07 PM
make your changes inside the included file, and then chattr it to immutable.

Jeff

mmmm77
02-19-2008, 08:32 AM
make your changes inside the included file

in /usr/local/directadmin/data/users/admin/httpd.conf?

, and then chattr it to immutable.
How can I do it?

Thank you Jeff.

smtalk
02-19-2008, 08:48 AM
chattr +i /usr/local/directadmin/data/users/admin/httpd.conf