ysbaddaden / prax

Rack proxy server for development
http://ysbaddaden.github.io/prax/
Other
475 stars 49 forks source link

Not working with Google Chrome #51

Closed maxbortone closed 10 years ago

maxbortone commented 10 years ago

I've just installed Prax under Ubuntu 13.04. I've noticed that I can't reach myapp.dev under Google Chrome, but it works with Firefox. How is this possible?

terlar commented 10 years ago

This is not because of prax this is Chrome not treating it as a domain. You need to prefix it with http:// first time you visit it to force a lookup, it should be remembered for feature access though.

First time visit: http://myapp.dev, future visit myapp.dev.

maxbortone commented 10 years ago

Did that of course, but isn't working. Restarted browser multiple times as well.

terlar commented 10 years ago

Works for me. What about a slash at the end? myapp.dev/

maxbortone commented 10 years ago

Nope. Are you using Ubuntu, too?

terlar commented 10 years ago

I'm using Arch and Chromium. Then I don't know what to do... But I find it hard to believe it is related to prax. Hope you find it, maybe need to toggle some setting in Google Chrome?

maxbortone commented 10 years ago

Found out that there are similar issues with Pow on Chrome. Works now after clearing DNS cache, didn't have to disable asynchronous DNS like it says here.

ysbaddaden commented 10 years ago

I'm glad you found the problem. It never happened on chromium nor chrome on ubuntu (lts) for me.

Except for the need to access myapp.dev/ with a trailing slash the first time, otherwise it searches for the domain, instead of resolving it.

RajRoR commented 9 years ago

This was working for me using solutions given in this thread, however, suddenly it stopped working on Chrome version 39.0.2171.95 (64-bit), ubuntu.

Now it shows default apache page

ysbaddaden commented 9 years ago

I'm afraid I have no idea what's happening. Is libnss_prax.so.2 still in /lib?

RajRoR commented 9 years ago

I don't think so. Here is the contents of /lib http://gyazo.com/9f7db5eaa8ccf18fd0e233e48a3c618d

ysbaddaden commented 9 years ago

I meant the system /lib not prax/lib

RajRoR commented 9 years ago

Sorry, my bad. Yes, I have /lib/libnss_prax.so.2

ysbaddaden commented 9 years ago

It must Chrome's asynchronous DNS then. I had to disable it for Chromium 39.0.2171.65 to work.

RajRoR commented 9 years ago

:+1: thanks man! It worked!

For others who are facing same issue, disable async DNS from chrome://flags on your chrome browser

https://plus.google.com/+FrancoisBeaufort/posts/JXcvYw1yCkH?pid=5722319419056621490&oid=100132233764003563318

NOTE: Don't forget to add trailing slack (/) with your URL.

mshappe commented 9 years ago

Ubuntu 15.04, Chromium 41 none of these suggestions work.