php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #7191 php_admin_* does not work in VirtualHost
Submitted: 2000-10-13 13:18 UTC Modified: 2000-11-05 22:29 UTC
From: brianlmoon at iname dot com Assigned:
Status: Closed Package: PHP options/info functions
PHP Version: 4.0.3 OS: Linux
Private report: No CVE-ID: None
 [2000-10-13 13:18 UTC] brianlmoon at iname dot com
Create two VitualHosts in Apache:

<VirtualHost 208.170.103.XXX>
ServerName dealmac.com

DocumentRoot /www/virthost/dealmac

php_admin_flag asp_tags Off
php_admin_value include_path /www/virthost/dealmac
php_admin_value auto_prepend_file /www/virthost/dealmac/include/prepend.php

</VirtualHost>

<VirtualHost 208.170.103.XXX>
ServerName dealnews.com

DocumentRoot /www/virthost/dealnews

php_admin_flag asp_tags On
php_admin_value include_path /www/virthost/dealnews
php_admin_value auto_prepend_file /www/virthost/dealnews/include/prepend.php

</VirtualHost>

phpinfo() in both yield:

asp_tags            Off
include_path        /www/virthost/dealmac
auto_prepend_file   /www/virthost/dealmac/include/prepend.php

I see this in the ChangeLog:

- Fixed a problem that allowed users to override admin_value's and admin_flag's (Zeev)

This is not in .htaccess, this is in httpd.conf.


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-11-05 11:19 UTC] stas@php.net
Please check latest version from snaps.php.net and report if it still happens.
 [2000-11-05 22:29 UTC] brianlmoon@php.net
Actually, the code fix in 4.0.3pl1 that fixed the use of admin flags in .htaccess files.  Close it
 
PHP Copyright © 2001-2019 The PHP Group
All rights reserved.
Last updated: Thu Sep 19 04:01:27 2019 UTC