[xdebug-general] Re: Hello all, help my

From: Nathan Bruer <nathanbruer[@]gmail.com>
Date: Sun, 27 Mar 2011 14:26:52 -0500

No problem, but I had a typo, I said: "If your can use php 5.3 you can use
something like:" and i ment: "If your can use apache 2.3 you can use
something like:" any recent php version should work.

On Sun, Mar 27, 2011 at 11:19 AM, Dmitry Vasilyev <d.vasilyev[@]thebat.net>wrote:

> Hello, Nathan.
>
> Thank you very much.
>
> have apache 2.2.17 and php 5.2.6 (freebsd 8.2)
>
>
> Sounds like you'd need to make some .htaccess rules on when the ip is
> from certain places it loads different ini data to php.
>
> If your can use php 5.3 you can use something like:
>
> <IF %{REMOTE_ADDR} =~ /^10\..+/>
> php_value zend_extension <path>/xdebug.so
> </IF>
> <IF %{REMOTE_ADDR} =~ /^192\.168\..+/>
> php_value zend_extension <path>/xdebug.so
> </IF>
> <IF %{REMOTE_ADDR} =~ /^172\.16\..+/>
> php_value zend_extension <path>/xdebug.so
> </IF>
> <IF %{REMOTE_ADDR} =~ /^127\.0\.0\.1+/>
> php_value zend_extension <path>/xdebug.so
> </IF>
>
> That should load xdebug as an extension if they are inside the network, but
> i believe it requires apache2.3 and php to be an apache module. You can
> probably do it another way by loading the mod_setenvif module and using
> SetEnvIfExpr and <IfDefine ....>
> On Sun, Mar 27, 2011 at 2:08 AM, Dmitry Vasilyev <d.vasilyev[@]thebat.net>
> wrote:
> Hello, All.
>
> Objective: At the web server (FreeBSD 8.2) set up virtual hosts 10
> host is an external public network, and 2 for the internal hosts
> network for developers to set XDebug only internal 2 hosts
> Developers, on the external debugging is not needed. Tell me what
> instructions and how to implement it, thanks. PHP 5.3.6 apache 2.2.17
>
> Thank you very much.
>
> --
> Dmitry mailto:d.vasilyev[@]thebat.net
>
>
>
>
>
> *--
> С уважением,
>
> Dmitry mailto:d.vasilyev[@]thebat.net<d.vasilyev[@]thebat.net>
> *
>
Received on Sun Mar 27 2011 - 20:26:54 BST

This archive was generated by hypermail 2.2.0 : Mon Jun 25 2018 - 06:00:04 BST