That's very odd. Unless you're running a plugin that's doing some kind of redirection (I remember the WP-SSL plugin causing that on Wordpress, but don't know of anything in -extras that does something similar) Habari shouldn't be redirecting you anywhere.

Assuming the snippet of your config is the only part of the server block that's going to try and alter the / path you shouldn't have any problems - we run the Habari site on Nginx with a very similar config.

I do notice that you mention using HTTPS when you're trying to connect to your dev box. Is it possible you've missed the SSL vhost and it's somehow falling back to another config that would reference the live URL?

------------------------------------------------------------------------

        Alex Beal <mailto:[email protected]>
March 20, 2011 3:04 PM


Hi All,

I'm having a bit of trouble moving my habari install to a new server
with a different domain name. I've had a live habari site up for a
while, and now I'm trying to set up a dev server on my local network
and mirror the habari install there. The problem is, whenever I point
my browser to the habari directory on my dev server (https://
192.168.1.2/blog) I get redirected to my live site (https://usrsb.in/
blog). Anyone know why this is happening? I've looked at the wiki, but
it only contains instructions for moving habari to a different
directory on the same domain. I've looked at my rewrite rules, and i
don't think they're the problem (I'm running nginx):

location / {
root /var/www/usrsbin;
index index.php;
if (!-e $request_filename)
{
rewrite ^/blog/(.*)$ /blog/index.php?$1 last;
}
}

Any ideas?

Thanks a lot!
Alex Beal


--
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/habari-users

<<inline: compose-unknown-contact.jpg>>

Reply via email to