Displaying 20 results from an estimated 2000 matches similar to: ".htaccess rewrite"
2006 Oct 03
4
Apache Re-Write and Directories
Howdy,
I am using the ''default'' Apache 2.2 mod_rewrite rules suggested from the Web
site and they are working.
One thing related to static (non cluster directed) resources:
If I have a directory in public called ''static'', if I request it as follows:
http://www.domain.com/static/ - then it works
If I request it as:
http://www.domain.com/static - then it
2007 Jun 03
6
mongrel cluster w/ apache
hi all,
i''m working on deploying my app w/ apache and a mongrel cluster. i''ve
started by copying the instructions and code from the agile rails book
and everything seems to be working fine but apache isn''t forwarding my
requests to mongrel the way i expect it should. there''s nothing in the
rewrite logs and nothing but 404 errors in the apache error logs.
2007 Jun 03
3
mongrel cluster w/ apache
hi all,
i''m working on deploying my app w/ apache and a mongrel cluster. i''ve
started by copying the instructions and code from the agile rails book
and everything seems to be working fine but apache isn''t forwarding my
requests to mongrel the way i expect it should. there''s nothing in the
rewrite logs and nothing but 404 errors in the apache error logs.
2008 Jan 23
7
Apache, Mongrel, Authentication
A question about mongrel, apache and authentication.
I''ve got a Rails site with I think a very typical setup: a mongrel
cluster behind an Apache proxy. So Apache''s handling the static stuff
and it hands off dynamic content to mongrel. I want to put the site
temporarily behind Apache''s basic authentication. What I get when I
do this is that is a password prompt which
2007 Jan 25
6
NOT FOUND error
I''ve been hunting the web and reading the mailing lists all day but
I''m not finding any guidance on this problem. When I try to talk to my
mongrel it simply responds with NOT FOUND and nothing else. I can''t
find anything on google because this has to be the second most commond
phrase in existence.
Any help or guidance would be greatly appreciated.
Sincerely,
Chuck Vose
2007 Nov 22
4
reg vhost in apache
Hi all,
I am facing one problem in configuration of httpd-vhosts.
my requirment is if url comes from servername (i.e http://sutra) it
should redirect to my home page.if url comes from serverAlias(i.e
http://sutrateam) it should go to advance search page....if any one
knows how to do pls help me
below file is my vhost file
<VirtualHost *:80>
ServerName sutra
ServerAlias
2007 Jan 02
2
problem with mongrel/apache2.2.3 and subdomain setup
Hi all
I got a vps setup amazingly fast using the deprec recipes on Ubuntu
edgy, but now I''m having a minor issue where my site loads for the
main domain when I only want it accessible from the subdomain. This
is a pretty typical setup, apache 2.2.3 -> mongrel_proxy_balancer ->
mongrel cluster. I''m sure I''m missing something obvious in the
config...
I have the
2007 Oct 03
5
403 (Forbidden) with Apache on Mongrel Cluster
Hi,
I''ve configured a rails application on my VPS to run on two
mongrels. When I run curl on localhost, the starting page comes up
fine. That is, mongrel is serving the app perfectly.
The problem arises when trying to access the app on my ip through
apache. I
get a 403 error. Just to test things out, I''ve set generous
permissions on the entire rails directory structure
2007 Jan 17
2
mongrel cluster (+ Apache 2.2.4 + proxy balancer) not redirecting correctly
I''m in the process of setting up a mongrel cluster at the moment, and I''m
running into a bit of an issue. Even worse is that I''m not sure whether
this is a mongrel thing, or an Apache thing. While I''m inclined to think
that this might be a balancer thing, I decided there was a higher chance
hearing back from mongrel-users than from apache-users, so I''d
2006 Dec 16
5
trying to add another app
hey all,
I have an app working great with apache2 and mongrel_cluster.
However, I''m trying to run another application and now when I go to
app1.comit falls to
app2.com and the opposite. That''s probably because I messed up somewhere
with the cluster.
this is the content of my conf.d/app1.proxy_cluster.conf:
<Proxy balancer://mongrel_cluster>
BalancerMember
2006 Sep 07
8
what should be correct .conf file for being served by apache for static content
Recently while i turned on USR1 debugging...mongrel running behind
Apache2.2threw following debugging messages:
Thu Sep 07 15:58:30 IST 2006: 0 threads sync_waiting for /charts/%5EBSESN, 1
still active in mongrel.
Thu Sep 07 15:58:40 IST 2006: 0 threads sync_waiting for
/images/tab_but_normal1.png, 3 still active in mongrel.
Thu Sep 07 15:58:40 IST 2006: 0 threads sync_waiting for
2007 Sep 08
8
SVN and Rails problem
Hi guys,
I''ve finally managed to get my server up and running with
mongrel_cluster and all that jazz. My rails app works fine, but when I
try to access my svn repos as I was doing before everything was setup
rail is giving me a 404.
What can I add to my httpd.conf to prevent this? Here''s a snip from my
httpd.conf relating to the domain:
---HTTPD.CONF---------------------------
2007 Feb 22
4
Modifying Apache Conf To Block Leachers
Howdy,
I''m using Apache 2.2 + Mongrel with great success, using the sample
configs from the Mongrel site.
We have some MP3s on the site and recently someone has been stealing
them and basically leaching them from the site, linking to them from
an off-site location.
I''ve been trying to modify my Apache conf to check the referrer and
adjust accordingly as below but no
2006 Jul 07
10
problem serving pdf files
I''m using the instructions from
http://blog.codahale.com/2006/06/19/time-for-a-grown-up-server-rails-mongrel-apache-capistrano-and-you/to
configure mongrel_cluster with apache mod_proxy_balancer. Everything
works fine, except when I try to link to a pdf file to be opened in a new
window, it displays the contents of the pdf as text instead of opening it as
a pdf document through Acrobat.
2009 Jun 17
2
Using a cgi perl program?
I have a cgi/perl program that I want to use on the same server as my
RoR app and I keep getting:
The page you were looking for doesn''t exist.
You may have mistyped the address or the page may have moved.
I load the program to the cgi-bin directory in its own folder /cgi-bin/
fump/
In the /public folder of my app I have the following .htaccess file:
# General Apache options
2006 Jun 18
5
[slightly OT] Apache 2.2.2 proxy config
Apologies, this may be off-topic.
I''ve been wrestling with upload issues and Apache 2.2.2 /
mod_proxy_balanacer / mongrel_cluster / Mongrel on Mac OS X Server 10.4.5.
Typically the first upload would be fine but the next would make the mongrel
instance remain running (ps state = "R") essentially locking up that
instance. Apache would then eventually do:
[Fri Jun 16 16:45:54
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 May 25
5
Application stops working over night: (Errno::EPIPE (Broken pipe)) is the error
I know this question gets asked a lot but I can''t seem to find the
answer when I search through the mailing list. First off here''s my set
up.
Cent OS 4.3
Apache 2.0
Fast CGI 2.4.0
Rails 1.1
Mysql 5.0
The app starts up fine, but every morning it refuses to start and gives
me the dreaded Application error untill I reload Apache. I thought my
database was timing out so I added
2005 May 23
16
Success - Rails, FastCGI, and IIS / Windows Server
About 17:00 localtime I managed to get fastcgi,
Rails and IIS all happy together.
Upon success I ripped off my clothes and ran through
the village yelling "The future is now!". A PDP-11
geezer stuck his head out a window and said "The future
isn''t what it used to be and keep yer shirt on".
Modifications were required to dispatch.fcgi and request.rb.
The following
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