From parasew at 5uper.net Mon Oct 15 03:30:27 2007 From: parasew at 5uper.net (Matthias Tarasiewicz) Date: Mon, 15 Oct 2007 09:30:27 +0200 Subject: [Instiki] Instiki 0.12 released and website up again Message-ID: <78ccd8360710150030r51c1debp74d1d0fecadc8a15@mail.gmail.com> hi list, we just released a new version of instiki - version 0.12 that is mainly a bugfix release. We recommend all instiki Users to upgrade. In this version, some security holes where fixed - An XSS vulnerability in categories - An XSS vulnerability in - fixes that Instiki allows "dangerous" operations as HTTP GETs as well as some other small improvements. - fixes for instiki running on mongrel - fixes for instiki running on mongrel_cluster Jacques Distler's fixes are included as well. small bugs as well. A note to Mac OSX users: use the Ruby One-Click-Installer for OSX ( http://rubyosx.com ) or make sure you are not running into problems with sqlite (see http://instiki.5uper.net/instiki/show/SQLite+issues+on+OSX) also, the website is up again, on a new host. We are planning on creating a mirror for instiki.org so long downtimes cannot happen again. If somebody can help with such a mirror, please reply. There are still some issues in 0.12 that need to be checked and fixed, so we are basically trying to get 0.13 out soon (any help welcome). There is a known issue when running instiki only on mongrel. If you experience a problem like "Superclass mismatch for class Cookie", please create your wiki via Webrick, then you can switch to mongrel. (we need to take a look at that) For all the people that want to help out or still have instiki patches to commit - please drop me a mail or directly send me the files! regards, matthias -- matthias tarasiewicz http://mutti.jp http://parasew.com From malefactorprophet at gmail.com Tue Oct 16 20:05:44 2007 From: malefactorprophet at gmail.com (malefactorprophet at gmail.com) Date: Tue, 16 Oct 2007 18:05:44 -0600 Subject: [Instiki] "Your edit was blocked by spam filtering" Message-ID: <1192579544.13308.3.camel@Harbinger> New to Instiki. I created an home page and some wiki words. When I went to create the first page that was linked it give me the error in the subject. The page was all text and no special formatting. Does anyone have any ideas? Thanks for the help. From parasew at 5uper.net Tue Oct 23 05:00:57 2007 From: parasew at 5uper.net (Matthias Tarasiewicz) Date: Tue, 23 Oct 2007 11:00:57 +0200 Subject: [Instiki] "Your edit was blocked by spam filtering" In-Reply-To: <1192579544.13308.3.camel@Harbinger> References: <1192579544.13308.3.camel@Harbinger> Message-ID: <78ccd8360710230200t9746318w173f060cc8295145@mail.gmail.com> please see the file config/spam_patterns.txt - that's where the antispam-regexes are located. you can wipe this file empty, because spam-catching should be solved now with the hivelogic javascript enkoder. this file is still existing from earlier days, when instiki had severe wiki spamming problems. regards, matthias On 10/17/07, malefactorprophet at gmail.com wrote: > New to Instiki. I created an home page and some wiki words. When I went > to create the first page that was linked it give me the error in the > subject. > > The page was all text and no special formatting. Does anyone have any > ideas? > > Thanks for the help. > > _______________________________________________ > Instiki-users mailing list > Instiki-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/instiki-users > From charlie.caroff at gmail.com Wed Oct 31 00:58:56 2007 From: charlie.caroff at gmail.com (Charlie Caroff) Date: Tue, 30 Oct 2007 21:58:56 -0700 Subject: [Instiki] mongrel_rails and apache for instiki Message-ID: Hello, Does anyone have a tutorial on how to set up a mongrel_rails cluster with apache for instiki? I have mongrel rails and apache working for two other ROR projects, but the setup for instiki is so far eluding me. Charlie -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/instiki-users/attachments/20071030/6f0b0b47/attachment.html From Andy.Selvig at Goodrich.com Wed Oct 31 08:09:42 2007 From: Andy.Selvig at Goodrich.com (Selvig, Andy) Date: Wed, 31 Oct 2007 07:09:42 -0500 Subject: [Instiki] mongrel_rails and apache for instiki In-Reply-To: References: Message-ID: <3F87CD0E4C05F14F82DE9F704A6F255B039715AA@msp0ex01.goodrich.root.local> I don't know about doing a mongrel cluster, but running instiki on mongrel should be exactly the same as running instiki on any rails app. Apache shouldn't know the difference (assuming you're using apache for reverse proxy or similar). Andy Selvig ________________________________ From: instiki-users-bounces at rubyforge.org [mailto:instiki-users-bounces at rubyforge.org] On Behalf Of Charlie Caroff Sent: Tuesday, October 30, 2007 11:59 PM To: instiki-users at rubyforge.org Subject: [Instiki] mongrel_rails and apache for instiki Hello, Does anyone have a tutorial on how to set up a mongrel_rails cluster with apache for instiki? I have mongrel rails and apache working for two other ROR projects, but the setup for instiki is so far eluding me. Charlie -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/instiki-users/attachments/20071031/7e571fd0/attachment.html From jbonnet at ptinovacao.pt Wed Oct 31 08:34:36 2007 From: jbonnet at ptinovacao.pt (=?ISO-8859-1?Q?Jos=E9_Bonnet?=) Date: Wed, 31 Oct 2007 12:34:36 +0000 Subject: [Instiki] performance Message-ID: Hi! I've been using the wonderful Instiki for two years now, but I'm facing performance problems (rampant rendering times). Any help? jb From charlie.caroff at gmail.com Wed Oct 31 12:21:02 2007 From: charlie.caroff at gmail.com (Charlie Caroff) Date: Wed, 31 Oct 2007 09:21:02 -0700 Subject: [Instiki] mongrel_rails and apache for instiki In-Reply-To: <3F87CD0E4C05F14F82DE9F704A6F255B039715AA@msp0ex01.goodrich.root.local> References: <3F87CD0E4C05F14F82DE9F704A6F255B039715AA@msp0ex01.goodrich.root.local> Message-ID: Well, I tried to use apache as explained on the instiki.org site. I put something like this into a name virtual host container in my apache 2.2./extra/httpd- vhosts.conf file: ServerName wiki.mydomain.com ProxyRequests Off ProxyPass / http://127.0.0.1:2500/ ProxyPassReverse / http://127.0.0.1:2500/ Order deny,allow Allow from all And it works, sort of. Every time instiki wants to do a redirect, it wants to redirect to https, and it fails, because a different host is set up using https. But, when I take the "s" out of http, and reload the page -- all the pages work. I have ssl set up for one of my rails projects on this machine, but not for this one. I have another project set up without ssl on that same machine, and that project works just fine. The two working projects -- one ssl, one not -- are both running on mongrel_rails and apache, which I like. So I decided to set my instiki project up with the same config. Trouble is -- I don't understand what the setup for instiki would be doing. I guess I probably need to set up a Virtual Host container inside my httpd-vhosts.conf file, with the mongrel config, and the reverse proxy config. But when I try to do that, I get the same problem as without the mongrel config -- every request tries to go through https. Is the problem that this reverse proxy config will simply not work on a machine that is running ssl for a different domain? Charlie On 10/31/07, Selvig, Andy wrote: > > I don't know about doing a mongrel cluster, but running instiki on > mongrel should be exactly the same as running instiki on any rails app. > Apache shouldn't know the difference (assuming you're using apache for > reverse proxy or similar). > > > Andy Selvig > > ------------------------------ > *From:* instiki-users-bounces at rubyforge.org [mailto: > instiki-users-bounces at rubyforge.org] *On Behalf Of *Charlie Caroff > *Sent:* Tuesday, October 30, 2007 11:59 PM > *To:* instiki-users at rubyforge.org > *Subject:* [Instiki] mongrel_rails and apache for instiki > > Hello, > > Does anyone have a tutorial on how to set up a mongrel_rails cluster with > apache for instiki? I have mongrel rails and apache working for two other > ROR projects, but the setup for instiki is so far eluding me. > > > Charlie > > _______________________________________________ > Instiki-users mailing list > Instiki-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/instiki-users > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/instiki-users/attachments/20071031/a3544832/attachment-0001.html From Andy.Selvig at goodrich.com Wed Oct 31 12:41:46 2007 From: Andy.Selvig at goodrich.com (Selvig, Andy) Date: Wed, 31 Oct 2007 11:41:46 -0500 Subject: [Instiki] mongrel_rails and apache for instiki In-Reply-To: References: <3F87CD0E4C05F14F82DE9F704A6F255B039715AA@msp0ex01.goodrich.root.local> Message-ID: <3F87CD0E4C05F14F82DE9F704A6F255B03971908@msp0ex01.goodrich.root.local> Not sure about SSL. I have a machine with 3 rails apps, all on mongrel, behind an apache reverse proxy. I'm not using virtual hosts, though. Here's my (Windows) setup, if it helps: In the apache conf file, each rails app (including instiki) gets something like this: ## wiki Alias /wiki "C:\wiki\instiki\public" Options Indexes FollowSymLinks AllowOverride none Order allow,deny Allow from all ProxyPass /wiki/images ! ProxyPass /wiki/stylesheets ! ProxyPass /wiki/javascripts ! ProxyPass /wiki/ http://127.0.0.1:2500/wiki/ ProxyPassReverse /wiki/ http://127.0.0.1:2500/wiki/ # reverse proxy link mapping ProxyHTMLURLMap http://127.0.0.1:2500/ /wiki #ProxyPassReverse / SetOutputFilter proxy-html ProxyHTMLURLMap / /wiki/ ProxyHTMLURLMap /wiki /wiki RequestHeader unset Accept-Encoding Each app has a different port, name, and directory. To run mongrel for the above example: > mongrel_rails start --prefix=/wiki -p 2500 -e production The prefix option for mongrel and the fact that the ProxyPass/ProxyPassReverse directives are a bit different than recommended is to make rails redirects work properly. I could never get it to work right the way you had it set up. Hope this helps. Andy Selvig ________________________________ From: instiki-users-bounces at rubyforge.org [mailto:instiki-users-bounces at rubyforge.org] On Behalf Of Charlie Caroff Sent: Wednesday, October 31, 2007 11:21 AM To: Instiki-users Subject: Re: [Instiki] mongrel_rails and apache for instiki Well, I tried to use apache as explained on the instiki.org site. I put something like this into a name virtual host container in my apache 2.2 ./extra/httpd-vhosts.conf file: ServerName wiki.mydomain.com ProxyRequests Off ProxyPass / http://127.0.0.1:2500/ ProxyPassReverse / http://127.0.0.1:2500/ Order deny,allow Allow from all And it works, sort of. Every time instiki wants to do a redirect, it wants to redirect to https, and it fails, because a different host is set up using https. But, when I take the "s" out of http, and reload the page -- all the pages work. I have ssl set up for one of my rails projects on this machine, but not for this one. I have another project set up without ssl on that same machine, and that project works just fine. The two working projects -- one ssl, one not -- are both running on mongrel_rails and apache, which I like. So I decided to set my instiki project up with the same config. Trouble is -- I don't understand what the setup for instiki would be doing. I guess I probably need to set up a Virtual Host container inside my httpd-vhosts.conf file, with the mongrel config, and the reverse proxy config. But when I try to do that, I get the same problem as without the mongrel config -- every request tries to go through https. Is the problem that this reverse proxy config will simply not work on a machine that is running ssl for a different domain? Charlie On 10/31/07, Selvig, Andy wrote: I don't know about doing a mongrel cluster, but running instiki on mongrel should be exactly the same as running instiki on any rails app. Apache shouldn't know the difference (assuming you're using apache for reverse proxy or similar). Andy Selvig ________________________________ From: instiki-users-bounces at rubyforge.org [mailto:instiki-users-bounces at rubyforge.org] On Behalf Of Charlie Caroff Sent: Tuesday, October 30, 2007 11:59 PM To: instiki-users at rubyforge.org Subject: [Instiki] mongrel_rails and apache for instiki Hello, Does anyone have a tutorial on how to set up a mongrel_rails cluster with apache for instiki? I have mongrel rails and apache working for two other ROR projects, but the setup for instiki is so far eluding me. Charlie _______________________________________________ Instiki-users mailing list Instiki-users at rubyforge.org http://rubyforge.org/mailman/listinfo/instiki-users -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/instiki-users/attachments/20071031/56e23da2/attachment.html From charlie.caroff at gmail.com Wed Oct 31 14:37:52 2007 From: charlie.caroff at gmail.com (Charlie Caroff) Date: Wed, 31 Oct 2007 11:37:52 -0700 Subject: [Instiki] mongrel_rails and apache for instiki In-Reply-To: <3F87CD0E4C05F14F82DE9F704A6F255B03971908@msp0ex01.goodrich.root.local> References: <3F87CD0E4C05F14F82DE9F704A6F255B039715AA@msp0ex01.goodrich.root.local> <3F87CD0E4C05F14F82DE9F704A6F255B03971908@msp0ex01.goodrich.root.local> Message-ID: Ok, I figured out the problem. I have a line in my httpd.conf RequestHeader set X-Forwarded-Proto "https" I set that to RequestHeader set X-Forwarded-Proto "http" in my VirtualHost for my instiki and all became hunky dory. I got the clue from your RequestHeader unset Accept-Encoding line. Also, I do have some minor redirecting issues -- I'm going to tackle those now with your hints. Thanks, Charlie On 10/31/07, Selvig, Andy wrote: > > > Not sure about SSL. I have a machine with 3 rails apps, all on mongrel, behind an apache reverse proxy. I'm not using virtual hosts, though. Here's my (Windows) setup, if it helps: > > In the apache conf file, each rails app (including instiki) gets something like this: > > > ## wiki > Alias /wiki "C:\wiki\instiki\public" > > Options Indexes FollowSymLinks > AllowOverride none > Order allow,deny > Allow from all > > > ProxyPass /wiki/images ! > ProxyPass /wiki/stylesheets ! > ProxyPass /wiki/javascripts ! > > ProxyPass /wiki/ http://127.0.0.1:2500/wiki/ > ProxyPassReverse /wiki/ http://127.0.0.1:2500/wiki/ > > # reverse proxy link mapping > ProxyHTMLURLMap http://127.0.0.1:2500/ /wiki > > #ProxyPassReverse / > SetOutputFilter proxy-html > ProxyHTMLURLMap / /wiki/ > ProxyHTMLURLMap /wiki /wiki > RequestHeader unset Accept-Encoding > > > > Each app has a different port, name, and directory. To run mongrel for the above example: > > > mongrel_rails start --prefix=/wiki -p 2500 -e production > > > The prefix option for mongrel and the fact that the ProxyPass/ProxyPassReverse directives are a bit different than recommended is to make rails redirects work properly. I could never get it to work right the way you had it set up. > > Hope this helps. > > > Andy Selvig > > > ________________________________ From: instiki-users-bounces at rubyforge.org [mailto:instiki-users-bounces at rubyforge.org] On Behalf Of Charlie Caroff > Sent: Wednesday, October 31, 2007 11:21 AM > To: Instiki-users > Subject: Re: [Instiki] mongrel_rails and apache for instiki > > > > Well, I tried to use apache as explained on the instiki.org site. I put something like this into a name virtual host container in my apache 2.2 ./extra/httpd-vhosts.conf file: > ServerName > wiki.mydomain.com > ProxyRequests Off > ProxyPass / http://127.0.0.1:2500/ > ProxyPassReverse / http://127.0.0.1:2500/ > > > Order deny,allow > Allow from all > > And it works, sort of. Every time instiki wants to do a redirect, it wants to redirect to https, and it fails, because a different host is set up using https. But, when I take the "s" out of http, and reload the page -- all the pages work. > > I have ssl set up for one of my rails projects on this machine, but not for this one. I have another project set up without ssl on that same machine, and that project works just fine. > > The two working projects -- one ssl, one not -- are both running on mongrel_rails and apache, which I like. So I decided to set my instiki project up with the same config. > > Trouble is -- I don't understand what the setup for instiki would be doing. I guess I probably need to set up a Virtual Host container inside my httpd-vhosts.conf file, with the mongrel config, and the reverse proxy config. But when I try to do that, I get the same problem as without the mongrel config -- every request tries to go through https. > > Is the problem that this reverse proxy config will simply not work on a machine that is running ssl for a different domain? > > Charlie > > > > > On 10/31/07, Selvig, Andy wrote: > > > > > > I don't know about doing a mongrel cluster, but running instiki on mongrel should be exactly the same as running instiki on any rails app. Apache shouldn't know the difference (assuming you're using apache for reverse proxy or similar). > > > > > > Andy Selvig > > > > > > ________________________________ From: instiki-users-bounces at rubyforge.org [mailto:instiki-users-bounces at rubyforge.org] On Behalf Of Charlie Caroff > > Sent: Tuesday, October 30, 2007 11:59 PM > > To: instiki-users at rubyforge.org > > Subject: [Instiki] mongrel_rails and apache for instiki > > > > > > Hello, > > > > Does anyone have a tutorial on how to set up a mongrel_rails cluster with apache for instiki? I have mongrel rails and apache working for two other ROR projects, but the setup for instiki is so far eluding me. > > > > > > Charlie > > _______________________________________________ > > Instiki-users mailing list > > Instiki-users at rubyforge.org > > http://rubyforge.org/mailman/listinfo/instiki-users > > > > > _______________________________________________ > Instiki-users mailing list > Instiki-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/instiki-users > From parasew at 5uper.net Wed Oct 31 16:17:10 2007 From: parasew at 5uper.net (Matthias Tarasiewicz) Date: Wed, 31 Oct 2007 21:17:10 +0100 Subject: [Instiki] mongrel_rails and apache for instiki In-Reply-To: References: Message-ID: <78ccd8360710311317i4b6d6aa4s5be3db7cbf274106@mail.gmail.com> hello charlie, here is the setup we use for instiki on our servers using mongrel_cluster --- user: mongrel cwd: /var/www/sites/instiki.org/instiki log_file: log/mongrel.log port: "12000" environment: production group: mongrel address: instiki.5uper.net pid_file: tmp/pids/mongrel.pid servers: 1 should be quite self-explaining. you might want to use mod_proxy_balancer (if you are on apache2) see http://blog.innerewut.de/2006/04/21/scaling-rails-with-apache-2-2-mod_proxy_balancer-and-mongrel for a better performance, you might want to try nginx (http://nginx.net/) which is said to have a better performance than apache2 and should compile on most systems without any problems (no dependencies). we are planning to move the main instiki site to nginx soon. regards, matthias On 10/31/07, Charlie Caroff wrote: > Hello, > > Does anyone have a tutorial on how to set up a mongrel_rails cluster with > apache for instiki? I have mongrel rails and apache working for two other > ROR projects, but the setup for instiki is so far eluding me. > > > Charlie > _______________________________________________ > Instiki-users mailing list > Instiki-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/instiki-users > From parasew at 5uper.net Wed Oct 31 16:22:35 2007 From: parasew at 5uper.net (Matthias Tarasiewicz) Date: Wed, 31 Oct 2007 21:22:35 +0100 Subject: [Instiki] performance In-Reply-To: References: Message-ID: <78ccd8360710311322k8f94528y5e6c74454e7aaf4e@mail.gmail.com> jose, can you tell us on which system you are running instiki? are you using apache2 with mongel or webrick? for a good performing solution you might want to * switch to the latest instiki 0.12 version * run a load balancer (nginx with mongrel seems to be the fastest solution) see http://wiki.codemongers.com/NginxRubyonRailsMongrel http://brainspl.at/articles/2006/08/23/nginx-my-new-favorite-front-end-for-mongrel-cluster -matthias On 10/31/07, Jos? Bonnet wrote: > Hi! > I've been using the wonderful Instiki for two years now, but I'm > facing performance problems (rampant rendering times). > > Any help? > > jb > _______________________________________________ > Instiki-users mailing list > Instiki-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/instiki-users > From charlie.caroff at gmail.com Wed Oct 31 19:16:59 2007 From: charlie.caroff at gmail.com (Charlie Caroff) Date: Wed, 31 Oct 2007 16:16:59 -0700 Subject: [Instiki] sanitize.rb error Message-ID: Hi, I set up instiki, I can fill in the values on the initial setup page. Then when I hit "save", I get a page that says "you are being redirected", but I'm not redirected - I have to click the link. Then, I am at the "Creating Home Page" page, and when I enter some text into that page, and click "submit", I get this error in my browser . . . Internal Error An application error occurred while processing your request. . . . and this error in my production.log: SyntaxError (/usr/home/charlie/instiki/lib/sanitize.rb:227: too short multibyte code string: /^( [\x09\x0A\x0D\x20-\x7E] # ASCII | [\xC2-\xDF][\x80-\xBF] # non-overlong 2-byte | \xE0[\xA0-\xBF][\x80-\xBF] # excluding overlongs | [\xE1-\xEC\xEE\xEF][\x80-\xBF]{2} # straight 3-byte | \xED[\x80-\x9F][\x80-\xBF] # excluding surrogates | \xF0[\x90-\xBF][\x80-\xBF]{2} # planes 1-3 | [\xF1-\xF3][\x80-\xBF]{3} # planes 4-15 | \xF4[\x80-\x8F][\x80-\xBF]{2} # plane 16 )*$/): Anyone seen this one before? Charlie