Addon domains.
how to deploy multiply porojects with the same domain in the same server
Hi, guys!
Our company want to develop a series of web agents in the same server with the same domain. we plan to set the core project(laravel) to provide address books data as api for other web agents(laravel), but all of these projects just use one single entry login point, and they could share some same js, css files, top navigation, sessions etc. All of these project own independent databases.
such as:
url redirect to project database
/ core project
/suite core project core database
/agents/agent1 agent1 project agent1 database
/agents/agent2 agent2 project agent2 database
...
The project ageng1 / agent2... how to visit the core project's api without DNS, just with inside network otherwise.
developer1 just has the right to read/write agent1 project and its database;
developer2 just has the right to read/write agent2 project and its database;
system && tools:
ubuntu 16.04, php7.1, nginx 1.13.3, mysql5.7.20, git 2.7.4, laravel 5.4
Should I solve some questions like that:
- share js,css files among projects: git submodles?
- share session among these projects: redis?
- projects user rights assignment: To init a new repository for each project.
So how to design the perfect architecture?
Looking forward to your reply. Thanks very much anyway.
Please or to participate in this conversation.