I try to run a precompiled apache webserver 1.3.19 from SuSE 7.1 with php4.0.4 as modul included.
But settingup virtual hosts like in SuSE 6.3 (php3) was not possible. The first (and sometimes the second) call of a page were ok but after some pages the apache sends the request to the primary server.
With phpinfo() I was tould the Virtual Directory Support is disabled, but with get_cfg_var ("engine") I get a true (1) on the page hosted on the virtual server.
for the primary host I did the following setup:
DocumentRoot /usr/local/httpd/htdocs
ServerName work
ServerPath //
RewriteEngine On
RewriteRule ^(/.*) /usr/local/httpd/htdocs$1
the config of this (3rd) server (I need php4 for some servers) as follows:
DocumentRoot /usr/local/httpd/htdocs/develop
ServerName develop
ServerPath /develop/
RewriteEngine On
RewriteRule (/develop/.*) /usr/local/httpd/htdocs$1
php_flag engine on
php_flag log_errors on
php_value error_log /var/log/httpd/error_log common
I thing the .htaccess -file is not the solution I would prefer.
Anybody who can help?
Best regards
Thomas