hey Stephen,
sorry for the late response i hade to renovate my old apartment (damn always more work then expected-- :)


well, the production log:

en.cannesdepetrol.de

/ not working  |  with nginx /

Processing SiteController#show_page (for 127.0.0.1 at 2008-08-15 11:08:48) [GET] Session ID: BAh7CToOcmV0dXJuX3RvMDoMY3NyZl9pZCIlMDhhMDFiOTFkMzU5ZGY5NTJm %0ANzQ3MjQ0N2NjN2Q2ZWUiDHVzZXJfaWRpByIKZmxhc2hJQzonQWN0aW9uQ29u %0AdHJvbGxlcjo6Rmxhc2g6OkZsYXNoSGFzaHsABjoKQHVzZWR7AA%3D%3D-- fac83eaf9f0661162b80d60ab53936e8ac612c68
  Parameters: {"url"=>"/", "action"=>"show_page", "controller"=>"site"}
Cookie set: session_token=c2ab662f7c7b557dad25f9e6d93375f1f70c4037; path=/; expires=Fri, 29 Aug 2008 09:08:48 GMT
/var/www/apps/cannesdepetrol/cache/en.cannesdepetrol.de_de-DE
/var/www/apps/cannesdepetrol/cache/en.cannesdepetrol.de_de-DE
/var/www/apps/cannesdepetrol/cache/en.cannesdepetrol.de_de-DE
Completed in 0.01676 (59 reqs/sec) | DB: 0.00000 (0%) | 200 OK [http://en.cannesdepetrol.de/ ]

########################################################################################

/ working  |  without nginx /
http://en.feedyourflat.com:3000/

Processing SiteController#show_page (for 62.206.116.164 at 2008-08-15 11:18:33) [GET] Session ID: BAh7BiIKZmxhc2hJQzonQWN0aW9uQ29udHJvbGxlcjo6Rmxhc2g6OkZsYXNo %0ASGFzaHsABjoKQHVzZWR7AA%3D%3D-- e28bdcf85080b4229beeb1025f2f56d29e8c27cc
  Parameters: {"action"=>"show_page", "url"=>"/", "controller"=>"site"}
/var/www/apps/cannesdepetrol/cache/en.feedyourflat.com_de-DE
/var/www/apps/cannesdepetrol/cache/en.feedyourflat.com_de-DE
/var/www/apps/cannesdepetrol/cache/en.feedyourflat.com_de-DE
Completed in 0.00945 (105 reqs/sec) | DB: 0.00000 (0%) | 200 OK [http://en.feedyourflat.com/ ]

########################################################################################

/ working  |  without nginx /
http://de.feedyourflat.com:3000/

Processing SiteController#show_page (for 62.206.116.164 at 2008-08-15 11:19:20) [GET] Session ID: BAh7BiIKZmxhc2hJQzonQWN0aW9uQ29udHJvbGxlcjo6Rmxhc2g6OkZsYXNo %0ASGFzaHsABjoKQHVzZWR7AA%3D%3D-- e28bdcf85080b4229beeb1025f2f56d29e8c27cc
  Parameters: {"action"=>"show_page", "url"=>"/", "controller"=>"site"}
/var/www/apps/cannesdepetrol/cache/de.feedyourflat.com_de-DE
/var/www/apps/cannesdepetrol/cache/de.feedyourflat.com_de-DE
Completed in 0.63872 (1 reqs/sec) | DB: 0.00000 (0%) | 200 OK [http://de.feedyourflat.com/ ]


seems that rails get the request:

en.cannesdepetrol.de:
/var/www/apps/cannesdepetrol/cache/en.cannesdepetrol.de_de-DE

working
http://en.feedyourflat.com:3000/
/var/www/apps/cannesdepetrol/cache/en.feedyourflat.com_de-DE

working
http://de.feedyourflat.com:3000/
/var/www/apps/cannesdepetrol/cache/de.feedyourflat.com_de-DE

well so, how can i configure the extension? i did it with the slugs in the second level pages

- home page ( virtuell domain )
        - Home (de) ( slug : de )
                - ..
                - ..
        - home (en) ( slug : en )

but there i coul also do a config part in  home page ( virtuell domain )
how does this looks ?
in the readme (http://tinyurl.com/65rquo) is written:

page part named 'config' in the virtual-domain page, and add something like
blog.theplant.jp: articles
code.theplant.jp: development

how does it exactly look?

config
de.cannesdepetrol.de: de
en.cannesdepetrol.de: en

(not working ;)

regards,

kalle


Am 12.08.2008 um 23:33 schrieb Stephen Lombardo:

Hi Kalle,
On Tue, Aug 12, 2008 at 11:36 AM, kalle saas <[EMAIL PROTECTED]> wrote:

yes i have  the proxy_set_header set to Host $http_host.
it's not working with that :(

i'm wondering. i thought the "virtual domain extension" gets the
information out of the url ?


Yes, it does examine the url and the host. You mentioned that you can get it working fine with a single mongrel instance, but that the same request will fail when you proxy through nginx. That could indicate that the request
headers are not making it back to radiant/rails.

I wonder if you might be able to take a look in radiant's production.log when you request the en.cannesdepetrol.de site through nginx. Do you see the
fully qualified url there (like http://en.cannesdepetrol.de/...)?

If you don't then I'd take another hard look at the nginx config. If you do
see the hostname there then it might be a problem with the extension
configuration.

Cheers,
Stephen
_______________________________________________
Radiant mailing list
Post:   Radiant@radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant

_______________________________________________
Radiant mailing list
Post:   Radiant@radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant

Reply via email to