Michael said:
I've got a dummy site up and working with Arrow, but I have a
question....In the httpd.conf file you specify something like:
[...]
You would think that if you went to
http://mysite.com/camphq/index it
would run the defaultApplet "/index" (which actually tells the layout
"/index" to run ). But it doesn't! Instead you have to say:
Yes, this is how it's supposed to work.
applets:
defaultApplet: "/camphq/index" #Note this line
missingApplet: "/missing"
errorApplet: "/error"
pattern: "*.rb"
path:
- "/var/www/camphq/applets"
pollInterval: 5
config: {}
layout:
"/camphq/index": Index # Note this line to
in order for the url to work (
http://mysite.com/camphq/index ). Is
there a way around this. I would like to assume that the URL root
specified in the httpd.conf file was the root of my Arrow-based
"Portal" (can i call it that?) Thanks!!
I'm at a loss to explain what's going on, as I can't reproduce this.
When I map something in the layout as '/camphq/index', I have to go to
/camphq/camphq/index to get it to run. Would you mind bumping your
LogLevel in httpd.conf and logLevel in your camphq.conf up to 'debug'
and mailing me the output in your error log for one request to
/camphq/index?
Here is my error.log output:
[Sun Sep 19 16:23:54 2004] [error] [client 10.0.1.61] File does not
exist: /var/www/camphq.com/favicon.ico
[Sun Sep 19 16:23:58 2004] [notice] (global) : Arrow config file is
"/var/www/camphq/config/camphq.cfg"
[Sun Sep 19 16:23:58 2004] [notice] Arrow:
ispatcher : Configuring a
dispatcher for 'camphq.com': child server 13833
[Sun Sep 19 16:23:58 2004] [notice] Arrow:
ispatcher : Monitor skipped
by configuration
[Sun Sep 19 16:23:58 2004] [notice] Arrow:
ispatcher : Setting global
log level to :debug
[Sun Sep 19 16:23:58 2004] [notice] Arrow:
ispatcher : Configuring the
Session class with #<Arrow::Config:0x40721e24
@loader=#<Arrow::Config::YamlLoader:0x40729bb0>,
@name="/var/www/camphq/config/camphq.cfg", @createTime=Sun Sep 19
16:23:58 UTC 2004, @struct=#<Arrow::Config::ConfigStruct:0x4071fae8
@modified=false, @hash={:templates=>{:loader=>"Arrow::Template",
ath=>["/var/www/camphq/templates"], :cacheConfig=>{:maxSize=>2621440,
:expiration=>36, :maxNum=>20, :maxObjSize=>131072}, :cache=>false},
:startMonitor=>false, :session=>{:storeType=>"file:/tmp",
:expires=>"+48h", :idName=>"arrow-session", :rewriteUrls=>true,
:idType=>"md5:.", :lockType=>"recommended"},
:applets=>{:missingApplet=>"/missing",
ath=>["/var/www/camphq/applets"],
ollInterval=>5,
attern=>"*.rb",
:errorApplet=>"/error", :defaultApplet=>"/index", :config=>{},
:layout=>{:"/index"=>"Index", :"/camphq/protected/index"=>"Index",
:"/camphq/protected"=>"ProtectedDelegator"}}, :logLevel=>"debug",
:unittester=>{:dbenv=>"/www/data/applettests"},
:templateLogLevel=>"debug"}>>
[Sun Sep 19 16:23:58 2004] [notice] Arrow:
ispatcher : Creating request
broker
[Sun Sep 19 16:23:58 2004] [error] Arrow::Broker : Configured
MissingApplet handler (/missing) doesn't exist
[Sun Sep 19 16:23:58 2004] [notice] Arrow::Broker : Using builtin
missing-applet handler.
[Sun Sep 19 16:23:58 2004] [error] Arrow::Broker : Applet returned false
value. Setting status to DECLINED
[Sun Sep 19 16:23:58 2004] [notice] Arrow:
ispatcher : Transaction has
non-OK status: -1
[Sun Sep 19 16:23:58 2004] [error] [client 10.0.1.61] File does not
exist: /var/www/camphq.com/camphq/index
[Sun Sep 19 16:23:58 2004] [error] [client 10.0.1.61] File does not
exist: /var/www/camphq.com/favicon.ico
Thanks,
Zach