Stupid Question: Canonical Name Rewrite Location

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

 



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I have a server with multiple hosts names on one IP address. I have
figured out from all the searches I made that I can do rewrite the
other hosts names to "correct" the address to "www".

ServerName www.example.com:80
ServerName a.example.com:80
ServerName b.example.com:80
ServerName c.example.com:80
RewriteEngine on
RewriteCond %{HTTP_HOST} !^www\.example\.com [NC]
RewriteRule ^/(.*) http://www.example.com/$1 [L,R]


My question is all the examples I have seen are within a "Virtual
Host" directive.  I don't see any problem with making it global as I
only have one IP address to worry about.

My stupid question is:

Why "Virtual Host"?  Is there some sort of security issue with
having the "RewriteEngine on" in the master file?

I would appreciate someone giving me an answer either way.


-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGOiulhs7JGk93PT0RAlNfAJ9YvhE3v0xiHCgMX01QMJvfYBgwZgCdEOSJ
PJWo+MRbkPZtHvjW9t8JbkY=
=bxrQ
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
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