Is the directory not traversable and there is no default entry file in the public directory? Try writing phpinfo.php and insert it to visit
Is there a directory permission problem? You should use the root account to start nginx
You said you configured two sites, but I don’t know how to configure them, and whether the sites are configured or not. Different sites use different ports. In addition to port 80, you need to use port access; different sites have the same port and need to use domain names to distinguish them
I happened to have recorded the related configuration process on mac, you can refer to it:
chmod -R 777 /Users/yanghaha/Documents/ME/HaAdmi
403 is a static access.
Troubleshoot the following issues:
Is the directory not traversable and there is no default entry file in the public directory? Try writing
phpinfo.php
and insert it to visitIs there a directory permission problem? You should use the root account to start nginx
You said you configured two sites, but I don’t know how to configure them, and whether the sites are configured or not. Different sites use different ports. In addition to port 80, you need to use port access; different sites have the same port and need to use domain names to distinguish them
I happened to have recorded the related configuration process on mac, you can refer to it:
https://lzw.me/a/mac-osx-php-...