A
A
Alexander2017-03-06 22:05:34
symfony
Alexander, 2017-03-06 22:05:34

Why does symfony only work with localhost, and it is not visible "outside"?

Actually, I'm not asking a question, but an answer.
For three days with my head on the keyboard :( And I didn’t find an answer to such nonsense anywhere on the Internet!
But the point is. Install and configure Symfony, everything is point by point
. relatively simple:
When starting the server, you must explicitly specify the IP of your server.For example:
# bin/console server:start 192.168.1.111:8000
And then everything suddenly starts working :)
Find out this IP using
#ifconfig

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Denis, 2017-03-06
@prototype_denis

Three days is a lot...

bin/console server:start --help

Usage:
  server:start [options] [--] [<address>]

Arguments:
  address                Address:port [default: "127.0.0.1"]
...

And in order for him to listen on all interfaces
... and from the root is not necessary

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question