Server Config Settings

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Server Config Settings

Nevin Pratt
What are the "Server" config settings for?  Specifically, the "Resource
Base Url"-- what is it for?

Nevin

_______________________________________________
Seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

RE: Server Config Settings

Boris Popov, DeepCove Labs (SNN)
You can use resource URL to augment the resource references with your
path, for example

Base URL: (empty)
Code: (aHtmlRoot linkToStyle: '/css/default.css')
Result: ... href="/css/default.css"

Base URL: /mystuff
Code: (aHtmlRoot linkToStyle: '/css/default.css')
Result: ... href="/mystuff/css/default.css"

As far as other settings, there are useful when you masquarade your
server behind a proxy so it knows how to issue redirects properly, for
example you don't want your app issuing redirects to port 8008 when its
masked behind an SSL proxy on port 443.

Hope this helps,

-Boris

--
+1.604.689.0322
DeepCove Labs Ltd.
4th floor 595 Howe Street
Vancouver, Canada V6C 2T5

[hidden email]

CONFIDENTIALITY NOTICE

This email is intended only for the persons named in the message
header. Unless otherwise indicated, it contains information that is
private and confidential. If you have received it in error, please
notify the sender and delete the entire message including any
attachments.

Thank you.

-----Original Message-----
From: [hidden email]
[mailto:[hidden email]] On Behalf Of Nevin
Pratt
Sent: Tuesday, October 31, 2006 10:07 AM
To: [hidden email]
Subject: [Seaside] Server Config Settings

What are the "Server" config settings for?  Specifically, the "Resource
Base Url"-- what is it for?

Nevin

_______________________________________________
Seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
_______________________________________________
Seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

RE: Server Config Settings

Boris Popov, DeepCove Labs (SNN)
Specifically, this is what we do when configuring gateway for
production,

(self registerAsApplication: 'online')
 ...
 preferenceAt: #deploymentMode put: true;
 preferenceAt: #errorHandler put: WebErrorHandler;
 preferenceAt: #serverProtocol put: #https;
 preferenceAt: #serverPort put: 443.

Cheers!

-Boris

--
+1.604.689.0322
DeepCove Labs Ltd.
4th floor 595 Howe Street
Vancouver, Canada V6C 2T5

[hidden email]

CONFIDENTIALITY NOTICE

This email is intended only for the persons named in the message
header. Unless otherwise indicated, it contains information that is
private and confidential. If you have received it in error, please
notify the sender and delete the entire message including any
attachments.

Thank you.

-----Original Message-----
From: [hidden email]
[mailto:[hidden email]] On Behalf Of Boris
Popov
Sent: Tuesday, October 31, 2006 10:51 AM
To: [hidden email]
Subject: RE: [Seaside] Server Config Settings

You can use resource URL to augment the resource references with your
path, for example

Base URL: (empty)
Code: (aHtmlRoot linkToStyle: '/css/default.css')
Result: ... href="/css/default.css"

Base URL: /mystuff
Code: (aHtmlRoot linkToStyle: '/css/default.css')
Result: ... href="/mystuff/css/default.css"

As far as other settings, there are useful when you masquarade your
server behind a proxy so it knows how to issue redirects properly, for
example you don't want your app issuing redirects to port 8008 when its
masked behind an SSL proxy on port 443.

Hope this helps,

-Boris

--
+1.604.689.0322
DeepCove Labs Ltd.
4th floor 595 Howe Street
Vancouver, Canada V6C 2T5

[hidden email]

CONFIDENTIALITY NOTICE

This email is intended only for the persons named in the message
header. Unless otherwise indicated, it contains information that is
private and confidential. If you have received it in error, please
notify the sender and delete the entire message including any
attachments.

Thank you.

-----Original Message-----
From: [hidden email]
[mailto:[hidden email]] On Behalf Of Nevin
Pratt
Sent: Tuesday, October 31, 2006 10:07 AM
To: [hidden email]
Subject: [Seaside] Server Config Settings

What are the "Server" config settings for?  Specifically, the "Resource
Base Url"-- what is it for?

Nevin

_______________________________________________
Seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
_______________________________________________
Seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
_______________________________________________
Seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside