Hi S,
The files of Pier in the directory "files" below the image can be
served through Apache (for efficiency reasons), but by default Pier
serves these files itself unless you specify a base-URL. Note that
this base-URL is not the same as the URL that you specify in the
Seaside configuration, it can point somewhere completely different.
I suspect that "MAExternalFileModel baseUrl" is pointing to
''testhelp.sg.estormtech.com/estormhelp" in your image, but it should
instead point to "http://testhelp.sg.estormtech.com/estormhelp". You
can either change this value through an accessor in the workspace (see
the methods and comments on the class side of MAExternalFileModel), or
use the PRFileSettings widget from
<http://localhost:8080/pier/system/management/file> in the default
setup.
L.
On 27 August 2011 17:25, mail list <mail.list(a)ficonab.com> wrote:
Aplogies but I am a bit new to pier so please excuse
any mistakes in
communications.
I am using Pharo 1.3 and have pier loaded up on it nicely. (to get it all
working nicely i had to install OSP process).
It all works well on my local box (styles etc).
I then deployed the image to an amazon linux box behind apache 2.2. This is
all set up nicely and the mod_proxy and mod_rewrite are working well.
The only issue i have is that the default style sheet is not presenting with
the proper url. (e.g. I can login/logout of pier, all works well except for
the default css style sheet associated with the environment - e.g. I get
an error 404 on the default style sheet)
First few paragraphs of the html page follows...
<link rel="stylesheet" type="text/css" media="screen,
projection"
href="http://testhelp.sg.estormtech.com/files/PRBlueprintLibrary/scree…
rel="stylesheet" type="text/css" media="print"
href="http://testhelp.sg.estormtech.com/files/PRBlueprintLibrary/print…
IE]><link rel="stylesheet" type="text/css" media="screen,
projection"
href="http://testhelp.sg.estormtech.com/files/PRBlueprintLibrary/ie.cs…
type="text/javascript"
src="http://testhelp.sg.estormtech.com/files/PRJavaScriptSupport/pier.…
rel="stylesheet" type="text/css"
href="http://testhelp.sg.estormtech.com/files/WADevelopmentFiles/devel…
name="generator" content="Pier - Magritte - Seaside"/><link
rel="stylesheet"
type="text/css"
href="testhelp.sg.estormtech.com/estormhelp/a9/8bwetsf5rctr3kefd2lkty9…
If you look at the last href you will see that it is missing the http:// (so
when the link is presented in the browser the browser tries to connect to:
"http://testhelp.sg.estormtech.com/testhelp.sg.estormtech.com/estormhelp/a9/8bwetsf5rctr3kefd2lkty9b5mbkws/style.css"
Note the repetition of the domain name due to the lack of http:// in the
href
Any thoughts or advice?
in the pier config pages I have hostname set (test
help.sg.estormtech.com)
and http and base url and resource url set to /
S.
_______________________________________________
Magritte, Pier and Related Tools ...
https://www.iam.unibe.ch/mailman/listinfo/smallwiki
--
Lukas Renggli
www.lukas-renggli.ch