Skip to content

Commit c5e86b4

Browse files
authored
Merge pull request #167 from dirtyhenry/add-doc-for-subdomains-support
Update README to mention support of subdomains
2 parents bc41f64 + 33874e0 commit c5e86b4

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,10 @@ Puma-dev allows you to run multiple local domains. Handy if you're working with
169169

170170
Like pow, puma-dev support serving static files. If an app has a `public` directory, then any urls that match files within that directory are served. The static files have priority over the app.
171171

172+
### Subdomains support
173+
174+
Once a virtual host is installed, it's also automatically accessible from all subdomains of the named host. For example, a `myapp` virtual host could also be accessed at `http://www.myapp.test/` and `http://assets.www.myapp.test/`. You can override this behavior to, say, point `www.myapp.test` to a different application: just create another virtual host symlink named `www.myapp` for the application you want.
175+
172176
### Status API
173177

174178
Puma-dev is starting to evolve a status API that can be used to introspect it and the apps. To access it, send a request with the `Host: puma-dev` and the path `/status`, for example: `curl -H "Host: puma-dev" localhost/status`.

0 commit comments

Comments
 (0)