[web-devel] [Yesod] How to write approot to handle http and https.

Katsutoshi Itoh cutsea110 at gmail.com
Tue Feb 1 23:04:03 CET 2011


Hi

I'd like to host application for http and https.
I set up apache and use rewrite rules.

In this case, how do i write approot of Yesod instance?

when client request by http://www.foo.com/a/b/c/,
approot must be http://www.foo.com,
one the other hand, when client request by https://www.foo.com/a/b/c/,
approot must be https://www.foo.com.

how do i write?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/web-devel/attachments/20110202/e35f2091/attachment.htm>


More information about the web-devel mailing list