Laradock opens multiple projects

Laradock's workspace has port 8000 and port 8080 enabled by default

In the case of multiple projects, the configuration needs to be as follows:

1. Nginx configuration project file configuration

 

server laradock_workspace_1:8080 weight=5 max_fails=3 fail_timeout=30s;

  

2. Modify the project configuration file

config/laravels.php

'listen_ip'                => env('LARAVELS_LISTEN_IP', '0.0.0.0'),
'listen_port'              => env('LARAVELS_LISTEN_PORT', 8000),

  

Open the port to view this document: https://www.cnblogs.com/cshaptx4869/p/11910736.html

 

Guess you like

Origin www.cnblogs.com/zhangxiuyu/p/12719572.html