Re: <PHP> sections in httpd.conf?
| From: | Adam Voigt | Date: | Tue, 09 Apr 2002 12:30:51 +0000 |
| Subject: | Re: <PHP> sections in httpd.conf? | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-82358@lists.php.net to get a copy of this message | ||
I think your talking about being able to create virtual hosts with PHP on
the fly, I can't be sure though as I have been lucky enough not have had
to use perl =). But if that is what you would like to do, I would suggest just
using mod_vhost_alias in Apache (http://httpd.apache.org/docs/mod/mod_vhost_alias.html)
which allows you to just create a directory of like "whatever.com" under whatever
web path you specify, and poof, that domain is setup. It's a lot safer to have
Apache do such things then PHP or even Perl, messing with the Apache config
file.
Adam Voigt
adam.voigt@cryptocomm.com
On Tue, 9 Apr 2002 12:19:15 +0100, adam <lists@spamfilter.cc> wrote:
> Hi there,
>
> [Please copy replies off-list.]
>
> Are there any plans to introduce on-the-fly Apache configuration in PHP,
> similar to mod_perl's PerlSections? As an administrator of a Cobalt RaQ
> server (sorry), I discovered PerlSections a couple of years ago; and have
> experimented with, for example, generating VirtualHosts from client records
> in a MySQL database. I would love to be able to do this in PHP.
>
> Apologies if the topic has been covered before, I did a search but only
> turned up stuff slightly related.
>
> Cheers,
> adam beecher
>
>
> --
> PHP Development Mailing List <http://www.php.net/>
> To unsubscribe, visit: http://www.php.net/unsub.php
>