File tree Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -36,6 +36,23 @@ can change the socket passing an ip address and a port as a command-line argumen
36
36
37
37
$ php app/console server:run 192.168.0.1:8080
38
38
39
+ .. sidebar :: Using the built-in Web Server from inside a Virtual Machine
40
+
41
+ If you want to use the built-in web server from inside a virtual machine
42
+ and then load the site from a browser on your host machine, you'll need
43
+ to listen on the ``0.0.0.0:8000 `` address (i.e. on all ip addresses that
44
+ are assigned to the virtual machine):
45
+
46
+ .. code-block :: bash
47
+
48
+ $ php app/console server:run 0.0.0.0:8000
49
+
50
+ .. caution ::
51
+
52
+ You should **NEVER ** listen to all interfaces on a computer that is
53
+ directly accessible from the Internet. The built-in web server is
54
+ not designed to be used on public networks.
55
+
39
56
Command Options
40
57
---------------
41
58
You can’t perform that action at this time.
0 commit comments