[Resolved] Apache Style configurations -> Directory with AddType not working?

Status
Not open for further replies.
#1
Hi,

I have a LS + CageFS (no control panel) and Config > Virtual Host > Rewrite redirects domain.com to a subfolder in a user's web root: /home/user/www/domain.com

In Config > Virtual Host > General > Apache Style Configurations, AddType is able to switch to PHP 5.5 for domain.com:
AddType application/x-httpd-php55 php

But if I change the Apache Style Configurations to the below it does not change the PHP version (and no errors in debug logs):
<Directory "/home/user/www/domain.com">AddType application/x-httpd-php55 php</Directory>

Or I can use AddType in domain.com/.htaccess but I was hoping to use httpd.conf to skip using .htaccess in user space.

Thanks,
John
 

mistwang

LiteSpeed Staff
#2
Do not use <Directory ...> in native LSWS configuration.
Use AddType directly, if you want to change it under a subdirectory, create a static context.
 
Status
Not open for further replies.
Top