enable php_value in htaccess

1 post / 0 new
#1 Mon, 11/29/2010 - 13:01
photonpf

enable php_value in htaccess

Hi all,

I have a server that use last virtualmin configs for httpd (FastCGI). I have a customer that needs to activate auto_prepend_file and auto_append_file How can I permit the activation using php_value in .htaccess for single domain/vhost?

Thanks

This is the vhost configuration:

<VirtualHost 192.168.1.9:80>
SuexecUserGroup "#5000" "#5000"
ServerName exampledomain.it
ServerAlias www.exampledomain.it
ServerAlias webmail.exampledomain.it
ServerAlias admin.exampledomain.it

DocumentRoot /home/WWW/user1/domains/exampledomain.it/public_html
ErrorLog /var/log/virtualmin/exampledomain.it_error_log
CustomLog /var/log/virtualmin/exampledomain.it_access_log combined
ScriptAlias /cgi-bin/ /home/WWW/user1/domains/exampledomain.it/cgi-bin/
ScriptAlias /awstats/ /home/WWW/user1/domains/exampledomain.it/cgi-bin/
DirectoryIndex index.html index.htm index.php index.php4 index.php5 default.htm default.html home.htm
<Directory /home/WWW/user1/domains/exampledomain.it/public_html>
Options IncludesNOEXEC FollowSymLinks +ExecCGI
allow from all
AllowOverride none
AllowOverride Indexes AuthConfig Limit FileInfo
AddHandler fcgid-script .php
AddHandler fcgid-script .php5
FCGIWrapper /home/WWW/user1/domains/exampledomain.it/fcgi-bin/php5.fcgi .php
FCGIWrapper /home/WWW/user1/domains/exampledomain.it/fcgi-bin/php5.fcgi .php5
</Directory>
<Directory /home/WWW/user1/domains/exampledomain.it/cgi-bin>
allow from all
</Directory>
php_admin_value open_basedir /home/WWW/user1/domains/exampledomain.it:/tmp:/usr/share/phpmyadmin
php_admin_value sendmail_path '/usr/sbin/sendmail -t -fwebsite@ftp.exampledomain.it'
RewriteEngine on
RewriteCond %{HTTP_HOST} =webmail.exampledomain.it
RewriteRule ^(.*) https://exampledomain.it:20000/ [R]
RewriteCond %{HTTP_HOST} =admin.exampledomain.it
RewriteRule ^(.*) https://exampledomain.it:10000/ [R]
RemoveHandler .php
RemoveHandler .php5
IPCCommTimeout 31
<Files awstats.pl>
AuthName "exampledomain.it statistics"
AuthType Basic
AuthUserFile /home/WWW/user1/domains/exampledomain.it/.awstats-htpasswd
require valid-user
</Files>
</VirtualHost>