httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David Jackson" <david.j.jack...@pickledbeans.com>
Subject Re: Apache newbie looking for 'virtual directory' (was an IIS user)
Date Mon, 20 May 2002 20:46:30 GMT
Joshua --
Thanks for the clarification.

David

> 
> On Mon, 20 May 2002, David Jackson wrote:
> 
>> Are you looking for VirtaulHost i.e.:
> 
> No, he's not.  What IIS calls "virtual directories" are the equivalent
> of an Apache Alias directive.  See more info below.
> 
>> > I will have to serve students public_html directories set under
>> >
>>
//FileServer/Student/ClassA.B/StudentRegistrationNumber(StudentName)/public_
>> > html
>> >
>> > I was using virtual directory feature in IIS 4.0/5.0 before to serve
>> > the public_html as
>> > 192.168.0.1/StudentName
> 
> Example:
> Alias /StudentName
>
//FileServer/Student/ClassA.B/StudentRegistrationNumber(StudentName)/public_html
> 
> You will probably also want something like
> <Directory //FileServer/Student/>
> Options None
> Order allow,deny
> allow from all
> </Directory>
> 
> This simply changes the configuration of that directory.
> 
> Also note that the user that is running the apache service must have
> rights to access the relevant network share.
> 
>> > I find the several directive (Alias, Directory, and Redirect) in the
>> > ./manual/ but doesnt seem to get it, on which one to use.
> 
> There is some explanation here:
> http://httpd.apache.org/docs-2.0/urlmapping.html
> 
>> > Is it possible to use <directory> with regex to 'automate' this
>> > 'virtual directory' so everytime a request to
>> > 192.168.0.1/StudentName always points to the corresponding Student's
>> > public_html?
> 
> Yes it is possible to use a regex with AliasMatch and <DirectoryMatch>,
> but you'd need to be much more specific about your requirements.  For
> example, how are you going to tell the server what is a StudentName and
> what is a directory that should be served out of the DocumentRoot.
> 
>> > Where should i put these? httpd.conf or access.conf?
> 
> Everything should go in httpd.conf.
> 
> Joshua.
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org


-- 



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message