[users@httpd] Best place for .htaccess to work ... multiple sites

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Using Suse 9.3, Apache 2 and hosting two sites currently, let's say X and Y.
Absolute paths and document roots are specified in vhost files as /srv/www/X
and /srv/www/Y.

I have a ~400-line entry .htaccess file that has a lot of setenvifcase's in
it, to block a lot of crawlers, indexers, etc., even before they get to the
sites (if possible).   Is is possible to put this in, say, /srv or /srv/ww
to cover both sites, rather than a copy of the .htaccess file in each
document root?  Do I need to make sure of anything else?  The sites are
already working fine, and .htaccess in document roots are already using
mod_rewrite fine.  TIA.


---------------------------------------------------------------------
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@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux