search for: qsa

Displaying 20 results from an estimated 156 matches for "qsa".

Did you mean: isa
2006 Jul 20
5
Apache 2.2, Mongrel and #caches_page
...n my Rails app, and am now looking at making Apache serve the cached files instead of calling into Rails. I know Mongrel is able to serve cached files if it finds them, but I''d like Apache to do it. Looking at .htaccess, there is this section: RewriteEngine On RewriteRule ^$ index.html [QSA] RewriteRule ^([^.]+)$ $1.html [QSA] RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^(.*)$ dispatch.fcgi [QSA,L] The last line MUST change because I am proxying. What should it change to is what I''m wondering. I tried: RewriteRule ^(.*)$ balancer://smrty/ [QSA,L] but that simply gene...
2006 Oct 03
4
Apache Re-Write and Directories
...e served by the static resource via Apache, not by Mongrel? Rewrite rules: RewriteCond %{DOCUMENT_ROOT}/maintenance.html -f RewriteCond %{SCRIPT_FILENAME} !maintenance.html RewriteRule ^.*$ /maintenance.html [L] # Rewrite index to check for static index.html RewriteRule ^/$ /index.html [QSA] # Rewrite to check for Rails cached pages with .html extentions RewriteRule ^([^.]+)$ $1.html [QSA] # All dynamic requests get sent to the cluster RewriteCond %{DOCUMENT_ROOT}/%{REQUEST_FILENAME} !-f RewriteRule ^/(.*)$ balancer://cluster%{REQUEST_URI} [P,QSA,L] Thanks!!! Hunter
2009 Jun 17
2
Using a cgi perl program?
...%{REQUEST_URI} ^/notrails.* # RewriteRule .* - [L] # Redirect all requests not available on the filesystem to Rails # By default the cgi dispatcher is used which is very slow # # For better performance replace the dispatcher with the fastcgi one # # Example: # RewriteRule ^(.*)$ dispatch.cgi [QSA,L] RewriteEngine On # If your Rails application is accessed via an Alias directive, # then you MUST also set the RewriteBase in this htaccess file. # # Example: # Alias /myrailsapp /path/to/myrailsapp/public # RewriteBase /myrailsapp RewriteRule ^$ index.html [QSA] RewriteRule ^([^.]+)$ $1.ht...
2006 Jul 27
3
[somewhat OT] Apache config for Rails + ColdFusion + PHP
Our group has several web apps developed in ColdFusion, PHP, and Rails. The ColdFusion and PHP apps are on an older server, and the Rails apps on a new server. Ideally, we''d like them all to share the same server. Our current setup for the Rails server is Apache2.2 with mod_proxy_balancer and mongrel_cluster. We''d like to have specific directories be processed and served by
2013 Apr 25
10
[PATCH v4 0/3] Btrfs: quota rescan for 3.10
The kernel side for rescan, which is needed if you want to enable qgroup tracking on a non-empty volume. The first patch splits btrfs_qgroup_account_ref into readable ans reusable units. The second patch adds the rescan implementation (refer to its commit message for a description of the algorithm). The third patch starts an automatic rescan when qgroups are enabled. It is only separated to
2006 Aug 13
3
Rewrite problem or routing issue?
...ond %{REQUEST_URI} ^/notrails.* # RewriteRule .* - [L] # Redirect all requests not available on the filesystem to Rails # By default the cgi dispatcher is used which is very slow # # For better performance replace the dispatcher with the fastcgi one # # Example: RewriteRule ^(.*)$ dispatch.fcgi [QSA,L] RewriteEngine On # If your Rails application is accessed via an Alias directive, # then you MUST also set the RewriteBase in this htaccess file. # # Example: # Alias /myrailsapp /path/to/myrailsapp/public # RewriteBase /myrailsapp RewriteRule ^$ index.html [QSA] RewriteRule ^([^.]+)$ $1.ht...
2006 Aug 13
1
Rewrite problem?
...ond %{REQUEST_URI} ^/notrails.* # RewriteRule .* - [L] # Redirect all requests not available on the filesystem to Rails # By default the cgi dispatcher is used which is very slow # # For better performance replace the dispatcher with the fastcgi one # # Example: RewriteRule ^(.*)$ dispatch.fcgi [QSA,L] RewriteEngine On # If your Rails application is accessed via an Alias directive, # then you MUST also set the RewriteBase in this htaccess file. # # Example: # Alias /myrailsapp /path/to/myrailsapp/public # RewriteBase /myrailsapp RewriteRule ^$ index.html [QSA] RewriteRule ^([^.]+)$ $1.ht...
2008 Jun 16
3
Apache rewrites with mongrel
...ewriteLog /var/log/apache2/rails-rewrite.log And last not lease my .htaccess in public AddHandler fastcgi-script .fcgi AddHandler cgi-script .cgi Options +FollowSymLinks +ExecCGI AddDefaultCharset UTF-8 RewriteEngine On RewriteRule ^01,([0-9]*).html$ balancer://mongrel_cluster/shop/event/$1 [P,QSA,L] RewriteRule ^01,([a-zA-Z0-9]*),([0-9]+).html$ balancer://mongrel_cluster/shop/search/$2?startnumber=$1 [P,L] RewriteRule ^$ index.html [QSA] RewriteRule ^([^.]+)$ $1.html [QSA] RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^(.*)$ dispatch.cgi [QSA,L] the rewrite for static-sites is correct?...
2006 May 11
5
Problem running application in cpanel
Hi, I installed rails following the instruccions from http://wiki.rubyonrails.com/rails/pages/HowtoInstallAndRunRubyOnRailsOnCpanel but when i try see the application i have a 500 Internal Server Error, this is only with apache because i can run with webrick Please i am desesperate -------------- next part -------------- An HTML attachment was scrubbed... URL:
2006 Feb 01
3
apache2 / fcgi / RoR - no connection
.../public/dispatch.fcgi" -idle-timeout 20-initial-env RAILS_ENV=development -processes 2 FastCgiConfig -maxClassProcesses 1 -maxProcesses 1 -minProcesses 1 -processSlack 1 [ ... ] <Directory /tmp/rubystuff/testapp/public> RewriteEngine On RewriteRule ^$ index.html [QSA] RewriteRule ^([^.]+)$ $1.html [QSA] RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^(.*)$ dispatch.fcgi [QSA,L] Options Indexes +ExecCGI +FollowSymLinks Order allow,deny allow from all </Directory> and dispatch.fcgi looks like: #!...
2007 Jun 03
6
mongrel cluster w/ apache
...teLogLevel 9 # Check for maintenance file and redirect all requests RewriteCond %{DOCUMENT_ROOT}/system/maintenance.html -f RewriteCond %{SCRIPT_FILENAME} !maintenance.html RewriteRule ^.*$ /system/maintenance.html [L] # Rewrite index to check for static RewriteRule ^/$ /index.html [QSA] # Rewrite to check for Rails cached page RewriteRule ^([^.]+)$ $1.html [QSA] # Redirect all non-static requests to cluster RewriteCond %{DOCUMENT_ROOT}/%{REQUEST_FILENAME} !-f RewriteRule ^/(.*)$ balancer://mongrel_cluster%{REQUEST_URI} [P,QSA,L] </VirtualHost> if anyone can help...
2007 Dec 21
2
config Rails .htaccess
...%{REQUEST_URI} ^/notrails.* # RewriteRule .* - [L] # Redirect all requests not available on the filesystem to Rails # By default the cgi dispatcher is used which is very slow # # For better performance replace the dispatcher with the fastcgi one # # Example: # RewriteRule ^(.*)$ dispatch.fcgi [QSA,L] RewriteEngine On # If your Rails application is accessed via an Alias directive, # then you MUST also set the RewriteBase in this htaccess file. # # Example: # Alias /myrailsapp /path/to/myrailsapp/public # RewriteBase /myrailsapp RewriteRule ^$ index.html [QSA] RewriteRule ^([^.]+)$ $1.ht...
2006 Dec 11
2
Does mongrel look at the Rails page cache?
Hi all. I''m trying to skip the Rails page cache if the user is logged in: --- # Rewrite index to check for static RewriteCond %{HTTP_COOKIE} !^.*logged_in=yes.*$ RewriteRule ^/$ /index.html [QSA] # Rewrite to check for Rails cached page RewriteCond %{HTTP_COOKIE} !^.*logged_in=yes.*$ RewriteRule ^([^.]+)$ $1.html [QSA] # Redirect all non-static requests to cluster RewriteCond %{DOCUMENT_ROOT}/%{REQUEST_FILENAME} !-f RewriteRule ^/(.*)$ balancer://mongrel_cluster%{REQUEST_URI} [P,QSA,L] -...
2007 Jun 03
3
mongrel cluster w/ apache
...RewriteLogLevel 9 # Check for maintenance file and redirect all requests RewriteCond %{DOCUMENT_ROOT}/system/maintenance.html -f RewriteCond %{SCRIPT_FILENAME} !maintenance.html RewriteRule ^.*$ /system/maintenance.html [L] # Rewrite index to check for static RewriteRule ^/$ /index.html [QSA] # Rewrite to check for Rails cached page RewriteRule ^([^.]+)$ $1.html [QSA] # Redirect all non-static requests to cluster RewriteCond %{DOCUMENT_ROOT}/%{REQUEST_FILENAME} !-f RewriteRule ^/(.*)$ balancer://mongrel_cluster%{REQUEST_URI} [P,QSA,L] </VirtualHost> if anyone can help me so...
2006 Apr 14
3
Rails deployment
Hi all, I''ve greated a rails application and i want to deploy it right now. I have to use a windows 2003 server.. So i installed i''ve used the following tutorial: http://wiki.rubyonrails.com/rails/pages/RailsOnWindows My application is running at : http://loc.iwsweb.nl But everytime i connect it opens a ruby process but at the end it won''t kill it. As you can see
2006 Nov 08
2
Apache 2.2.3 setup woes
...erMember http://127.0.0.1:8007 BalancerMember http://127.0.0.1:8008 BalancerMember http://127.0.0.1:8009 BalancerMember http://127.0.0.1:8010 BalancerMember http://127.0.0.1:8011 </Proxy> RewriteEngine On RewriteRule ^(.*/)?.svn/ - [F,L] RewriteRule ^/$ /index.html [QSA] RewriteRule ^([^.]+)$ $1.html [QSA] RewriteCond %{DOCUMENT_ROOT}/%{REQUEST_FILENAME} !-f RewriteRule ^/(.*)$ balancer://mongrel_cluster%{REQUEST_URI} [P,QSA,L] </VirtualHost>
2006 Feb 14
8
routing failures
probably something really simple but I don''t understand. Shifting to Apache to w/ fastcgi (definitely feels faster than webrick) Anyway, I set the default route in routes.rb to be map.connect '''', :controller => "placements", :action => ''list'' which worked once I figured out apache... Anyway, now that I have done that, all attempts
2006 Jul 24
7
Apache server-status?auto in rails
Just want to check the status of Apache monitor. but Apache server-status?auto can not be explained as normal URL in rails. For Http://localhost/server-status?auto, rails always regard server-status as one controller/method. It prompts errot: Recognition failed for "/server-status" Therefore, can not get the status info of Apache monitor. Pls expert help me!!! Thanks in advance.
2005 Oct 10
1
Need help from Apache mod_rewrite crew !
...rewrite conditions. According to Apache''s docs, the default is 10 redirects, and I would guess that two are needed to get a Productized Rails app going. Here''s the relevant part of .htaccess (reformatted for readability): ----------- RewriteEngine On RewriteRule ^$ index.html [QSA] # Hack to fix mod_rewrite bug: we catch the incoming uri as an environment variable ''DOC'' RewriteRule "(.*)" "$1" [env=DOC:$1] # If the requested file does not exist in SITE_ROOT/public... RewriteCond %{DOCUMENT_ROOT}%{ENV:DOC} !-f # ... then split its full...
2007 Jan 25
6
NOT FOUND error
...riteLogLevel 9 # Check for maintenance file and redirect all requests RewriteCond %{DOCUMENT_ROOT}/system/maintenance.html -f RewriteCond %{SCRIPT_FILENAME} !maintenance.html RewriteRule ^.*$ /system/maintenance.html [L] # Rewrite index to check for static RewriteRule ^/$ /index.html [QSA] # Rewrite to check for Rails cached page RewriteRule ^([^.]+)$ $1.html [QSA] # Redirect all non-static requests to cluster RewriteCond %{DOCUMENT_ROOT}/%{REQUEST_FILENAME} !-f RewriteRule ^/(.*)$ balancer://myapp_mongrel_cluster%{REQUEST_URI} [P,QSA,L] # Deflate AddOutputFilterByT...