Comments (14)
From honglilai on April 13, 2008 12:20:54
Hi. Could you try the latest development version (i.e. the one on the git repository)
and check whether this problem has been solved for you? Thanks.
Please note however that Passenger will not be able to accelerate page cache files if
you use a non-default page cache directory.
from passenger.
From honglilai on April 13, 2008 12:21:30
Status: Started
from passenger.
From netzdamon on April 13, 2008 13:19:10
I just tried the latest from git and it solved the issue for me not sure
about Albert.
Curious why Passenger can't accelerate the page cache files if there not in the
default page cache directory?
Great work on it thus far.
from passenger.
From honglilai on April 13, 2008 14:37:18
That's because Passenger assumes that page cache files have the filename
'public/(some URI).html', which is the case if the default page cache directory is
used. To properly autodetect custom page cache directories, some pretty complex code
must be written.
Status: Fixed
from passenger.
From albert.ramstedt on April 14, 2008 00:53:14
But using a mod_rewrite setting, it would work, right?
from passenger.
From honglilai on April 14, 2008 01:35:18
Yes, it should.
from passenger.
From honglilai on April 14, 2008 15:34:31
Labels: Milestone-1.0.2
from passenger.
From tomasj on November 25, 2008 12:02:15
I'm not sure if it's just me going insane, but it appears like I cannot in any way use mod_rewrite to rewrite the
empty url "" (the start page) in combination with Passenger — anything else rewrites do work with, just not the
start page. Could this be true, can anyone confirm?
from passenger.
From budstikkamedia on February 02, 2009 01:06:11
Sorry to bring this up again, but maybe we could have an Apache configuration we could set to tell Passenger
what directory to look for caches in?
I really dislike the idea of cluttering the /public directory with cached pages, and prefer the quite common
/public/cache directory instead. And afaik using rewrites i deprecated, so that leaves us with few other options
than using rails without accelerated html :(
I propose "RailsCacheDir" as configuration option.
from passenger.
From honglilai on February 02, 2009 01:40:59
At the moment we've allocated our resources and time towards other issues that are
deemed more important to us. If you would like to have this issue resolved more
quickly, please feel free to help out, e.g. by sending a patch.
Labels: -Milestone-1.0.2
from passenger.
From ralf.ebert on June 15, 2009 03:46:59
Has someone a workaround for this?
The mod_rewrite statements as described in http://www.railsenvy.com/2007/2/28/rails-caching-tutorial#moving doesn't seem to work
with mod_rails.
I guess relocating the cache directory using page_cache_directory is pretty common,
as it allows to sweep the cache easily. It's just more convenient not to clutter up
the public dir with cache files.
It would be great if mod_rails could pick up this setting automatically.
from passenger.
From matts.possiamo on July 15, 2009 16:55:40
While I understand that you may not have resources for updating passenger to support
cached pages outside of the public dir, could you at least share your recommended
apache directives for using a dir other than public?
Thanks,
Matt
from passenger.
From honglilai on July 15, 2009 23:55:19
We do not use non-standard page caching directories in production so we do not have
recommended Apache directives for this. Please experiment with mod_rewrite rules. I
believe it had been done before but I can't remember who it was that did it.
from passenger.
From tomasj on July 16, 2009 02:31:18
I've had some success with these mod_rewrite rules:
RewriteBase /
IMAGES CACHING
RewriteCond %{REQUEST_FILENAME} !-s
RewriteCond %{DOCUMENT_ROOT}/cache%{REQUEST_URI} -s
RewriteRule ^(.*)$ /cache/$1 [L]
PAGE CACHING
RewriteCond %{REQUEST_FILENAME} !-s
RewriteCond %{DOCUMENT_ROOT}/cache%{REQUEST_URI}.html -s
RewriteRule ^(.*)$ /cache/$1 [L]
FRONT PAGE CACHING
RewriteCond %{REQUEST_URI} "/"
RewriteCond %{REQUEST_FILENAME} !-s
RewriteCond %{DOCUMENT_ROOT}/cache/index.html -s
RewriteRule ^$ /cache/index.html [L]
from passenger.
Related Issues (20)
- HTTP3/QUIC breaks passenger Python apps ( Nginx + HTTP3 + Passenger ) HOT 2
- Cannot build passenger nginx dynamic module HOT 1
- Out of memory leads to passenger shutdown and ensuing 502 error on nginx HOT 3
- Out of memory leads to passenger shutdown and ensuing 502 error on nginx HOT 1
- Cannot upgrade to 1.24.0-1: unmet dependencies HOT 2
- Cannot find nginx module on Amazon Linux 2023 HOT 1
- Cannot install passenger-6.0.20-1.el9.x86_64.rpm on CentOS 9 Stream with Ruby 3.3 HOT 2
- Requests intermittently result in 500, directory in /tmp not found HOT 2
- Better cooperation with Kubernetes zero-downtime restarts
- Error with Rack prevents editing rails production credentials
- params are empty upon proper form submission HOT 1
- Packaging of unmaintained dependency: http-parser HOT 2
- The passenger spawns more processes than are allocated to it
- SecurityUpdateCheck fails when using builtin engine HOT 1
- Lacking rubyext-ruby-3.2.2-x86_64-linux.tar.gz from Release 6.0.20. HOT 1
- no Phusion Passenger(R) log file configured, discarding log output HOT 5
- Unable to locate package libnginx-mod-http-passenger | bullseye HOT 1
- Unable the fetch the repo for mod_passenger HOT 12
- passenger v6.0.21, ruby 3.3.1 with apache crashing. HOT 11
- passenger 6.0.21 will not install on AlmaLinux 9 / RHEL 9 HOT 8
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from passenger.