"Emiliano [EMAIL PROTECTED]" wrote:
> > "prefix=Left($q,Length(prefix))" from the get host query in the
> > midgard module - same results however. As you can see, I changed
> > one
> > of my names to match the prefix - I didn't really think it would be
> > that.
>
> The prefix is _not_ part of the servername. If your servername
> is 'zeno.demon.co.uk' and your prefix is '/admin' then Midgard
> will only match against requests for http://zeno.demon.co.uk/admin/
> for that entry. Setting the prefix to '' in the database would
> have achieved the same effect. I'll presume you have changed the
> module back to the way it was.
>
Thanks for the reply. I sort of knew this - I was just puzzled by the
prefix=Left($q,Length(prefix) line in the midgard module get host
query.
I've set things back to port based virtual hosts, but I get the
problem. It's all set up as in the install help files.
Here are the error messages I get
[Fri Mar 3 22:00:51 2000] [notice] [client 192.168.0.1] Midgard: host
record for zeno.demon.co.uk:8101 not found
[Fri Mar 3 22:00:51 2000] [error] [client 192.168.0.1] File does not
exist: /www/htdocs/admin
The first one (3 times) when trying http://zeno.demon.co.uk:8101 in my
browser. The second when trying http://zeno.demon.co.uk:8101/admin
Here is my hosts table:
| id | name | root | style | info | owner | port |
online | prefix |
+----+-----------------------+------+-------+------+-------+------+--------+----------+
| 1 | zeno.lake.demon.co.uk | 1 | 1 | auth | 0 | 8101
| 1 | /admin |
| 2 | zeno.lake.demon.co.uk | 34 | 2 | | 1 | 8099
| 1 | /example |
Here are the relevent parts of my httpd.conf
Listen 80
Listen 8099
Listen 8101
LoadModule php3_module libexec/libphp3.so
LoadModule midgard_module libexec/mod_midgard.so
AddModule mod_php3.c
DocumentRoot "/www/htdocs"
<Directory "/www/htdocs">
AddType application/x-httpd-php3 .php3 .phtml .php
NameVirtualHost 192.168.0.2
NameVirtualHost 192.168.0.2:8099
NameVirtualHost 192.168.0.2:8101
MidgardEngine on
MidgardRootfile /www/midgard/midgard-root.php3
<VirtualHost 192.168.0.2:8101>
ServerName zeno.demon.co.uk
Port 8101
</VirtualHost>
<VirtualHost 192.168.0.2>
ServerName zeno.demon.co.uk
DocumentRoot /www/htdocs
AddType application/x-httpd-php3 .phtml .php3 .php
DirectoryIndex index.html index.shtml index.php3 index.phtml index.php
</VirtualHost>
<VirtualHost 192.168.0.2:8099>
ServerName zeno.demon.co.uk
Port 8099
</VirtualHost>
thanks,
Dave
--
This is The Midgard Project's mailing list. For more information,
please visit the project's web site at http://www.midgard-project.org
To unsubscribe the list, send an empty email message to address
[EMAIL PROTECTED]