httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Richard Hector <rhec...@actrix.gen.nz>
Subject RE: [users@httpd] Authentication for virtual host
Date Tue, 03 Dec 2002 09:43:37 GMT
D'oh - I meant to add some bits to that conf. Here's my next attempt:

If I have something like this:

NameVirtualHost 192.168.1.1

<VirtualHost livesite.domain>
  DocumentRoot /var/www/livesite
  ServerName livesite.domain
</VirtualHost>

<VirtualHost testsite.domain>
  DocumentRoot /var/www/testsite
  ServerName testsite.domain
  <Directory /var/www/livesite>
    AuthDirectivesHere...
  </Directory>
  Alias /images /var/www/livesite/images
  # Note that this Directory section is missing under the other VH
  <Directory /var/www/livesite/images>
    AuthDirectivesHere...
  </Directory>
</VirtualHost>

Will that serve up http://livesite.domain/images/logo.png without
authentication, while http://testsite.domain/images/logo.png requires
it? Even though it's the same file?

Thanks,

Richard



---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message