[unclug] Redirect 80 ---> 443 with Apache?

Joe Morris morris at unc.edu
Fri Feb 20 11:00:51 EST 2004

On Fri, 20 Feb 2004, John W. Sopko Jr. wrote:

| I am using virtual hosts, (if you use virtual hosts you must have a
| virtual host for the primary host or it defaults to the first virtual
| host it finds). I put the mod_rewrite in the virtual host section and it
| works! Now I can sleep this weekend. Guess this makes sense so the
| mod_rewrite is not global, dahhhh!

If you want rules defined in the global section to be carried over into
other virtual host containers you need to eanble it and include
"RewriteOptions inherit".  Otherwise, they will never be seen elsewhere.

mod_rewrite is a very cool module, but can be pure evil debugging issues
with it.  We use it quite a bit in our www.unc.edu config for very
customized situations including handling of /~onyen and /home/onyen.

Joe Morris, Web Systems Manager
Academic Technology and Networks
The University of North Carolina at Chapel Hill

More information about the unclug mailing list