rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org Subject: configuring apache, /home and /home/ act differently Date: Sun, 20 Feb 2005 15:52:23 -0400 Message-Id: <20050220194227.M11999-wAkyhNATXT+1Z/+hSey0Gg@public.gmane.org> X-Mailer: Open WebMail 2.01 20030425 X-OriginatingIP: 69.244.69.31 (lnelson-wAkyhNATXT+1Z/+hSey0Gg@public.gmane.org) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Hi Everyone, I need to run Rails off of a (virtual) subdirectory of our main site. I checked back on the list and set up a configuration which works, except for one thing. It is located under the virtual subdir ''u2'' accessing: http://example.com/u2/home redirects to: http://example.com/home resulting in a 404 not found error accessing: http://example.com/u2/home/ does the correct thing, loading the index action of the home controller. Note the difference in the trailing slash. The application works perfectly otherwise. Can anyone help? My setup is: 1. symlink from htdocs/u2 to rubyapp/public 2. changed 1 line in .htaccess to read: RewriteBase /u2/dispatch.fcgi 3. relevant section of httpd.conf: VirtualHost 192.168.2.2:80> ServerAdmin webmaster-hcDgGtZH8xNBDgjK7y7TUQ@public.gmane.org DocumentRoot /data/sites/example.com/htdocs ServerName www.example.com ServerAlias example.com *.example.com ErrorLog /data/sites/example.com/log/error_log CustomLog /data/sites/example.com/log/access_log combined ... (standard directory and script alias stuff) ... <Directory /sites/example.com/exampleruby/site/public/> Options ExecCGI FollowSymLinks AddHandler cgi-script .cgi AllowOverride all Allow from all Order allow,deny </Directory> </VirtualHost> Thanks in advance, Lee