Redirect to domain TTFB very slow

ASTRAPI nginx-forum at nginx.us
Wed Dec 31 00:29:04 UTC 2014


Hi

Thanks for your reply :)

"do you mean mydomain.com forwarding to www.mydomain.com"

No!

I have two domains let's say domain1.com and domain2.com

Both domain files are in public folder of domain1 and the domain2 is using a
folder there named "gadgets" 

Now i was set one account for each domain on nginx but on domain2 i use a
redirect to "gadgets" folder ....

Yes it seems that there is a problem with an http request or dns overhead
but no idea how to solve :(

At /etc/hosts i have only the first domain.Do you think this is the problem
and what exactly i must add there for the second domain?

127.0.0.1   localhost localhost.localdomain
37.187.xxx.xxx server.domain1.com server

Both domains are using the same ip!

Thanks

Posted at Nginx Forum: http://forum.nginx.org/read.php?2,255913,255915#msg-255915



More information about the nginx mailing list