[Catalyst] uri_for() question

Christopher H. Laco claco at chrislaco.com
Mon Mar 27 21:41:30 CEST 2006


Bob Faist wrote:
> I'm using "script/finance_server.pl" currently.  Probably move to
> apache/mod_perl later.
> 
> Finance.pm is using "Static::Simple".
> 
> On 3/27/06, Matt S Trout <dbix-class at trout.me.uk> wrote:
>> Bob Faist wrote:
>>> I have a header template which is creating links to javascript and css
>>> files.  When I access the  Catalyst app from localhost using
>>> "http://localhost:3000/finance", everything works fine.  If I access
>>> the same app from a different host using a public internet site
>>> "http://webapps.bobfaist.com/finance", then the css and javascript
>>> files are not being loaded.  If I view the source HTML, the links are
>>> prepended with "http://192.168.1.100:3000/".
>> Without knowing how the app's deployed in each case there's very little
>> anybody can do to help. Is http://webapps.bobfaist.com/finance FactCGI,
>> mod_perl, what? Which webserver? How's it configured?
>>
>> --
>>       Matt S Trout       Offering custom development, consultancy and support
>>    Technical Director    contracts for Catalyst, DBIx::Class and BAST. Contact
>> Shadowcat Systems Ltd.  mst (at) shadowcatsystems.co.uk for more information
>>
>> + Help us build a better perl ORM: http://dbix-class.shadowcatsystems.co.uk/ +
>>
>> _______________________________________________
>> Catalyst mailing list
>> Catalyst at lists.rawmode.org
>> http://lists.rawmode.org/mailman/listinfo/catalyst
>>
> 
> _______________________________________________
> Catalyst mailing list
> Catalyst at lists.rawmode.org
> http://lists.rawmode.org/mailman/listinfo/catalyst
> 
> 

Sounds like it looks for a reverse of the IP it's serving on, and falls
back to IP when it can't find one.  Give that it's a private IP ,
probably behind NAT, whatever it found would still be wrong.

Is there a way within Catalyst to override what server ip/name gets
stuffed into base?

-=Chris

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: OpenPGP digital signature
Url : http://lists.rawmode.org/pipermail/catalyst/attachments/20060327/d743530b/attachment.pgp 


More information about the Catalyst mailing list