Is it best to set "./" to the "URL to blog&qu

Random stuff about serendipity. Discussion, Questions, Paraphernalia.
Post Reply
qagdnep
Posts: 2
Joined: Mon May 30, 2005 6:27 pm
Location: Japan

Is it best to set "./" to the "URL to blog&qu

Post 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. :(
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Is it best to set "./" to the "URL to blo

Post 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
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
qagdnep
Posts: 2
Joined: Mon May 30, 2005 6:27 pm
Location: Japan

Re: Is it best to set "./" to the "URL to blo

Post 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. :roll:

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. :?
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Is it best to set "./" to the "URL to blo

Post 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
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Post Reply