[Seaside] default entry & Base URL := URL redirect

Brad Fuller brad at sonaural.com
Thu Mar 1 16:56:33 UTC 2007


Florian Minjat wrote:
> This one too from the same thread should interrest you :
> 
> ">> I need my application to be accessible with an url
>>> like 'http://myaddress/myApp' and not like
>>> 'http://myaddress/seaside/myApp'. Previously I was just doing :
>>> WADispatcher default basePath: ''.
>>> [...]
>>
>> Lukas Renggli wrote:
>> Aha, now I understand the problem. Evaluate the following code:
>>     WADispatcher default setName: ''
>> and everything should work. Thanks to the new implementation of the
>> dispatchers ;-) "

Yeah, I saw that Florian, Thanks.

Ok, so I executed
  * WADispatcher default setName: ''
  * re-inited Seaside and Pier.
  * stopped and started WAKom (that always seems to be needed)

Now, I can go to

   http://mydomain.com:9999/seaside

and the web browser displays the application that is the Default Entry 
of seaside/config.

In the particular Seaside Application config
  * place '/' in "Server Path"

With rewrite rules, it seems to work fine.

thanks!
brad

> 
> Brad Fuller wrote:
>> Lukas Renggli wrote:
>>>> Now, Base-path does not exist. What is the method to make your URL:
>>>>
>>>> http://mydomain.com/seaside/myapp
>>>>
>>>> to
>>>>
>>>> http://mydomain.com/
>>>
>>> Have a look at the thread "[Seaside] Seaside 2.7" it discusses this
>>> towards the end. Search for #serverPath:
>>
>> I assume you mean this:
>>
>> "The basePath is now a setting in the application called #serverPath,
>> similar to #serverPort and #serverHost. To change the path you have to
>> change the application configuration. "
>>
>> I don't quite understand it. But, I'll try and figure it out tomorrow 
>> morning (I'm in PST)


More information about the Seaside mailing list