basecamp / pow

Zero-configuration Rack server for Mac OS X
http://pow.cx/
MIT License
3.4k stars 261 forks source link

My site requires port number. Couldn't resolve configured domains #366

Open DavidVII opened 11 years ago

DavidVII commented 11 years ago

Hi Everyone. I've been trying to figure out why I haven't been able to resolve this issue after much searching. It seems that I can't just go to mysite.dev. I have to also add my port number, mysite.dev:20559

This is a pretty small issue, but it's quite annoying.

While I understand I may not be providing all the info, it's simply because I don't know what's relavent. I'm mostly a front-end guy who's fairly new to rails.

Here's some info: When installing pow I get asked for my password. The pop up looks like this:

Password

I get asked for this six times and my wifi and ethernet connection get disconnected.

once I fill in my password the installation continues and everything seems to be fine, except for the last step. I get the message:

Couldn't resolve configured domains (dev)

I have used MAMP in the past so I ran through the steps descriped here: https://github.com/37signals/pow/wiki/Running-Pow-with-Apache

This doesn't work.

I also went through the steps of #172, but that didn't work either.

I have tried everything I can think of and am looking for some advise on what I can do to remove that port number and get the proper forwarding with pow.

Thanks!

DavidVII commented 11 years ago

Alright, I was finally able to figure this one out. Every where I looked for a solution wasn't specific enough, but here I hope to consolidate everything into one place.

First, if you're getting the password request as I did (mentioned above) during the installation run through these steps.

  1. Open up terminal and run this sudo ipfw list. Make a note of what currently exists. You should see something like this 00001 fwd 127.0.0.1,20559 tcp from any to me dst-port 80 in
  2. Next open up this file in a text editor /Library/LaunchDaemons/cx.pow.firewall.plist
  3. Change this ipfw add fwd 127.0.0.1,20559 tcp from any to me dst-port 80 in to this ipfw add 1 fwd 127.0.0.1,20559 tcp from any to me dst-port 80 in.
    • add this net.inet.ip.fw.enable=1 to the end if you have used OS X Server (Lion Server).
  4. Delete the ipfw you took a note of in step 1 by running sudo ipfw delete ##### the octothorpes represent the first 5 numbers after running sudo ipfw list in my case, that number was 00001
  5. Run sudo launchctl load -Fw /Library/LaunchDaemons/cx.pow.firewall.plist
    • If you get an message saying it was already loaded, run this: sudo launchctl unload -Fw /Library/LaunchDaemons/cx.pow.firewall.plist then run through the command in step 5 again

Port forwarding should work after this.

Also, go to this issue for more info if you need it.

Hope this helps and saves you a little time.

Cheers.

DavidVII commented 11 years ago

Well, as it turns out, this doesn't work with port 88 when running pow with apache. So maybe someone can shed some light here on why.

If you are running apache, you'll need to change the port number from step 3 above to 88 then run through steps 4-5 above while you work with apache. Once you want to get back to pow. You can do it again and with port 80 specified.

One of the most frustrating things I've ever had to deal with. I hope someone can provide some insight and a solution.

ak47 commented 11 years ago

+1 - fixed the issue for me, thanks friend.

roydq commented 11 years ago

Just had this issue (running mavericks) and your fix worked for me. I was running pow fine and it suddenly stopped working... So I'm not sure what the cause was. Thanks.

devinhalladay commented 10 years ago

:+1: You're the man! I've been looking for a solution for this for three hours straight, and yours fixed the issue!

guidobouman commented 10 years ago

Check out this wiki post: https://github.com/37signals/pow/wiki/Running-Pow-with-Apache

nikkimoreaux commented 10 years ago

I solved the !!! Couldn't resolve configured domains (dev) problem with: $ sudo sysctl -w net.inet.ip.fw.enable=1

Then: $ curl get.pow.cx | sh