Take the 2-minute tour ×
Webmasters Stack Exchange is a question and answer site for pro webmasters. It's 100% free, no registration required.

I want to preview my website by manipulating the hosts file, linking to the server's URL but it's not working - My browser always tells me "the connection has been reset during page load".

What am I doing wrong? I edited my hosts file like many tutorials out there suggest and I checked (wireshark) that the browser connects to the correct IP (that of my server).

Yet, I can't see anything of my website...?

share|improve this question
add comment

1 Answer

Make sure the IP you put into your host file is the one Plesk is actually using. This is an easy mistake to make if your server has multiple IP addresses.

Also, make sure you put www.domain.com and not just domain.com in your host file. It will need to match exactly to what you wish to test with.

If you have a later version of Plesk with the Nginx proxy. Try turning it off for testing. Based on your error this could be the problem.

Lastly, clear your browser's cache. I've seen the Plesk default page get cached and give odd results.

share|improve this answer
    
I added the IP I can view under the Tab "Websites & Domains". The domain matches exactly that I entered in Plesk. But I added a www.-Version anyway to the hosts file, but it still aborts the connection. –  Florian Peschka Feb 19 '13 at 7:55
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.