apache2_ssl_debian
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | Next revisionBoth sides next revision | ||
apache2_ssl_debian [2012/08/01 04:46] – memeruiz | apache2_ssl_debian [2012/08/01 04:56] – memeruiz | ||
---|---|---|---|
Line 44: | Line 44: | ||
# | # | ||
#Listen 80 | #Listen 80 | ||
+ | |||
+ | * To have virtual hosts in ssl create a map file / | ||
+ | |||
+ | www.example.com | ||
+ | wiki.example.com | ||
+ | |||
+ | * To the file / | ||
+ | |||
+ | ### Mass SSL Vhosts ### | ||
+ | RewriteEngine on | ||
+ | | ||
+ | # | ||
+ | # the available virtual hosts with their corresponding | ||
+ | # | ||
+ | RewriteMap | ||
+ | RewriteMap | ||
+ | | ||
+ | # 1. make sure we don't map for common locations | ||
+ | RewriteCond | ||
+ | RewriteCond | ||
+ | | ||
+ | # 2. make sure we have a Host header | ||
+ | RewriteCond | ||
+ | | ||
+ | # 3. lowercase the hostname | ||
+ | RewriteCond | ||
+ | # | ||
+ | # 4. lookup this hostname in vhost.map and | ||
+ | # remember it only when it is a path | ||
+ | # (and not " | ||
+ | RewriteCond | ||
+ | | ||
+ | # 5. finally we can map the URL to its docroot location | ||
+ | # and remember the virtual host for logging puposes | ||
+ | RewriteRule | ||
apache2_ssl_debian.txt · Last modified: 2021/02/01 05:55 by 127.0.0.1