login community faq

Hi,

I'm not familiar with hosting rules and tricks. So maybe my question could seem a bit "stupid"...

I'im going to take a webfaction instance on the server in Amsterdam. I currently live in France. France is my first targeting market and USA will be the second.

I wanted to know if it's possible, and if yes, how, to "simulate" that my server is in France and not in Amsterdam. I think it will works with another server that I buy in France, which redirects to the server in Amsterdam. I read it's called Reverse Proxy, but "reverse proxy" seems to have some other meanings (nginx).

Does anybody do something like that for their needs ?

I want to do that just for SEO which seems to be better when the server is in the targeting country.

Thanks by advance Bastien

asked Oct 10 '12 at 04:41

bastien's gravatar image

bastien
71


Yes, this is certainly possible, but it's not something I would recommend because I don't think the SEO improvement will be noticeable. But if you want to do this, you can. You would use something like this:

  1. You would point the DNS for your server to the IP address of a server in France
  2. You would create an SSH tunnel from the French server to the Amsterdam server using something like ssh -L 127.0.0.1:5555:127.0.0.1:80 your_wf_user@webNNN.webfaction.com
  3. You would configure the French front-end server (such as Nginx) to use a proxy_pass directive to forward the request to 127.0.0.1:5555 which will then travel through the tunnel to your webfaction server.
  4. You would create a Custom Application (listening on port) which runs on the WebFaction server listening on 127.0.0.1:6666 (modify "6666" to whichever port is assigned by the Control Panel)

Then, in order to ensure that this SSH tunnel is kept alive as long as possible, you would use both autossh and a watchdog script together.

Again, I personally don't think the SEO benefits would be noticeable, but if you want to do this, go right ahead :)

Hope that helps!

answered Oct 10 '12 at 04:58

ryans's gravatar image

ryans ♦♦
28411420

edited Oct 10 '12 at 04:59

Thanks for the quick and so clear answer Ryans. As I am not familiar with hosting tricks, it seems not so easy, even with your great explanations, and even more if you think the SEO improvement will not worth it. I think I will let it away for the moment. Bastien

(Oct 10 '12 at 05:03) bastien bastien's gravatar image
Your answer
If you have an answer to the above question, then use the form below. Otherwise, use the appropriate 'add new comment' button above to post your feedback.
toggle preview

Plans & prices    Sign up    Why WebFaction?    Contact us    Affiliate program    Support    Legal    Jobs    Blog    Control panel login
Powered by OSQA
© Copyright 2003-2012 Swarma Limited - WebFaction is a service of Swarma Limited