Spurious "/.com" inserted into URL

Maxim Dounin mdounin at mdounin.ru
Tue Aug 10 01:27:40 MSD 2010


Hello!

On Mon, Aug 09, 2010 at 02:03:27PM -0400, desiato wrote:

> (You can see this pretty-printed at
> http://serverfault.com/questions/168098/nginx-just-started-inserting-spurious-coms-into-our-urls
> )
> 
> I made some minor changes to our nginx config on Friday (deploying SSL
> certs: adding a server listening on 443 with the appropriate settings
> and adding a couple rewrite rules to forward certain requests to it) and
> all of a sudden our URLs started getting extra "/.com"s inserted into
> them.  For example, clicking a link to http://domain.com/logout/ takes
> the user to http://domain.com/logout/.com/.  http://domain.com/register/
> forwards to http://domain.com/.com/register/.  This doesn't happen with
> a subdomain (e.g. http://production.domain.com/logout/ just works) and
> it also doesn't happen with https://domain.com/ (so right now, as a
> workaround, the entire site is being served with https).

I can't say for sure as you stripped lots of details from your 
report, but it sounds similar to the following issue (mostly in 
Russian):

http://nginx.org/pipermail/nginx-ru/2010-February/032586.html

Try using "proxy_redirect off;" to see if it helps.

If it doesn't - please provide debug log.  See here for details:

http://nginx.org/en/docs/debugging_log.html

Maxim Dounin



More information about the nginx mailing list