From kannan.deepak at gmail.com Mon Aug 9 02:47:03 2010 From: kannan.deepak at gmail.com (deepak kannan) Date: Mon, 9 Aug 2010 12:17:03 +0530 Subject: [Mongrel] http://github.com/mongrel/mongrel has outdated code /fauna/mongrel is more current Message-ID: hi, The link for homepage on: http://rubygems.org/gems/mongrel redirects to http://github.com/fauna/mongrel but we still have a http://github.com/mongrel/mongrel which has outdated code and has more downloads and has more watchers and forks :-) maybe a note on the mongrel repo pointing to the fauna repo would be appropriate cheers, deepak -------------- next part -------------- An HTML attachment was scrubbed... URL: From luislavena at gmail.com Mon Aug 9 13:41:26 2010 From: luislavena at gmail.com (Luis Lavena) Date: Mon, 9 Aug 2010 14:41:26 -0300 Subject: [Mongrel] http://github.com/mongrel/mongrel has outdated code /fauna/mongrel is more current In-Reply-To: References: Message-ID: Please report that to mongrel/mongrel repository owner. Sent from mobile. On 9 Aug 2010 03:55, "deepak kannan" wrote: hi, The link for homepage on: http://rubygems.org/gems/mongrel redirects to http://github.com/fauna/mongrel but we still have a http://github.com/mongrel/mongrel which has outdated code and has more downloads and has more watchers and forks :-) maybe a note on the mongrel repo pointing to the fauna repo would be appropriate cheers, deepak _______________________________________________ Mongrel-users mailing list Mongrel-users at rubyforge.org http://rubyforge.org/mailman/listinfo/mongrel-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From lists at ruby-forum.com Tue Aug 17 09:54:12 2010 From: lists at ruby-forum.com (Amit Tomar) Date: Tue, 17 Aug 2010 15:54:12 +0200 Subject: [Mongrel] file access with mongrel running as windows service In-Reply-To: <81b453920711070648p42a59936u27ec21b978fe16ef@mail.gmail.com> References: <81b453920711070648p42a59936u27ec21b978fe16ef@mail.gmail.com> Message-ID: David Vrensk wrote: > On Nov 7, 2007 3:01 PM, gmail wrote: > >> i have an archive of documents (word, excel, jpeg, png, gif...) >> residing on a network share that is accessed via send_file. >> >> when running mongrel on the command line the files are properly >> delivered. >> with mongrel running as a service they don't. > > > Try running "net use" inside the process to see if the network share is > mounted at all. This sounds like the typical Windows/web problem where > the > operator assumes that everybody sees the same shares that she sees in > her > session. In reality, network shares are mounted per login session. Two > users can be logged in on the the same Windows server and have different > shares available on Z:, which is clever, but also sort of confusing. > What > is even more confusing is that you may be logged on as "user1" and have > something mapped to Z:, but the service running as user1 has nothing on > Z: ? > it needs to create its own mappings. > > Let us know if this helps. > > /David David could you explain it more i think i have same sort of problem what i am doing is. i created a web application using instant rails,i having rails 2.2.2,mysql database,mongrel running as a server, i used mysql database to store the different property of files and i am plcing actual file(phsical file) on samba server.now i run my it as application ,everthing is fine but soon i run my application as windows service i am getting this problem No such file or directory - Z:/streams/Texture.bmp Z: is drive letter here i am trying to upload Texture.bmp file to samba means to Z:/streams any help .......... -- Posted via http://www.ruby-forum.com/. From luislavena at gmail.com Tue Aug 17 10:00:55 2010 From: luislavena at gmail.com (Luis Lavena) Date: Tue, 17 Aug 2010 11:00:55 -0300 Subject: [Mongrel] file access with mongrel running as windows service In-Reply-To: References: <81b453920711070648p42a59936u27ec21b978fe16ef@mail.gmail.com> Message-ID: On Tue, Aug 17, 2010 at 10:54 AM, Amit Tomar wrote: > > David could you explain it more i think i have same sort of problem > what i am doing is. > i created a web application using instant rails,i having rails > 2.2.2,mysql database,mongrel running as a server, > i used mysql database to store the different property of files and i am > plcing actual file(phsical file) on samba server.now i run my it as > application ,everthing is fine but soon i run my application as windows > service ?i am getting this problem > > No such file or directory - Z:/streams/Texture.bmp > Z: is drive letter > here i am trying to upload Texture.bmp file to samba means to Z:/streams > any help .......... > Unless you're running the mongrel service as the same user, the mapped network drives are not available. Either you use the full network path (\\SERVER\PATH) or you run the service as the user that defines the mapped network drives. -- Luis Lavena AREA 17 - Perfection in design is achieved not when there is nothing more to add, but rather when there is nothing more to take away. Antoine de Saint-Exup?ry From lists at ruby-forum.com Tue Aug 17 10:08:41 2010 From: lists at ruby-forum.com (Amit Tomar) Date: Tue, 17 Aug 2010 16:08:41 +0200 Subject: [Mongrel] file access with mongrel running as windows service In-Reply-To: References: <81b453920711070648p42a59936u27ec21b978fe16ef@mail.gmail.com> Message-ID: Luis Lavena wrote: > On Tue, Aug 17, 2010 at 10:54 AM, Amit Tomar > wrote: >> No such file or directory - Z:/streams/Texture.bmp >> Z: is drive letter >> here i am trying to upload Texture.bmp file to samba means to Z:/streams >> any help .......... >> > > Unless you're running the mongrel service as the same user, the mapped > network drives are not available. > > Either you use the full network path (\\SERVER\PATH) or you run the > service as the user that defines the mapped network drives. > -- > Luis Lavena > AREA 17 > - > Perfection in design is achieved not when there is nothing more to add, > but rather when there is nothing more to take away. > Antoine de Saint-Exup? Luis i tried to set full network path but not successed and how do i run the service under the user that defines the mapped network drives. > -- -- Posted via http://www.ruby-forum.com/. From luislavena at gmail.com Tue Aug 17 10:18:55 2010 From: luislavena at gmail.com (Luis Lavena) Date: Tue, 17 Aug 2010 11:18:55 -0300 Subject: [Mongrel] file access with mongrel running as windows service In-Reply-To: References: <81b453920711070648p42a59936u27ec21b978fe16ef@mail.gmail.com> Message-ID: On Tue, Aug 17, 2010 at 11:08 AM, Amit Tomar wrote: > > Luis > i tried to set full network path > but not successed and how do i run the service under the user that > defines the mapped network drives. You will need to access the Services definition and under properties select Run as user. You will need to provide the password too. (all this under administrative tools, things may vary between windows versions). -- Luis Lavena AREA 17 - Perfection in design is achieved not when there is nothing more to add, but rather when there is nothing more to take away. Antoine de Saint-Exup?ry From lists at ruby-forum.com Tue Aug 17 11:08:15 2010 From: lists at ruby-forum.com (Amit Tomar) Date: Tue, 17 Aug 2010 17:08:15 +0200 Subject: [Mongrel] file access with mongrel running as windows service In-Reply-To: References: <81b453920711070648p42a59936u27ec21b978fe16ef@mail.gmail.com> Message-ID: <2bfe461f27774222af1ece5e14d154f8@ruby-forum.com> Luis Lavena wrote: > On Tue, Aug 17, 2010 at 11:08 AM, Amit Tomar > wrote: >> >> Luis >> i tried to set full network path >> but not successed and how do i run the service under the user that >> defines the mapped network drives. > > You will need to access the Services definition and under properties > select Run as user. You will need to provide the password too. (all > this under administrative tools, things may vary between windows > versions). > > -- > Luis Lavena > AREA 17 > - > Perfection in design is achieved not when there is nothing more to add, > but rather when there is nothing more to take away. > Antoine de Saint-Exup? r u saying i ahve to run my service under netwrok service and i would like to konw how i run my service under netwrok service?? -- Posted via http://www.ruby-forum.com/. From luislavena at gmail.com Tue Aug 17 11:19:23 2010 From: luislavena at gmail.com (Luis Lavena) Date: Tue, 17 Aug 2010 12:19:23 -0300 Subject: [Mongrel] file access with mongrel running as windows service In-Reply-To: <2bfe461f27774222af1ece5e14d154f8@ruby-forum.com> References: <81b453920711070648p42a59936u27ec21b978fe16ef@mail.gmail.com> <2bfe461f27774222af1ece5e14d154f8@ruby-forum.com> Message-ID: On Tue, Aug 17, 2010 at 12:08 PM, Amit Tomar wrote: > > r u saying i ahve to run my service under netwrok service and i would > like ?to konw how i run my service under netwrok service?? No, I'm saying that you need to run your service under a user account that defines those mapped network drives. Since network mappings (Z:, W:, etc) are dependent of the user, needs to be run as that particular user. You need to change those settings for that particular service under the "Services" manager in Administrative Tools (control panel). -- Luis Lavena AREA 17 - Perfection in design is achieved not when there is nothing more to add, but rather when there is nothing more to take away. Antoine de Saint-Exup?ry From lists at ruby-forum.com Wed Aug 18 08:47:23 2010 From: lists at ruby-forum.com (Amit Tomar) Date: Wed, 18 Aug 2010 14:47:23 +0200 Subject: [Mongrel] file access with mongrel running as windows service In-Reply-To: References: <81b453920711070648p42a59936u27ec21b978fe16ef@mail.gmail.com> <2bfe461f27774222af1ece5e14d154f8@ruby-forum.com> Message-ID: <0c4661dd47b88fe272f8649217063345@ruby-forum.com> Luis Lavena wrote: > On Tue, Aug 17, 2010 at 12:08 PM, Amit Tomar > wrote: >> >> r u saying i ahve to run my service under netwrok service and i would >> like ?to konw how i run my service under netwrok service?? > > No, I'm saying that you need to run your service under a user account > that defines those mapped network drives. Since network mappings (Z:, > W:, etc) are dependent of the user, needs to be run as that particular > user. > > You need to change those settings for that particular service under > the "Services" manager in Administrative Tools (control panel). > > -- > Luis Lavena > AREA 17 > - > Perfection in design is achieved not when there is nothing more to add, > but rather when there is nothing more to take away. > Antoine de Saint-Exup? LUIS i am not getting error like Permission denied - //Z/:streams/al00_96000.aac what should i do and i am also running service as a particular user -- Posted via http://www.ruby-forum.com/. From luislavena at gmail.com Wed Aug 18 13:02:10 2010 From: luislavena at gmail.com (Luis Lavena) Date: Wed, 18 Aug 2010 14:02:10 -0300 Subject: [Mongrel] file access with mongrel running as windows service In-Reply-To: <0c4661dd47b88fe272f8649217063345@ruby-forum.com> References: <81b453920711070648p42a59936u27ec21b978fe16ef@mail.gmail.com> <2bfe461f27774222af1ece5e14d154f8@ruby-forum.com> <0c4661dd47b88fe272f8649217063345@ruby-forum.com> Message-ID: On Wed, Aug 18, 2010 at 9:47 AM, Amit Tomar wrote: > > LUIS > i am not getting error like > Permission denied - //Z/:streams/al00_96000.aac > what should i do and i am also running service as a particular user I'm having problems understanding your english. Mapped network drives do not start with //, they are normal network letters: C:\Users\Luis>net view Server Name Remark ------------------------------------------------------------------------------- \\KEORE C:\Users\Luis>net view \\KEORE Shared resources at \\KEORE Share name Type Used as Comment ------------------------------------------------------------------------------- Users Disk C:\Users\Luis>net use * \\KEORE\Users Drive Z: is now connected to \\KEORE\Users. The command completed successfully. C:\Users\Luis>irb irb(main):001:0> require 'fileutils' => true irb(main):002:0> FileUtils.touch "Z://foo.txt" Errno::EACCES: Permission denied - Z://foo.txt from C:/Users/Luis/Tools/Ruby/ruby-1.8.7-p302-i386-mingw32/lib/ruby/1.8/fileutils.rb:1034:in `initialize' from C:/Users/Luis/Tools/Ruby/ruby-1.8.7-p302-i386-mingw32/lib/ruby/1.8/fileutils.rb:1034:in `open' from C:/Users/Luis/Tools/Ruby/ruby-1.8.7-p302-i386-mingw32/lib/ruby/1.8/fileutils.rb:1034:in `touch' from C:/Users/Luis/Tools/Ruby/ruby-1.8.7-p302-i386-mingw32/lib/ruby/1.8/fileutils.rb:1028:in `each' from C:/Users/Luis/Tools/Ruby/ruby-1.8.7-p302-i386-mingw32/lib/ruby/1.8/fileutils.rb:1028:in `touch' from (irb):2 It is clear I don't have permission to do that, but: irb(main):003:0> FileUtils.touch "Z://Luis/foo.txt" => ["Z://Luis/foo.txt"] I do. Also: irb(main):004:0> FileUtils.touch "//Z://Luis/bar.txt" Errno::ENOENT: No such file or directory - //Z://Luis/bar.txt from C:/Users/Luis/Tools/Ruby/ruby-1.8.7-p302-i386-mingw32/lib/ruby/1.8/fileutils.rb:1034:in `initialize' from C:/Users/Luis/Tools/Ruby/ruby-1.8.7-p302-i386-mingw32/lib/ruby/1.8/fileutils.rb:1034:in `open' from C:/Users/Luis/Tools/Ruby/ruby-1.8.7-p302-i386-mingw32/lib/ruby/1.8/fileutils.rb:1034:in `touch' from C:/Users/Luis/Tools/Ruby/ruby-1.8.7-p302-i386-mingw32/lib/ruby/1.8/fileutils.rb:1028:in `each' from C:/Users/Luis/Tools/Ruby/ruby-1.8.7-p302-i386-mingw32/lib/ruby/1.8/fileutils.rb:1028:in `touch' from (irb):4 it is clear that // should not prepend the drive letter, but instead: irb(main):005:0> FileUtils.touch "//KEORE/Users/Luis/bar.txt" => ["//KEORE/Users/Luis/bar.txt"] I hope this explains a bit better what I'm talking about. -- Luis Lavena AREA 17 - Perfection in design is achieved not when there is nothing more to add, but rather when there is nothing more to take away. Antoine de Saint-Exup?ry From lists at ruby-forum.com Thu Aug 19 10:34:37 2010 From: lists at ruby-forum.com (Amit Tomar) Date: Thu, 19 Aug 2010 16:34:37 +0200 Subject: [Mongrel] how do i configure service created by mongrel in regedit Message-ID: <4e8578f0652da3422b28bad50214e025@ruby-forum.com> hi, I have created a window service(rals website)using commnad like mongrel_rails service::install -N smar2 -p 3000 -a 192.168.247.49 -e production -c D:/work/Smar/src now a service named smar2 is created but when i try to run it i got an error message like service started and stopped it has nothing to do now i would like to know how do i configure smar2 in regedit and what values should i add in Application and Appparameters . plzzz help me -- Posted via http://www.ruby-forum.com/. From luislavena at gmail.com Thu Aug 19 10:56:43 2010 From: luislavena at gmail.com (Luis Lavena) Date: Thu, 19 Aug 2010 11:56:43 -0300 Subject: [Mongrel] [Ruby Forum] Message from user amit-singh In-Reply-To: References: Message-ID: Hello, please don't send personal messages. Post to the list so everybody benefits from the answer. On Thu, Aug 19, 2010 at 11:36 AM, wrote: > amit-singh sent you the following message: > > ==================================== > have created a window service(rails website)using commnad like > > mongrel_rails service::install -N smar2 -p 3000 -a 192.168.247.49 -e > production -c D:/work/Smar/src > now a service named smar2 is created but when i try to run it i got an > error message like service started and stopped it has nothing to do > now i would like to know how do i configure smar2 in regedit and what > values should i add in Application and Appparameters . > ? ? ? ? ? ? ? ? ? ? ? ? plzzz help me > ==================================== Do your application work when running mongrel_rails start from the console? Have you check the contents of .log like mongrel_service and servicefb.log located in the Ruby bin directory? We need more details to help you out. -- Luis Lavena AREA 17 - Perfection in design is achieved not when there is nothing more to add, but rather when there is nothing more to take away. Antoine de Saint-Exup?ry From lists at ruby-forum.com Fri Aug 20 08:12:03 2010 From: lists at ruby-forum.com (Amit Tomar) Date: Fri, 20 Aug 2010 14:12:03 +0200 Subject: [Mongrel] file access with mongrel running as windows service In-Reply-To: References: <81b453920711070648p42a59936u27ec21b978fe16ef@mail.gmail.com> <2bfe461f27774222af1ece5e14d154f8@ruby-forum.com> <0c4661dd47b88fe272f8649217063345@ruby-forum.com> Message-ID: <50c07331032d650d4f32551433891c9c@ruby-forum.com> Thanks my friend... i am able to figure out my problem ... -- Posted via http://www.ruby-forum.com/. From lists at ruby-forum.com Fri Aug 20 09:31:10 2010 From: lists at ruby-forum.com (Amit Tomar) Date: Fri, 20 Aug 2010 15:31:10 +0200 Subject: [Mongrel] file access with mongrel running as windows service In-Reply-To: References: <81b453920711070648p42a59936u27ec21b978fe16ef@mail.gmail.com> <2bfe461f27774222af1ece5e14d154f8@ruby-forum.com> <0c4661dd47b88fe272f8649217063345@ruby-forum.com> Message-ID: <4ec00fbcb55c3eca075b17ca35928346@ruby-forum.com> Luis I tried to upload a file of size 324mb but something strange happened i'm able to upload the file but still i'm getting error Invalid argument - //192.122.227.53/Smar/streams2/D1_monsters_3_720x480_422i_SP_5Mbps_30fps_657frames.yuv but when i checked the location(//192.122.227.53/Smar/streams2) file was there what could be the reason ?? -- Posted via http://www.ruby-forum.com/. From luislavena at gmail.com Fri Aug 20 10:16:37 2010 From: luislavena at gmail.com (Luis Lavena) Date: Fri, 20 Aug 2010 11:16:37 -0300 Subject: [Mongrel] file access with mongrel running as windows service In-Reply-To: <4ec00fbcb55c3eca075b17ca35928346@ruby-forum.com> References: <81b453920711070648p42a59936u27ec21b978fe16ef@mail.gmail.com> <2bfe461f27774222af1ece5e14d154f8@ruby-forum.com> <0c4661dd47b88fe272f8649217063345@ruby-forum.com> <4ec00fbcb55c3eca075b17ca35928346@ruby-forum.com> Message-ID: On Fri, Aug 20, 2010 at 10:31 AM, Amit Tomar wrote: > Luis I tried to upload a file of size 324mb but something strange > happened > i'm able to upload the file but still i'm getting error > ?Invalid argument - > //192.122.227.53/Smar/streams2/D1_monsters_3_720x480_422i_SP_5Mbps_30fps_657frames.yuv > but when i checked the location(//192.122.227.53/Smar/streams2) file was > there > what could be the reason ?? I have no idea where are you receiving the 'invalid argument' error. It is extrematelly important than when you report an error, provide enough details and precision about it, more precisely, the full error messages and backtraces. We can't replicate or provide you help if you skim it and provide vague information. Help us help you. -- Luis Lavena AREA 17 - Perfection in design is achieved not when there is nothing more to add, but rather when there is nothing more to take away. Antoine de Saint-Exup?ry From lists at ruby-forum.com Fri Aug 27 09:46:10 2010 From: lists at ruby-forum.com (Amit Tomar) Date: Fri, 27 Aug 2010 15:46:10 +0200 Subject: [Mongrel] file access with mongrel running as windows service In-Reply-To: References: <81b453920711070648p42a59936u27ec21b978fe16ef@mail.gmail.com> <2bfe461f27774222af1ece5e14d154f8@ruby-forum.com> <0c4661dd47b88fe272f8649217063345@ruby-forum.com> <4ec00fbcb55c3eca075b17ca35928346@ruby-forum.com> Message-ID: Luis Lavena wrote: > On Fri, Aug 20, 2010 at 10:31 AM, Amit Tomar > wrote: >> Luis I tried to upload a file of size 324mb but something strange >> happened >> i'm able to upload the file but still i'm getting error >> ?Invalid argument - >> //192.122.227.53/Smar/streams2/D1_monsters_3_720x480_422i_SP_5Mbps_30fps_657frames.yuv >> but when i checked the location(//192.122.227.53/Smar/streams2) file was >> there >> what could be the reason ?? > > I have no idea where are you receiving the 'invalid argument' error. > > It is extrematelly important than when you report an error, provide > enough details and precision about it, more precisely, the full error > messages and backtraces. > > We can't replicate or provide you help if you skim it and provide > vague information. > > Help us help you. > -- > Luis Lavena > AREA 17 > - > Perfection in design is achieved not when there is nothing more to add, > but rather when there is nothing more to take away. > Antoine de Saint-Exup? i don't know how to ask this question because am new to rails. but i want to know to is which part of code sumit_tag will take you means after execution of sumit_tag where control of programme goes?? -- Posted via http://www.ruby-forum.com/. From lists at ruby-forum.com Fri Aug 27 13:40:16 2010 From: lists at ruby-forum.com (Govind Naroji) Date: Fri, 27 Aug 2010 19:40:16 +0200 Subject: [Mongrel] Mongrel Cluster fails to start Message-ID: <88ae17b21198399346e1db6d8e124459@ruby-forum.com> Mongrel Cluster fails to start Hello, I have an issue with Mongrel cluster start-up, when I start the cluster I am getting the following error: /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in 'gem_original_require': no such file to load -- /home/admin/test-project/test-app/config/environment (LoadError) [I have attached the log file along with this post] I am using this command to start the server (as root): cd /config/environment mongrel_rails cluster::start For mongrel set-up I did the following (as root): 1. sudo gem install mongrel --include-dependencies 2. sudo gem install mongrel_cluster --include-dependencies 3. create mongrel user useradd -r mongrel 4. groupadd www-data 5. chown -R mongrel:www-data 6. mongrel_rails cluster::configure -e production -p 3007 -N 2 -c -a 127.0.0.1 --user mongrel --group www-data I have checked the permissions on the files in the config folder and they are as follows: -------------------------------------------------------------------- -rw-r--r-- 1 mongrel www-data 2795 Aug 10 03:24 boot.rb -rw-r--r-- 1 mongrel www-data 255 Aug 24 13:01 database.yml -rw-r--r-- 1 mongrel www-data 319 Aug 24 12:51 database.yml.bak -rw-r--r-- 1 mongrel www-data 2086 Aug 27 11:22 environment.rb drwxr-xr-x 2 mongrel www-data 4096 Aug 27 08:46 environments drwxr-xr-x 2 mongrel www-data 4096 Aug 10 03:24 initializers drwxr-xr-x 2 mongrel www-data 4096 Aug 10 03:24 locales -rw-r--r-- 1 mongrel www-data 278 Aug 27 12:09 mongrel_cluster.yml -rw-r--r-- 1 mongrel www-data 4037 Aug 22 09:49 routes.rb -------------------------------------------------------------------- Other details: 1) I have attached the mongrel_cluster.yml file along with this post. 2) OS - CentOS release 5.4 3) Ruby - v 1.8.7 4) Gem - v 1.3.7 5) Rails - v 2.3.8 6) Mongrel - v 1.1.5 7) Mongrel Cluster - v 1.0.5 "mongrel_rails start" works fine. Any help would be appreciated. Thank you. Govind Naroji Attachments: http://www.ruby-forum.com/attachment/4973/mongrel_cluster_issue_log.log -- Posted via http://www.ruby-forum.com/. From lists at ruby-forum.com Fri Aug 27 13:42:26 2010 From: lists at ruby-forum.com (Govind Naroji) Date: Fri, 27 Aug 2010 19:42:26 +0200 Subject: [Mongrel] Mongrel Cluster fails to start In-Reply-To: <88ae17b21198399346e1db6d8e124459@ruby-forum.com> References: <88ae17b21198399346e1db6d8e124459@ruby-forum.com> Message-ID: <020b1b864b15c19ee699580df50b5772@ruby-forum.com> Attaching mongrel_cluster.yml - Govind Naroji Attachments: http://www.ruby-forum.com/attachment/4974/mongrel_cluster.yml -- Posted via http://www.ruby-forum.com/. From lists at ruby-forum.com Sun Aug 29 09:15:48 2010 From: lists at ruby-forum.com (Govind Naroji) Date: Sun, 29 Aug 2010 15:15:48 +0200 Subject: [Mongrel] Mongrel Cluster fails to start In-Reply-To: <88ae17b21198399346e1db6d8e124459@ruby-forum.com> References: <88ae17b21198399346e1db6d8e124459@ruby-forum.com> Message-ID: <42f0797b804be751035fc975d04e5697@ruby-forum.com> Correction: I am using this command to start the server (as root): cd mongrel_rails cluster::start -- Posted via http://www.ruby-forum.com/. From lists at ruby-forum.com Mon Aug 30 04:19:46 2010 From: lists at ruby-forum.com (Paddy Rap) Date: Mon, 30 Aug 2010 10:19:46 +0200 Subject: [Mongrel] .htaccess rewrite rule to mongrel rewrite rule Message-ID: Hi All, The application is running on mongrel cluster and its used to serve different contents for each domain and I had implemented the cache per domain level using the below plugin: http://github.com/yeah/page_cache_fu Now the problem is, since the mongrel bypasses the .htaccess configuration and I am new to mongrel rewrite rule. So it would be of great help, if you can let me know the right rewrite rule for mongrel for the below .htaccess RewriteMap uri_escape int:escape RewriteEngine On RewriteCond %{REQUEST_METHOD} GET [NC] RewriteCond %{DOCUMENT_ROOT}/cache/%{HTTP_HOST}%{REQUEST_URI}%{QUERY_STRING}.html -f RewriteRule ^([^.]+)$ cache/%{HTTP_HOST}/$1${uri_escape:%{QUERY_STRING}}.html [L] RewriteCond %{REQUEST_METHOD} GET [NC] RewriteCond %{DOCUMENT_ROOT}/cache/%{HTTP_HOST}/index.html -f RewriteRule ^$ cache/%{HTTP_HOST}/index.html Please do let me know. Thank you for your helps! Paddy -- Posted via http://www.ruby-forum.com/.