New on LowEndTalk? Please Register and read our Community Rules.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
Comments
Rent vps nearest you target audience, install nginx, setup reverse proxy.
Done
nginx proxy_pass does everything you need, works pretty well imo. You can also set it to cache content.
Yes, exactly as suggested by above forum members, it would be a easy task to do.
The easiest configuration for using
nginx
would be something like this:You can of course make it more "complicated", if you want to.
You could also consider cloudflare if you dont want to roll your own nginx. Reverse proxy WITH CACHE is what you want. Really kick the speed up and lower requests to your host.
Well, you should (technically) forward the IP with that (you can change the variables, but again, you'd be complicating things like @k0nsl said):
However, if it isn't a dedicated IP address that you own, you'll have to go and change the domain of your cPanel account to something like proxy.yourwebsite.com and setup a NGINX proxy on yourwebsite.com to send all requests directly to proxy.yourwebsite.com.
Well they can use hostname, its just a bit slower. Nothing noticable for them I would bet. IP is the best for reverse_proxy but hostname will work as well.
This is the setup I have right now. Would using an additional layer of Nginx caching between my server and Cloudflare have a positive effect?
How long is nginx caching a dns look up result? Don't tell me that it needs to ask its dns resolver each time someone visits the reverse proxy.
So you are using cloudflare and its not fast? I am thinking that some headers are wrong most likely someplace along the way. Cpanel hosted websites really are not built for raw speed. Its that tradeoff for convenience thing.