Custom httpd.conf for a particular user

Saeven

Verified User
Joined
Jun 29, 2003
Messages
76
[Solved] Custom httpd.conf for a particular user

Hi,

I have a user for which a custom httpd.conf modification is required. I was pretty confident that I could change this in:

/usr/local/directadmin/data/users/xxxx/httpd.conf

..however, at the top of that file is writ:

# Auto generated apache config file by DirectAdmin version 1.32.2
# Modifying this file is not recommended as any changes you make will be
# overwritten when the user makes any changes to his/her website

The case is that I need to adjust the open_basedir for a particular user.

Given the above then, where would I make changes to the user's httpd configuration so that any action in DA wouldn't overwrite the custom config?

Thanks as always.
Alex
 
Last edited:
Hi,

Thanks for the article.

I've added the token in the link you've provided, but, the "Contents of the httpd.conf file for ..." doesn't reflect the necessary changes after an update. Should it?

In the case where it should, I note also that in the "Available Tokens" list, there is "OPEN_BASEDIR" but not "OPEN_BASEDIR_PATH".

This feature is tested/works?

Regards.
Alex
 
Nm, had a custom template in place that I'd forgotten about. Used |OPEN_BASEDIR_PATH| in the custom template, and all is well. thanks 1000x
 
Back
Top