basecamp / pow

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

Virtual host file should include the TLD, so we can port proxy .dev and .test to different ports #513

Open asgeo1 opened 9 years ago

asgeo1 commented 9 years ago

I don't use Pow as a webserver, but it's very useful as a tool for port proxying.

I'm trying to run my rails test server on one port, and my dev server on another port.

I can add the .test TLD via export POW_DOMAINS=dev,test. However, there is no way to create separate virtual host files for the .test TLD.

What I means is that I want http://examplesubdomain.myapp.dev to port proxy 7000 and http://examplesubdomain.myapp.test to port proxy to 7002

However, in Pow I can only create a single ~/.pow/examplesubdomain.myapp virtual directory file. I can't specify separate files for separate TLDs.

I would like to be able to create separate virtual directory files like this:

guidobouman commented 9 years ago

If you're using a different TLD, can you not just already use a different app name?

http://examplesubdomain.myapp.dev && http://examplesubdomain.myapp-test.dev