Bodhi,

What I've finally done is the following.

In my apache httpd.conf

I've set

Listen 3000
Listen 3001

And I've created virtual hosts for each of my radiant sites using those
ports.

<VirtualHost *:3000>
ServerName myserver
DocumentRoot /pathtomyapp/myapp1/public/
<Directory /pathtomyapp/myapp1/public/>
      Options ExecCGI FollowSymLinks
      AllowOverride all
      Allow from all
      Order allow,deny
</Directory>
</VirtualHost>

<VirtualHost *:3001>
ServerName myserver
DocumentRoot /pathtomyapp/myapp2/public/
<Directory /pathtomyapp/myapp2/public/>
      Options ExecCGI FollowSymLinks
      AllowOverride all
      Allow from all
      Order allow,deny
</Directory>
</VirtualHost>

And this at the bottom for fcgi

<IfModule mod_fcgid.c>
    AddHandler fcgid-script .fcgi
    IPCCommTimeout 40
    IPCConnectTimeout 10
    DefaultInitEnv RAILS_ENV production
    SocketPath /tmp/fcgidsock
</IfModule>

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.

Jose.

>
> On 14/11/2006, at 8:13 AM, [EMAIL PROTECTED] wrote:
>
>> Hi,
>>
>> I found this by John Long on the ruby archive
>> http://www.ruby-forum.com/topic/82446
>>
>> He wrote:
>> "I wouldn't recommend running Radiant in a sub-directory. It isn't
>> designed with this in mind.If you'd like to just have Radiant serve
>> files
>> from a specific directory, the simplest thing would be to change the
>> rewrite rules inthe .htaccess file (or equivalent for your Web
>> server).
>> What exactly are you trying to do? and why?"
>>
>> What I'm trying to do is to set two different websites like this:
>>
>> mydomain.org/app1
>> mydomain.org/app2
>
> For a really simple (but not the best) solution, you could make a
> root-page for each app with the same slug as the subdirectory. eg.
> for app1:
>
> app1/
>    +-- home/
>         +-- about/
>         +-- contact/
>
> etc... One problem that you might have is if you use <r:find>, then
> it would start to get a little bit messy. But after thinking for a
> bit, it might make more sense for the people that manage the site
> arent really technical... keep us posted on what you come up with :)
>
> bodhi
> _______________________________________________
> Radiant mailing list
> Post:   [email protected]
> Search: http://radiantcms.org/mailing-list/search/
> Site:   http://lists.radiantcms.org/mailman/listinfo/radiant
>

_______________________________________________
Radiant mailing list
Post:   [email protected]
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant

Reply via email to