Gmail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
mod_rewrite seems to work for me.
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  1 message - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Mike Bailey  
View profile  
 More options Jan 25, 11:35 pm
From: Mike Bailey <m...@bailey.net.au>
Date: Sun, 25 Jan 2009 23:35:14 +1100
Local: Sun, Jan 25 2009 11:35 pm
Subject: mod_rewrite seems to work for me.

I read that we shouldn't use mod_rewrite with Passenger [1] but it seems to
be working OK for me. I noted that the test rails app I generated did not
have a .htaccess file.

My vhost files are below. Is there really anything wrong with using
mod_rewrite this setup? Also, what does RailsAllowModRewrite actually do?
Commenting it out doesn't seem to make a noticable difference.

- Mike

Ubuntu 7.10 x86
Apache/2.2.8 (Ubuntu)
Phusion_Passenger/2.0.6
rails (2.2.2)
ruby-enterprise-1.8.6-20090113

<VirtualHost *:80>
  ServerName rack
  DocumentRoot "/opt/apps/foo/public"
  RailsEnv development
  # RailsAllowModRewrite Off

  # Check for maintenance file and redirect all requests
  RewriteEngine On
  RewriteCond %{REQUEST_URI} !\.(css|jpg|png|gif)$
  RewriteCond %{DOCUMENT_ROOT}/system/maintenance.html -f
  RewriteCond %{SCRIPT_FILENAME} !maintenance.html
  RewriteRule ^.*$ /system/maintenance.html [L]

  <Directory "/opt/apps/foo/public">
    Order allow,deny
    Allow from all
  </Directory>
</VirtualHost>

<VirtualHost *:80>
  ServerName rack-bar
  DocumentRoot "/opt/apps/bar/public"
  RailsEnv development
  # RailsAllowModRewrite Off

  # Check for maintenance file and redirect all requests
  RewriteEngine On
  RewriteCond %{REQUEST_URI} !\.(css|jpg|png|gif)$
  RewriteCond %{DOCUMENT_ROOT}/system/maintenance.html -f
  RewriteCond %{SCRIPT_FILENAME} !maintenance.html
  RewriteRule ^.*$ /system/maintenance.html [L]

  <Directory "/opt/apps/bar/public">
    Order allow,deny
    Allow from all
  </Directory>
</VirtualHost>

[1]
http://www.modrails.com/documentation/Users%20guide.html#conflicting_...


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google