I'm running into some problems, well actually i'm running into every problem it seems. The answer to this might be obvious for some of you, but not not to me... I'm receiving a 500 error when trying to get Typo installed in a sub- directory. This isn't a Typo specific problem, but I assume you guys might can steer me in the right direction ;-) .
I have my rails apps under: /home/caged/apps/... I am aliasing the directory "/blog" to "/home/caged/apps/typo" in my apache conf. I have followed the docs here: http://wiki.rubyonrails.com/rails/show/ HowToUseRailsWithAliasedURLs on how to use mod_alias with rails. I set my RewriteBase to /blog. Here is my apache conf http://rafb.net/paste/results/6QPewu11.html. In my apache error logs I'm receiving the error: [Mon May 16 02:00:08 2005] [error] [client 209.50.252.138] Directory index forbidden by rule: /var/www/html/ This rule is at the very top of my configuration, but I 'thought' it would be overridden by the rules in my vhost directives at the bottom. This doesn't seem to be the case. Any idea on what could be the problem and how to go about fixing it? Cheers, -Justin Palmer Encytemedia.com From bousquet at usc.edu Mon May 16 03:17:38 2005 From: bousquet at usc.edu (Robert Bousquet) Date: Mon May 16 03:10:59 2005 Subject: [typo] Apache Config In-Reply-To: <[EMAIL PROTECTED]> References: <[EMAIL PROTECTED]> Message-ID: <[EMAIL PROTECTED]> > Any idea on what could be the problem and how to go about fixing it? Not really :) but I can tell you how I do it. I run my typo blog in a /blog subdirectory and here's the steps I took: 1) I added this to httpd.conf: Alias /blog /path/to/typo/public <Directory /path/to/typo/public> Options ExecCGI FollowSymlinks AllowOverride All </Directory> 2) In .htaccess I changed this line: RewriteRule ^(.*)$ dispatch.fcgi [QSA,L] to this: RewriteRule ^(.*)$ /blog/dispatch.fcgi [QSA,L] This worked for me so I can vouch for it. I'm not sure about the wiki suggestions you found. / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / R O B E R T B O U S Q U E T Web Programming Consultant Doheny Office of Technology Support University of Southern California [EMAIL PROTECTED] 213.740.9080 From typo at isolated-designs.net Mon May 16 21:16:22 2005 From: typo at isolated-designs.net (Justin Palmer) Date: Mon May 16 21:09:56 2005 Subject: [typo] Apache Config In-Reply-To: <[EMAIL PROTECTED]> References: <[EMAIL PROTECTED]> <[EMAIL PROTECTED]> Message-ID: <[EMAIL PROTECTED]> Hi Robert, I believe this is about the same as what i've got with the exception you append /blog onto your dispatch and I'm using Rewritebase. Although I tried that as well to eliminate any possible solutions/problems. I've been working on this for almost two days straight trying to solve this problem, but I'm about at the end of my rope. I still haven't found the solution. I think I'm getting further, but I still receive the same error. I know the alias is working because I can call the /blog/500.html file directly and it works. Here is what I'm at now in terms of my apache error log: [Mon May 16 21:04:23 2005] [notice] Digest: generating secret for digest authentication ... [Mon May 16 21:04:23 2005] [notice] Digest: done [Mon May 16 21:04:24 2005] [notice] mod_python: Creating 4 session mutexes based on 150 max processes and 0 max threads. [Mon May 16 21:04:24 2005] [notice] FastCGI: process manager initialized (pid 8512) [Mon May 16 21:04:26 2005] [notice] Apache/2.0.48 (Fedora) configured -- resuming normal operations [Mon May 16 21:04:27 2005] [error] [client 209.50.252.138] Directory index forbidden by rule: /var/www/html/ [Mon May 16 21:04:28 2005] [warn] FastCGI: (dynamic) server "/home/ caged/apps/typo/public/dispatch.fcgi" started (pid 11553) [Mon May 16 21:04:32 2005] [warn] FastCGI: (dynamic) server "/home/ caged/apps/typo/public/dispatch.fcgi" started (pid 16193) [Mon May 16 21:04:35 2005] [warn] FastCGI: (dynamic) server "/home/ caged/apps/typo/public/dispatch.fcgi" started (pid 19528) [Mon May 16 21:04:38 2005] [warn] FastCGI: (dynamic) server "/home/ caged/apps/typo/public/dispatch.fcgi" started (pid 19542) [Mon May 16 21:04:41 2005] [warn] FastCGI: (dynamic) server "/home/ caged/apps/typo/public/dispatch.fcgi" started (pid 19551) [Mon May 16 21:04:44 2005] [warn] FastCGI: (dynamic) server "/home/ caged/apps/typo/public/dispatch.fcgi" started (pid 19872) [Mon May 16 21:04:47 2005] [warn] FastCGI: (dynamic) server "/home/ caged/apps/typo/public/dispatch.fcgi" started (pid 20288) [Mon May 16 21:04:50 2005] [warn] FastCGI: (dynamic) server "/home/ caged/apps/typo/public/dispatch.fcgi" started (pid 23040) [Mon May 16 21:04:53 2005] [warn] FastCGI: (dynamic) server "/home/ caged/apps/typo/public/dispatch.fcgi" started (pid 23586) [Mon May 16 21:04:56 2005] [warn] FastCGI: scheduled the start of the last (dynamic) server "/home/caged/apps/typo/public/dispatch.fcgi" process: reached dynamicMaxClassProcs (10) [Mon May 16 21:04:56 2005] [warn] FastCGI: (dynamic) server "/home/ caged/apps/typo/public/dispatch.fcgi" started (pid 24096) I thought the directory index error might be due to the problem that inside a rule <Directory "/var/www/html> I had: AllowOverride None I changed this to AllowOverride All to no avail. I've tried everything I know to try, and I'm about ready to throw in the towel unfortunately. I'm going to copy this to the Rails list as well to see if anyone there might have a solution. -Justin On May 16, 2005, at 2:17 AM, Robert Bousquet wrote: >> Any idea on what could be the problem and how to go about fixing it? >> > > Not really :) but I can tell you how I do it. I run my typo blog > in a /blog subdirectory and here's the steps I took: > > > 1) I added this to httpd.conf: > > Alias /blog /path/to/typo/public > <Directory /path/to/typo/public> > Options ExecCGI FollowSymlinks > AllowOverride All > </Directory> > > > 2) In .htaccess I changed this line: > > RewriteRule ^(.*)$ dispatch.fcgi [QSA,L] > > to this: > > RewriteRule ^(.*)$ /blog/dispatch.fcgi [QSA,L] > > > This worked for me so I can vouch for it. I'm not sure about the > wiki suggestions you found. > > > > / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / > R O B E R T B O U S Q U E T > Web Programming Consultant > Doheny Office of Technology Support > University of Southern California > [EMAIL PROTECTED] > 213.740.9080 > _______________________________________________ > Typo-list mailing list > [email protected] > http://rubyforge.org/mailman/listinfo/typo-list > > >
