Portal Home > Knowledgebase > Articles Database > Nginx Redirect to domain TTFB very slow 6 seconds


Nginx Redirect to domain TTFB very slow 6 seconds




Posted by hostyourdream, 12-30-2014, 07:36 PM
Hi On my Nginx server i use a domain "domain.com" and i have all files here: There i have a folder named "gadgets" and i have some files there and i use a redirect to another domain for this folder. So if a user types seconddomain.com it goes to the folder gadgets in the first domains folder and get al results..... The problem is that is very slow (first domain is loading super fast !) and then checking i found this : So Time to first byte is very slow 6 seconds No idea how can fix this And i can't move that folder to the new created account that i redirect as the files inside gadgets are interacting with other files there from main account..... second domain config: Any ideas? I am using ZendOpcache and Memcached... Thanks

Posted by hostyourdream, 12-30-2014, 08:32 PM
Maybe an http/dns overhead related to /etc/hosts that i have only the hostname and not my domains? Do you think this is the problem and what exactly i must add there? 127.0.0.1 localhost localhost.localdomain 37.187.xxx.xxx server.domain1.com server Both domains are using the same ip!

Posted by hostyourdream, 12-30-2014, 09:21 PM
Check also this: http://i59.tinypic.com/20jlrpv.jpg



Was this answer helpful?

Add to Favourites Add to Favourites    Print this Article Print this Article

Also Read
2 issues (Views: 622)
Godaddy hacked! (Views: 661)
CRNC Down? (Views: 690)

Language: