简体   繁体   中英

LaraDock multiproject laravel 8 - installation issue

I am completely new to LaraDock. After hours of trying to dockerize existing Laravel 8 projects, I discovered LaraDock. I have installed it successfuly and the container is running in Docker. When I go to localhost, however I get 404 not found. I need help to correctly set up the web server conf files.

So far I have created a new.conf file in apache2/sites as well as nginx/sites (as I do not know which webserver is running on Mac Monterey with LaraDock).

So in apache2/sites the new project1.conf has the following lines:

ServerName project1.test
DocumentRoot /Users/paul/Sites/project1

And in nginx/sites the project1.conf:

server_name project1.test;
root /Users/paul/Sites/project1;
index index.php index.html index.htm;

In the browser project1.test also returns error 404 not found.

In several.conf files the normal path to apache hosted file (/var/www/) does not exist on Monterey. Should I replace these instances by /Users/paul/Sites/?

What am I missing?

in laravel the document root should be /public on the end.

so it could be

/Users/paul/Sites/MeerkatSafaris/public

and / or

DocumentRoot /Users/paul/Sites/project1/public

but it is unclear which is the correct root in your question

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM