search for: request_filenam

Displaying 20 results from an estimated 121 matches for "request_filenam".

Did you mean: request_filename
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
2006 Oct 03
4
Apache Re-Write and Directories
...e ^.*$ /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
2006 Aug 30
3
Ruby+Apache2.2+ProxyLoadBalance ...... +PHP??
Hi, I just realice that I can''t run php code anymore once I installed my dear mongrels (under an Apache Proxy Balancer). I''m just trying to run the clasic phpinfo() in the following file /var/rubyapp/public/phpinfo.php ... but instead of being executed the code is being displayed as plain text ... This is the ouput :)) <?PHP phpinfo(); ?> anyone can give a
2006 May 08
10
Apache 2.2, ProxyPass and HTTPS
Hi all, I''m currently trying to get Mongrel running my app whilst fronted by apache 2.2 in a sub-directory via https. A bit convoluted I''ll grant you but necessitated by existing systems. The pertinent parts of my httpd.conf: <VirtualHost 123.123.123.123:12345> #historic choice of random port number DocumentRoot /var/www/admin ServerName admin.example.com:12345
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.
2007 Jul 17
3
.htaccess problems..... Using Drupal
...www\.example\.com$ [NC] # RewriteRule .* http://example.com/ [L,R=301] # Modify the RewriteBase if you are using Drupal in a subdirectory and # the rewrite rules are not working properly. #RewriteBase /drupal # Rewrite old-style URLs of the form 'node.php?id=x'. #RewriteCond %{REQUEST_FILENAME} !-f #RewriteCond %{REQUEST_FILENAME} !-d #RewriteCond %{QUERY_STRING} ^id=([^&]+)$ #RewriteRule node.php index.php?q=node/view/%1 [L] # Rewrite old-style URLs of the form 'module.php?mod=x'. #RewriteCond %{REQUEST_FILENAME} !-f #RewriteCond %{REQUEST_FILENAME} !-d #Rewr...
2006 Dec 21
4
my apache 2.2 conf
...1 <Proxy balancer://app1> BalancerMember http://127.0.0.1:11001 </Proxy> Alias /app1 /production/app1/public <Directory /production/app1/public> Allow from .example.com RewriteEngine on RewriteRule ^/?$ balancer://app1%{REQUEST_URI} [P,L] RewriteCond %{REQUEST_FILENAME} !-f RewriteRule . balancer://app1%{REQUEST_URI} [P,L] </Directory> # End APP1 # APP2 <Proxy balancer://app2> BalancerMember http://127.0.0.1:11010 </Proxy> Alias /app2 /dev/app2/public <Directory /dev/app2/public> Allow from .example.com Rew...
2008 Jun 16
3
Apache rewrites with mongrel
...t 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? I saw this lines on a howto RewriteCond %{DOCUMENT_ROOT}/%{REQUEST_FILENAME} !-f RewriteRule ^/(.*)$ balancer://mongrel_cluster%{REQUEST_URI} [P,QSA,L] if I call www.myApp.com/shop (redirected internaly by g...
2006 Jul 23
9
Kubuntu, Apache 2.2, Mongrel, Mongrel Cluster
Skipped content of type multipart/alternative-------------- next part -------------- A non-text attachment was scrubbed... Name: new_notes Type: application/octet-stream Size: 5801 bytes Desc: not available Url : http://wrath.rubyonrails.org/pipermail/rails/attachments/20060723/34e20e45/new_notes.obj
2005 Oct 10
1
Need help from Apache mod_rewrite crew !
...ming 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 path up in to manageable pieces ... RewriteCond %{REQUEST_FILENAME} ^(.*)/sites/.+$ # ... and check to see if the file exists in the RAILS_ROOT/public # folder... RewriteCond %1/public/%{ENV:DOC} -f # ... if so, rewrite our requested file to be the RAILS_ROOT one RewriteRule ^(.*)$ /generic/%{ENV:DOC} [NS,L] RewriteRule ^([^.]+)$ $1.html [QSA] RewriteCond %...
2006 Jul 20
5
Apache 2.2, Mongrel and #caches_page
...ve 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 generates an HTML file that says "Found, document moved here"...
2007 Mar 29
0
Resolved problem with Apache Load Balancer Manager
Had to make a couple of changes to the config from the mongrel site to get the load balancer manager working: changed # Redirect all non-static requests to cluster RewriteCond %{DOCUMENT_ROOT}/%{REQUEST_FILENAME} !-f RewriteRule ^/(.*)$ balancer://mongrel_cluster%{REQUEST_URI} [P,QSA,L] to # Redirect all non-static requests to cluster RewriteCond %{DOCUMENT_ROOT}/%{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_URI} !/balancer RewriteRule ^/(.*)$ balancer://mongrel_cluster%{REQUEST_URI} [P,QSA,L]...
2006 May 10
2
Output Compression in Mongrel?
I''d like to implement output compression in Mongrel (ala Apache''s mod_deflate). I have found a Rails plugin that, with minor modification, works. Is there even an advantage to moving the output compression from the Rails app to a Mongrel handler? Unless, of course, someone knows how to configure mod_proxy_balancer with mod_deflate... == Will Green Web Developer & IT
2008 Jan 23
7
Apache, Mongrel, Authentication
...tenance.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] # Deflate AddOutputFilterByType DEFLATE text/html text/plain text/css # ... text/xml application/xml application/xhtml+xml text/javascript BrowserMatch ^Mozilla/4 gzip-only-text/html BrowserMatch ^Mozilla/4.0[...
2006 Sep 04
11
balancer://mongrel_cluster
...s many requests as say three instances? Is Mongrel Cluster a Apache add-in (like mod_*) or a separately running load balancer which runs on a separate port, I could not work it out from the sample Apache config... |# Redirect all non-static requests to cluster RewriteCond %{DOCUMENT_ROOT}/%{REQUEST_FILENAME} !-f RewriteRule ^/(.*)$ balancer://mongrel_cluster%{REQUEST_URI} [P,QSA,L] How does ||balancer://mongrel_cluster |work? Many thanks, K.
2006 Feb 16
4
Lost while trying to deploy rails app on apache
...ler fastcgi-script fcgi </IfModule> to the global apache config file and added <Directory "/Volumes/Data/WebContent/htdocs/path/to/symlink"> Options +ExecCGI RewriteRule ^$ index.html [QSA] RewriteRule ^([^.]+)$ $1.html [QSA] RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^(.*)$ dispatch.fcgi [QSA,L] ErrorDocument 500 "<h2>Application error</h2>The regression voting Rails application failed to start properly." </Directory> to the vhost''s config. (''RewriteEngine On'' was alre...
2006 Feb 01
3
apache2 / fcgi / RoR - no connection
...opment -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: #!/usr/bin/ruby require File.dirname(__FILE__) + "/../config/environment" req...
2007 Jun 03
6
mongrel cluster w/ apache
...intenance.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 sort this i''d appreciate it so much. i worked so hard to get this far (and learned a lot) but i''m stuck pretty bad at this point. thanks. -mike bannister
2006 Feb 04
4
Page caching feeds and cache file extensions
I have a feeds controller which generates RSS and Atom pages. I put ''caches_page :show'' in it. The problem is that the pages are saved with an html extension. As a result, browsers display the cached feeds as HTML rather than XML, and feed validators complain. There''s an option to set ''Base.page_cache_extension'' globally, but I don''t want
2006 Dec 11
2
Does mongrel look at the Rails page cache?
...ck 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] --- It does seem to work -- here''s sample rewrite debug for "/": --- (2) init rewrite engine with requested uri / (3) applying pattern ''^.*$'' to uri ''/'' (4) RewriteC...