I have to agree with Peter.
Peter wrote:
I just re-read your original post and I can't for the life of me see why you would need separate vhost mapping to achieve this.
"However I would like to use different mappings for different virtual hosts. For example use the folder 'images_a' for vhost A and the folder 'images_b' for vhost B. And the 'b' folder must not be accessable (visible) for vhost A and vice versa. Now I read in the readme for the 6.1 version: Modified server to allow "mappings.ini" file on a per-virtual host basis.
D:/sambar/ /vhost1/ /images/
D:/sambar/ /vhost2/ /images/
Both hosts are different and separte there is no relationship betweem them unless you are sharing php and perl globally which would be mapped as such.
To answer your question YES the newest version does support separate vhost mapping but there will not be any docs until the beta comes out.
Peter
-----Original Message----- From: <[EMAIL PROTECTED]> To: "sambar List Member" <[EMAIL PROTECTED]> Date: Wed, 9 Jun 2004 23:12:17 +0200 Subject: [sambar] Different mappings for different virtual hosts
Hi Chris,
Thanks for your reply.
From what I have read there seems to be lot of confusion
on how to configure this correctly.
However, it seems that your approach looks quite good.
Can you confirm that the directive 'Mapping File' is officialy supported and can be used in the vhosts.ini?
Another question: As far as I understand this, every setting NOT stated in the the individual vhosts.inis is taken from the (global) mappings.ini. I mean for example that is makes sense to map individual settings in each vhosts.ini, but for the ISAPI it should be configured only once in the mappings.ini and not in every single vhosts.ini. Or in short: What ever is not configured in one of the vhosts.inis is taken from the 'global' mappings.ini, correct?
Thanks and best regards, Marcus
-----------------
The entry in the vhost.ini for the mapping file for your example I believe should be.
[*vhost4] Mapping File = c:/sambar61/config/vhost4.ini
I believe full paths must be used for all entries in the vhost.ini for files that are not using the default settings.
Peter are you using the June 4th build? I had to roll back myself. The June 4th build mail server does not work correctly.
Chris
Peter wrote:
Here you go I should have read this first bfore I posted my last
post.
Chances are you will add a line to the vhost.ini file like below and
add
the file to the config dir. Just guessing though.
[*vhost4]
mapping = vhost4.ini
CGI Run As >>>Default IRC Channel = vhost4 Default User Max Space = 5 Default User Privileges = 1 Documents Directory = H:/vhost4/ Default Page = index.stm index.html index.htm index.php index.asp LDAP Authentication = false Maximum Users = 0 NT Authentication = false Password File >>>Radius Authentication = false SQL AUTH Cache = vhost4 SQL AUTH Query = SELECT grp, name, dir, privs, ftpmax FROM member
WHERE
username = '%N' AND password = '%1' SQL Authentication = true Search Index = vhost4 Security Realm = vhost4 Tmp Directory = tmp Log File = vhost4.log Automatic Log mailto >>>CGI Directory = H:/vhost4/cgi-bin/ Use MD5 crypt = false Use SHA1 crypt = false Use Unix crypt = false User Max Space = 5 VHost Administrator >>>WEB-INF Directory >>>WebBoard DB Cache =
vhost4
WinCGI Directory >>>Messages Directory = messages
------------------------------------------------------- To unsubscribe please go to http://www.sambar.ch/list/
------------------------------------------------------- To unsubscribe please go to http://www.sambar.ch/list/
------------------------------------------------------- To unsubscribe please go to http://www.sambar.ch/list/
