World: r3wp
[!Cheyenne] Discussions about the Cheyenne Web Server
older newer | first last |
Janko 27-Jul-2010 [8607] | Graham: why do you need to edit httpd.cfg for each user? |
Kaj 27-Jul-2010 [8608x3] | Also, you can reload the configuration without restarting Cheyenne |
The Syllable Server manual has an example how to do that on Linux: | |
http://web.syllable.org/Server/README-SyllableServer.txt | |
Graham 27-Jul-2010 [8611x3] | Janko, because each user has their own domain |
Is there an equivalent for kill on Win32 ? | |
I was thnking of using a web socket connection to cause Cheyenne to reload its configuration | |
Janko 27-Jul-2010 [8614] | Graham: domain or maybe subdomain? if subdomain and maybe domain also you could probably put nginx in front of cheyenne and use rewrite rules to do this (depending on the concrete situation) |
Graham 27-Jul-2010 [8615x3] | Domain ... not subdomain |
Maybe that's what I should have done in the first place ... used sub domains :( | |
And that way I wouldn't have all the issues of mismatched ssl certificates | |
Janko 27-Jul-2010 [8618x3] | for subdomains it's simple (and much cheaper than domains, since you don't have to buy each one) .. you use rewrite rules and modify domain to a get parameter that cheyenne can act on |
I think so called wildcard certificate work on all subdomains | |
I mean, you buy one for all subdomains | |
Graham 27-Jul-2010 [8621x4] | I don't buy the domains ..the users do :) |
I don't have that many users .. .so maybe I should start again ... | |
Who do you use to manage your domains? Godaddy? | |
And is it easy to redirect subdomains to other ip addresses? | |
Janko 27-Jul-2010 [8625x2] | if you have nginx in front you can have cheyenne servers reverse proxied to many ip-s yes.. in the same way you can for different subdomains or domains (rule for reverse proxy is very simple) |
I can send you example if you don't find it on net | |
Graham 27-Jul-2010 [8627] | I don't have nginx running ... it's a windows2003 server |
Janko 27-Jul-2010 [8628x2] | you also get easy https support with nginx if you need it some day ... what do you need certs now? |
I don't know how stable it's supposed to be but nginx runs on windows too now.. I use it here for dev | |
Graham 27-Jul-2010 [8630] | So, one certificate will work across all subdomains? |
Janko 27-Jul-2010 [8631x4] | I think, if I understood the "wildcart domains" correctly .. they are more expensive than ordinary |
== "wildcard certificates" | |
Single Domain with Unlimited Subdomains (Wildcard): $199.99 https://www.godaddy.com/ssl/ssl-certificates.aspx | |
http://www.comodo.com/e-commerce/ssl-certificates/wildcard-ssl.php | |
Graham 27-Jul-2010 [8635x2] | expensive |
$800 for a certificate | |
Janko 27-Jul-2010 [8637] | godaddy-s option is cheaper |
Graham 27-Jul-2010 [8638] | yeah ... |
Janko 27-Jul-2010 [8639] | well, it depends on the number of subdomains, if this is worth it |
Graham 27-Jul-2010 [8640] | I might experiment first with a self signed wild card certificate |
Kaj 27-Jul-2010 [8641x2] | Is there an equivalent for kill on Win32 ? |
Probably, but I don't know what it is | |
Graham 27-Jul-2010 [8643] | Cheyenne is supposed to be able to reload the configuration without having to restart so I just need to be able to tell it to do this |
Kaj 27-Jul-2010 [8644x2] | Yes, that's what I advised |
There's some info about it in the changelog. Maybe it says how to do it on Windows | |
Maxim 27-Jul-2010 [8646] | doesn't cheyenne have kill support ? |
Kaj 27-Jul-2010 [8647] | Yes, as explained in the above Syllable Server manual |
Maxim 27-Jul-2010 [8648] | IIRC there are win32 routines. |
sqlab 28-Jul-2010 [8649] | pskill of sysinternals works like kill |
Endo 28-Jul-2010 [8650x2] | also try taskkill http://commandwindows.com/taskkill.htm |
taskkill /? | |
Janko 30-Jul-2010 [8652] | what would be the best way to resize and crop an image after it's uploaded on cheyenne .. using commandline imgmagick, I think oldes was making an magemagick binding once?, are there more light ways, can pure rebol do it? |
Will 30-Jul-2010 [8653] | I use a call/output to imagemagick, not the best way but it runs in less than 200ms which is ok. Oldes way should be faster 8-) |
Oldes 30-Jul-2010 [8654x3] | I use this script: http://box.lebeda.ws/~hmm/rebol/im-min.r |
loaded in on-application-start | |
Then I use code like: with ctx-imagick [ default/filter: 5 default/blur: .95 start try MagickReadImage *wand to-local-file src_file *wand2: CloneMagickWand *wand if h > 800 [ try MagickResizeImage *wand to-integer (w * (600 / h)) 600 default/filter default/blur try MagickSetImageCompressionQuality *wand 70 trg_file: to-local-file rejoin [dir id #"_" sfil %_x600. ext] try MagickWriteImages *wand trg_file ClearMagickWand *wand DestroyMagickWand *wand *wand: *wand2 *wand2: CloneMagickWand *wand ] nw: to-integer (w * (400 / h)) either nw > 780 [ try MagickResizeImage *wand 780 (h * 780 / w) default/filter default/blur ][ try MagickResizeImage *wand nw 400 default/filter default/blur ] try MagickSetImageCompressionQuality *wand 70 trg_file: to-local-file rejoin [dir id #"_" sfil %_x400. ext] try MagickWriteImages *wand trg_file ClearMagickWand *wand DestroyMagickWand *wand *wand: *wand2 *wand2: CloneMagickWand *wand try MagickResizeImage *wand to-integer (w * (200 / h)) 200 default/filter default/blur try MagickSetImageCompressionQuality *wand 70 trg_file: to-local-file rejoin [dir id #"_" sfil %_x200. ext] try MagickWriteImages *wand trg_file ClearMagickWand *wand DestroyMagickWand *wand *wand: *wand2 *wand2: CloneMagickWand *wand try MagickResizeImage *wand to-integer (w * (60 / h)) 60 default/filter default/blur try MagickSetImageCompressionQuality *wand 70 trg_file: to-local-file rejoin [dir id #"_" sfil %_x60. ext] try MagickWriteImages *wand trg_file ClearMagickWand *wand DestroyMagickWand *wand *wand: *wand2 end ] | |
older newer | first last |