How do I set up Apache to allow access to certain documents only if a site is either a local site or the user supplies a password and username?
Use the Satisfy directive, in particular the Satisfy Any directive, to require that only one of the access restrictions be met. For example, adding the following configuration to a .htaccess or server configuration file would restrict access to people who either are accessing the site from a host under domain.
Related Questions
- How do I set up Apache to allow access to certain documents only if a site is either a local site or the user supplies a password and username?
- How will a user be able to access the document on a certain subject by any field and be able to search those that have documents?"
- I am a Mac user and students who use PCs cannot download the documents Ive placed on my site. Whats wrong?