Skip to main content

RewriteMaps over SSL?

Comments

2 comments

  • cPanelLauren
    This seems as though it would be best suited in the domain's VirtualHost include Modify Apache Virtual Hosts with Include Files | cPanel & WHM Documentation Also, I believe when using HTTP_HOST you specify that the request has to come from HTTP rather than HTTPS. In order for this to work when coming FROM https:// you'd need to use HTTPS_HOST in addition to HTTP_HOST in the rule using [OR] as defined in the mod_rewrite documentation [QUOTE=http://httpd.apache.org/docs/current/mod/mod_rewrite.html#rewritemap] You can also set special flags for CondPattern by appending [flags] as the third argument to the RewriteCond directive, where flags is a comma-separated list of any of the following flags:
    • 'nocase|NC' (no case) This makes the test case-insensitive - differences between 'A-Z' and 'a-z' are ignored, both in the expanded TestString and the CondPattern. This flag is effective only for comparisons between TestString and CondPattern. It has no effect on filesystem and subrequest checks.
    • 'ornext|OR' (or next condition) Use this to combine rule conditions with a local OR instead of the implicit AND. Typical example:
    • RewriteCond "%{REMOTE_HOST}" "^host1" [OR] RewriteCond "%{REMOTE_HOST}" "^host2" [OR] RewriteCond "%{REMOTE_HOST}" "^host3" RewriteRule ...some special stuff for any of these hosts...
      Without this flag you would have to write the condition/rule pair three times.
    • 'novary|NV' (no vary) If a HTTP header is used in the condition, this flag prevents this header from being added to the Vary header of the response. Using this flag might break proper caching of the response if the representation of this response varies on the value of this header. So this flag should be only used if the meaning of the Vary header is well understood.

    0
  • hipwebdesign
    Thank you. I placed my RewriteMap here and it worked: /etc/apache2/conf.d/userdata/ssl/2_4/{USERNAME}/{DOMAIN}.{TLD}
    0

Please sign in to leave a comment.