Moving away from .htaccess with Custom Httpd Configurations?

Pzz

Verified User
Joined
May 20, 2013
Messages
138
Location
The Hague area, The Netherlands
I've been reading disable-htaccess-apache-performance and I'm figuring out how to do this in DirectAdmin. My idea is to put a "local_httpd.conf" in my documentroot for domainspecific settings which should by loaded (once) a server start.

Just for one domain.

I guess it should be possible to use Custom Httpd Configurations to achieve this?

I want to - turn off the use of .htaccess --> AllowOverride None
and adding --> IncludeOptional |DOCROOT|/domain_httpd.conf to set my specific former .htaccess settings

But the changes made here don't appear in het <directory> section but in the <VirtualHost>

And everything I'v read so far tels me to put my changes in the <directory>-section.

Is what I want to try possible with "Custom Httpd Configurations"?
 
Hello,

So you want to give your users a chance to write directly into a file which will loaded into Apache? In this case you should be ready to downtime which will occur after your user makes a typo in the file, and apache will fail to start.

And even apache won't fail after nightly tally... as it might be smart enough not to restart if a config test fails. But you will see "Apache is functioning normally" for every newly added domain, as Apache won't restart to catch new configs.
 
Back
Top