Re: AW: [PHP-DEV] Re: PDM Meeting Notes
| From: | Rasmus Lerdorf | Date: | Fri, 25 Nov 2005 15:46:15 +0000 |
| Subject: | Re: AW: [PHP-DEV] Re: PDM Meeting Notes | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-20413@lists.php.net to get a copy of this message | ||
Matthias Pigulla wrote:
That's not true at all. I run multiple Apaches all the time behind a single IP. In my main port 80 server I simply have config lines like this: <VirtualHost *> ServerName example1.com ... ProxyPass / http://example1.com:81/ </VirtualHost> <VirtualHost *> ServerName example2.com ... ProxyPass / http://example2.com:82/ </VirtualHost> That's just using Apache's mod_proxy. You can do the same thing with Squid in reverse proxy mode and you can get really fancy with redirect scripts where you keep all your vhosts in a database and cache them and control the redirection that way. -RasmusBecause of bugs in the safe_mode implementation (forgetting some checks?) or conceptual problems?Well, safe_mode could prevent someone of doing a shell_exec("cat /home/otheruser/web/config.php"); open_basedir can't do the same thing.We were in a continual losing race against that sort of thing though. In pretty much every single release there have been ways to do this that got around safe-mode.I have always maintained that shared hosts should be running per-security context Apache instances as different users.The problem with that is that it makes name-based virtual hosts pretty pointless because each apache instance will at least need an ip address on its own.