now the cache files through http and https drop on the same folder by following configuration, anyone know how to separate them to different places? thanks in advance
Alias / "/opt/dispatcher/cache/"
<Directory "/opt/dispatcher/cache/">
<IfModule disp_apache2.c>
# enable dispatcher for ALL request. if this is too restrictive,
# move it to another location
SetHandler dispatcher-handler
</IfModule>
Options FollowSymLinks
AllowOverride None
</Directory>
Solved! Go to Solution.
Views
Replies
Total Likes
Jacky,
first of all please allow me the question, why you want to store the very same content on different places depeding on the type of protocol requesting it? Delivering the very same content via http and https makes sometimes sense, but caching it in 2 different locations definitly doesn't make sense then.
Regarding your question: create 2 virtual hosts ("mydomain" for http and "mydomain-https" for https) and and inside the "mydomain-https"-vhost rewrite the host header to a different name, e.g. "https"; then you can create multiple farms: a farm with /virtualhosts {"mydomain"} and another farm with /virtualhosts {"mydomain-https"}. Of course the docroots of the corresponding domains and farms must match.
Jörg
Views
Replies
Total Likes
May be this will help http://www.wemblog.com/2012/01/how-to-make-http-and-https-version-of.html
Yogesh
Views
Replies
Total Likes
Jacky,
first of all please allow me the question, why you want to store the very same content on different places depeding on the type of protocol requesting it? Delivering the very same content via http and https makes sometimes sense, but caching it in 2 different locations definitly doesn't make sense then.
Regarding your question: create 2 virtual hosts ("mydomain" for http and "mydomain-https" for https) and and inside the "mydomain-https"-vhost rewrite the host header to a different name, e.g. "https"; then you can create multiple farms: a farm with /virtualhosts {"mydomain"} and another farm with /virtualhosts {"mydomain-https"}. Of course the docroots of the corresponding domains and farms must match.
Jörg
Views
Replies
Total Likes
thank you Jörg, also thanks Yogesh's help, somehow I have to add following setting what the blog mentioned or dispatcher cannot find corresponding farm, but it works on my colleague's box.
#this is responsible for forwarding SSL request to another farm
<Location />
RequestHeader set Host "ssl.localhost.com"
</Location>
Views
Replies
Total Likes
Views
Likes
Replies