Permalink
Browse files

feature #4340 [Cookbook][Web Server] add sidebar for the built-in ser…

…ver in VMs (xabbuh)

This PR was merged into the 2.3 branch.

Discussion
----------

[Cookbook][Web Server] add sidebar for the built-in server in VMs

| Q             | A
| ------------- | ---
| Doc fix?      | yes
| New docs?     | no
| Applies to    | all
| Fixed tickets | #4149

As discussed with @weaverryan in #4000, this pull request adds a sidebar which explains how to easily use the built-in web server in virtual machines to make it accessible from the host machine.

Commits
-------

28645d9 add sidebar for the built-in server in VMs
  • Loading branch information...
weaverryan committed Oct 29, 2014
2 parents d07d5fe + 28645d9 commit 691b13d686b64884b6e91eb6ffdf1e70bd5b8154
Showing with 18 additions and 1 deletion.
  1. +18 −1 cookbook/web_server/built_in.rst
@@ -30,12 +30,29 @@ The command will wait and will respond to incoming HTTP requests until you
terminate it (this is usually done by pressing Ctrl and C).
By default, the web server listens on port 8000 on the loopback device. You
can change the socket passing an ip address and a port as a command-line argument:
can change the socket passing an IP address and a port as a command-line argument:
.. code-block:: bash
$ php app/console server:run 192.168.0.1:8080
.. sidebar:: Using the built-in Web Server from inside a Virtual Machine
If you want to use the built-in web server from inside a virtual machine
and then load the site from a browser on your host machine, you'll need
to listen on the ``0.0.0.0:8000`` address (i.e. on all IP addresses that
are assigned to the virtual machine):
.. code-block:: bash
$ php app/console server:run 0.0.0.0:8000
.. caution::
You should **NEVER** listen to all interfaces on a computer that is
directly accessible from the Internet. The built-in web server is
not designed to be used on public networks.
Command Options
---------------

0 comments on commit 691b13d

Please sign in to comment.