Page 1 of 1
Is it best to set "./" to the "URL to blog&qu
Posted: Mon May 30, 2005 6:38 pm
by qagdnep
Is it best to set "./" to the "URL to blog" field when I want to access the weblog locally (at
http://localhost:8080/.../) and also remotelly (at "
http://mydomain.com/.../)? Many of the internal links (including the ones to the CSS templates that are very important for viewing my weblog) are absolute.

Re: Is it best to set "./" to the "URL to blo
Posted: Tue May 31, 2005 5:01 pm
by garvinhicking
I haven't tried this very often/well. It may create some problems, as it's a quite dirty hack. If you want to access the blog in different hosts you should try to have at least the same HTTP directory structure. You could then use the "Autodetect HTTP Host" config setting to make s9y automagically set the baseURL to the right host...
Regards,
Garvin
Re: Is it best to set "./" to the "URL to blo
Posted: Wed Jun 01, 2005 6:24 pm
by qagdnep
Thank you for your reply, but it seems it's not working.
My local address is "
http://localhost:8080/weblog/" and the remote one is like "
http://www.mydomain.com:8080/weblog/" (on port 8080 too!) and when I enable "Autodetect HTTP Host," the "URI to blog" field is automatically set to "http://localhost:8080:8080/weblog/" and nothing works.
Maybe Serendipity uses Apache's "ServerName" setting (in httpd.conf)? Mine is set to "localhost:8080." Um, I dont know. I think I need your help.

Re: Is it best to set "./" to the "URL to blo
Posted: Thu Jun 02, 2005 5:53 pm
by garvinhicking
Yes, it uses the HTTP_HOST directive. I think about different ports a patch has been made to the 0.9 branches to properly recognize the different ports.
I must admit that I don't have much experience with blogs running on non-port80 hosts, so you'll have to do some debugging sadly.
Regards,
Garvin