[Radiant] please help: How do I set the default URL path with
multiple installs?
Bodhi
bodhi at theplant.jp
Tue Nov 14 20:50:07 CST 2006
Jose, I've replied to both your emails here...
On 15/11/2006, at 10:01 AM, jlopez at hpcf.upr.edu wrote:
> Bodhi,
>
> What I've finally done is the following.
>
> In my apache httpd.conf
>
> I've set
<snipped apache config>
> All my site's images go into their public/images directory to
> maintain the
> relative urls in my pages.
>
> This is the best I can do for now. Both sites run from their own
> directory
> on different ports and I don't have to fiddle with radiant.
>
> Please tell me what you think.
If you are using 2 ports, why dont you just use / as the base-url for
radiant? Or are you doing this already?
You could try using different names (change ServerName in httpd.conf)
instead of ports:
http://example.com:3000/myapp -> http://myapp1.example.com
http://example.com:3001/myapp2 -> http://myapp2.example.com
What I meant by my previous email was:
If you have /myapp1 symlinked to rails/app/public then if you access
http://example.com/myapp1/ you will get the right page, but all the
links to other child pages will be rendered as eg. http://example.com/
child/page instead of http://example.com/myapp1/child/page (this is
how I understood the problem you were having...?)
If you add a page *in radiant* below (I think I mistakenly said
'above' in a previous mail) the home-page for your app (and dont
change the rails-base-path or whatever the configuration option is),
going from:
/
+-- child/
+-- page/
to:
/
+-- myapp1/ <-- new page in radiant
+-- child/
+-- page/
(remember, this change is made only in radiant) Then links to child
pages will be rendered as http://example.com/myapp1/child/page
I'm not 100% sure that this will work using apache-fcgi (we are a
lighty+fcgi shop here), as it might strip off the myapp1/ part of the
url. Also, when using this method, you have to be careful about
linking to static content in the public directory, and its not
completely DRY...
But if you have it working satisfactorily now, don't worry about
changing it :)
Bodhi
More information about the Radiant
mailing list