-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 hi i'm currently doing some work on a personal site and was considering giving a haskell web tool a spin. i have a fairly complex apache configuration, so i don't want to try to replace it with a native haskell server, but instead use haskell via an interface to apache (i.e. something like wsgi, plack, etc). some searching shows hyena and yesod in various states of development, but i can't figure out if they are appropriate or ready for use. anyone have experiences using haskell behind apache? should i just try out something based on fastcgi? any anecdotes welcome thanks brad -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (FreeBSD) iEYEARECAAYFAkuKoJEACgkQxRg3RkRK91PVJwCdFD4dS47KjJuMcNVZmPkYXKyU ItsAnRoYBE39XtXyXDluh+pHSxzP+Qcd =91Ql -----END PGP SIGNATURE-----
-----BEGIN PGP SIGNED MESSAGE----- Hash: RIPEMD160 Hello Brad, I can't provide an anecdote, but you can run a native Haskell server like Happstack behind Apache and use mod_proxy to pass all requests to a certain vhost and/or path to it. Greets Ertugrul brad clawsie <clawsie@fastmail.fm> wrote:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
hi
i'm currently doing some work on a personal site and was considering giving a haskell web tool a spin. i have a fairly complex apache configuration, so i don't want to try to replace it with a native haskell server, but instead use haskell via an interface to apache (i.e. something like wsgi, plack, etc).
some searching shows hyena and yesod in various states of development, but i can't figure out if they are appropriate or ready for use. anyone have experiences using haskell behind apache? should i just try out something based on fastcgi? any anecdotes welcome
thanks brad -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (FreeBSD)
iEYEARECAAYFAkuKoJEACgkQxRg3RkRK91PVJwCdFD4dS47KjJuMcNVZmPkYXKyU ItsAnRoYBE39XtXyXDluh+pHSxzP+Qcd =91Ql -----END PGP SIGNATURE-----
- -- nightmare = unsafePerformIO (getWrongWife >>= sex) http://blog.ertes.de/ -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.14 (GNU/Linux) iQIcBAEBAwAGBQJLitCzAAoJENVqN/rl3Y0RgYYP/ivOySp2UG1nMTt3eXi6bhFH gdrx6fkc+iHxAoOEHiBLHCnMpxVGd0OmE6AOjZJZACJzK2K+EKQnBB/J7ZhOmDVH ZPcYyc48fZmCgZ67CC31at67TIAVJcpc/ixiiVH3yN1TtwFOuWsk4VtW4tRITXtL 1rgjq0hB8vogmSZCbHDuoRsAteXorBRnm7NfYxLCqT8okQSEESgmiEXGseS9GznC Q1QfFScgSqGEMNGN5USQd9xyvGudTF72VmBl9TAFZcJ3YE14EunY1W9RSCvuFNMn xXf5rvPutJP2Fzo3LQagCBtWS/1PgjBrKMecfXBXi6vTEIhx9u70WaaXWBtENdGf G8UwykQfcw3l/gUs2pJdlNWDRYripEG1HrnXE+BiQSdwiMEFRcK54BPgGtXHFJWN 6e6LaYUJCx0cmNVj8g71IX6qqmygi6QrIPfWJEPbR0VDyjRZKNFf+ZOqSQ7brR1f aJTw3XIvZAJVta6hfVWFnqrl7fm3xB8wIb5Ilvjv5LcSTkWCHy6kthuB8D/2MybQ u9F3CQ2iXY+EXsDDC8lV0kwOLhBDasGd65V6x/PS2nG/7smYH1FUDi58ns2BwUxH YGAMWHOmVeNF7j3uIuZngoqgd8ppFvmoyORyGdLAga2LQV7/nibki54aeoq0tFjN ZS4x1/jh/nYXANajezT2 =zOei -----END PGP SIGNATURE-----
I just run a happstack server on an alternative port, and then use mod_proxy to forward requests to the alternative port. For example, happstack.com is hosted at: http://src.seereason.com:9021/ but apache on that machine has a happstack.com config that looks like: ------------ <VirtualHost *:80> ServerAdmin user@example.org ServerName www.happstack.com ServerAlias happstack.com ErrorLog /var/log/apache2/happstack.com/error.log CustomLog /var/log/apache2/happstack.com/access.log combined ProxyRequests Off <Proxy *> AddDefaultCharset off Order deny,allow Deny from all </Proxy> <Proxy http://127.0.0.1:9021/*> AddDefaultCharset off Order deny,allow Allow from all </Proxy> ProxyPass / http://127.0.0.1:9021/ ProxyPassReverse / http://127.0.0.1:9021/ </VirtualHost> --------- So users can just visit http://happstack.com/ Hopefully I have not done something horribly insecure (easy to do with apache), but I believe this is correct. - jeremy On Sun, Feb 28, 2010 at 10:57 AM, brad clawsie <clawsie@fastmail.fm> wrote:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
hi
i'm currently doing some work on a personal site and was considering giving a haskell web tool a spin. i have a fairly complex apache configuration, so i don't want to try to replace it with a native haskell server, but instead use haskell via an interface to apache (i.e. something like wsgi, plack, etc).
some searching shows hyena and yesod in various states of development, but i can't figure out if they are appropriate or ready for use. anyone have experiences using haskell behind apache? should i just try out something based on fastcgi? any anecdotes welcome
thanks brad -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (FreeBSD)
iEYEARECAAYFAkuKoJEACgkQxRg3RkRK91PVJwCdFD4dS47KjJuMcNVZmPkYXKyU ItsAnRoYBE39XtXyXDluh+pHSxzP+Qcd =91Ql -----END PGP SIGNATURE----- _______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
We run a couple of Happstack processes with FastCGI, and it works like a charm. We even wrote a module for it: http://hackage.haskell.org/package/happstack-fastcgi -chris On 1 mrt 2010, at 20:19, Yitzchak Gale wrote:
brad clawsie wrote:
should i just try out something based on fastcgi?
Obviously it depends on exactly what you want to do.
For a simple very low volume page, even cgi should be just fine. I use it all the time.
Regards, Yitz _______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
participants (5)
-
brad clawsie -
Chris Eidhof -
Ertugrul Soeylemez -
Jeremy Shaw -
Yitzchak Gale