I’m looking for some hints on how to set up Radiant (and by extension
any rails app) under a subdirectory. (running Ubuntu with Apache2)
IE. I want to set it up as: http://mysite.com/radiant (not as a
virtual directory such as radiant.mysite.com - as I’ll be accessing
for now via my internal IP 10.1.1.*, and my external URL is through
dyndns, so I don’t have much control there).
I have a site set up in /etc/apache2/sites-available:
DocumentRoot /var/www/radiant/public/ ErrorLog /var/log/apache2/error.log Alias /radiant /var/www/radiant/public/ <Directory /var/www/radiant/public/> Options ExecCGI FollowSymLinks AddHandler cgi-script .cgi AddHandler fcgid-script .fcgi AllowOverride all Order allow,deny Allow from all </Directory>
and the proper RewriteBase line added to the .htaccess file in the
I had to modify the layout to let it find the stylesheet, by removing
the initial / .
And in the admin side, when I click the ‘+’ to expand a section, it is
displaying the HTTP headers:
Set-Cookie: _session_id=faa1dbd5cf25b0b70243262c11414317; path=/
Keep-Alive: timeout=15, max=98 Connection: Keep-Alive
Transfer-Encoding: chunked Content-Type: text/html;charset=utf-8 0
And it takes several seconds to expand the section (that text is below
the expanded items)
I’m sure there’s some apache voodoo that I’m just missing - I’m having
similar problems with other rails apps I’m trying to use!
I’d appreciate any help.