httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ben Laurie <...@gonzo.ben.algroup.co.uk>
Subject Re: [2.0] proposed vhost config rewrite
Date Mon, 09 Jun 1997 19:51:07 GMT
Alexei Kosut wrote:
> 
> On Mon, 9 Jun 1997, Dean Gaudet wrote:
> 
> [...]
> 
> > <PortMatch PP ...>
> >     ...
> >     <IPMatch a.b.c.d ...>
> > 	...
> > 	<HostMatch ... ...>
> > 	    ...
> > 	</HostMatch>
> > 	...
> >     </IPMatch>
> >     ...
> > <PortMatch>
> 
> I like this. I assume this would apply to every directive?

I can't resist posting my crazed "I wonder if I can make this work?" stab at
a config file (created before I saw Dean's stuff - see why I was surprised?):

<Protocol>
 <VirtualHost d.e.f.g>
  PushProtocol HTTP-NG-Compression
 </VirtualHost>
 <VirtualHost h.i.j.k>
  Set useftp=1
 </VirtualHost>
 <VirtualHost l.m.n.o>
  Set useftp=1
 </VirtualHost>
 <If $useftp>
  PushProtocol FTP
 <Else>
  PushProtocol HTTP/1.1
 </If>
</Protocol>

<Request .*>
 <VirtualHost a.b.c.d>
  <Request (GET)|(POST)>
   <URL /cgi-bin/(.*):path:>
    Script /usr/www/scripts/$path
   </URL>
  </Request>
  <Request GET>
   <URL /~([^/]+):user:/(.*):path:>
    <IsUser $user>
     File /usr/$user/public_html/$path
    <else>
     Error 300 "$user is not a user!"
    </IsUser>
   </URL>
   <URL /(.*):path:>
    File /usr/www/docs/$path
   </URL>
  </Request>
 </VirtualHost>
</Request>

<File /usr/www/docs/secret>
 <Either>
  AuthRequired secret
 <Or>
  AuthRequired verysecret
 </Either>
</File>

<Auth secret>
 .
 .
</Auth>


-- 
Ben Laurie                Phone: +44 (181) 994 6435  Email: ben@algroup.co.uk
Freelance Consultant and  Fax:   +44 (181) 994 6472
Technical Director        URL: http://www.algroup.co.uk/Apache-SSL
A.L. Digital Ltd,         Apache Group member (http://www.apache.org)
London, England.          Apache-SSL author

Mime
View raw message