I have several virtual hosts set up. with their own documents directory. http://www.teleamerica.net/ is the top Level. Below is a partial extract of one of my VHOSTS.ini files
They are all set up with their own sub directory under documents. I use the following vhosts file entries. This appears to work. I just have to remember to treat each sub-directory as the root for each domain. it's dirty and quick but it works. # VHOSTS.INI # Virtual hosts definition file. # The server must be restarted after changes are made to this file. # # [www.angelworley.com] Documents Directory = /docs/david/ Home Page = home.htm Default Page = index.htm Log File = angel.log CGI Directory = /cgi-bin/ WinCGI Directory = /cgi-win/ # [www.king-radio.com] Documents Directory = /docs/king-radiocom/ Home Page = home.htm Default Page = index.htm Log File = king-radiocom.log CGI Directory = /cgi-bin/ WinCGI Directory = /cgi-win/ # [www.kingradio.org] Documents Directory = /docs/kingradioorg/ Home Page = home.htm Default Page = index.htm Log File = kingradioorg.log CGI Directory = /cgi-bin/ WinCGI Directory = /cgi-win/ # ----------------------------------------------------------- -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of [EMAIL PROTECTED] Sent: Monday, June 07, 2004 2:53 PM To: sambar List Member Subject: [sambar] Different mappings for different virtual hosts I am trying to assign a drive (or folder on a drive) specificly for each virtual host. ----------------- >Are you just trying to set up virtual hosts with different document >directories. or are you wanting to assign a drive specific to each virtual >host? > > >-----Original Message----- >From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf >Of [EMAIL PROTECTED] >Sent: Sunday, June 06, 2004 5:18 PM >To: sambar List Member >Subject: [sambar] Different mappings for different virtual hosts > > >Hi, > >I have Sambar 6.0.1 running fine and stable on an intranet LAN. > >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. > >Unfortunately I could not find in the documentation how this is done. >I read somewhere that each vhost now can have it's own mapping.ini. >1. How is this configured? >2. Is it neccessary to repeat the ISAPI (and other global) settings in >each of those individual ini's? >3. Where do I tell the server that I have now vhost A .ini and vhost B.ini? > >Thanks to all for your help! > >Best regards, >Marcus > >------------------------------------------------------- >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/ ------------------------------------------------------- To unsubscribe please go to http://www.sambar.ch/list/
