Per-domain configuration

jayw1

Verified User
Joined
Nov 20, 2019
Messages
205
Location
USA
Hi,

I'm using OLS on CentOS 8.
For some domains, I'd like to disable caching and add some custom HTTP headers.
What files shall I modify/create to achieve this? Any idea @smtalk? :)

Thanks!
 
Well, I've found this area. Custom HTTPD Configurations. This is not working, though:

Screenshot from 2019-12-02 15-25-02.png

EDIT: I have this working now, but it adds my code to /usr/local/directadmin/data/users/admin/openlitespeed.conf which states at the top:

"# Auto generated openlitespeed config file by DirectAdmin version 1.59.5
# Modifying this file is not recommended as any changes you make will be
# overwritten when the user makes any changes to their website"

Is this okay?
 
Yes, it's fine, as "Custom HTTPd Configuration" changes are permanent :)
 
Back
Top