Welcome! Log In Create A New Profile

Advanced

Domain is redirected to www.----, I don't know why, I need to stop it

Posted by shakar 
Domain is redirected to www.----, I don't know why, I need to stop it
March 14, 2014 06:30PM
Hi,

Thank you for any help on this matter.

I've enabled debugging output for the error.log, and here is a snippet: http://pastebin.ca/2662543 (attached here as well)

As is shown there, the address seems ok for a while ("dev2.my_domain.com"), and the first appearance of 'www' when handling the request appears with:

http scgi status 302 "302 Found"
http scgi header: "Status: 302 Found"
http scgi header: "Location: https://www.dev2.my_domain.com/"

Where does that come from? Any suggestions for preventing this?

Thank you again tremendously for any assistance.
Attachments:
open | download - error.log (21.9 KB)
Re: Domain is redirected to www.----, I don't know why, I need to stop it
March 17, 2014 01:21PM
Solved, and not at all nginx-related. There was a funny little redirection method in the rails app that wasn't expecting "dev2".
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 126
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready