The first day of the configuration of Nginx can be normal access to static pages, the next day through the network cloud disk download index.html file, once again access to the issue of 403forbidden.
To view the permissions for a file:
[Email protected] 1 hu staff 6351 4 21:10 blueplan.js[email protected] 1 hu staff 113 4 12 21: Ten Blueplan.less[email protected] 1 hu staff 1146 4 21:19 index.html
Found the file permission followed by an @ symbol, Google found to be read-only file meaning (no confirmation)
Delete the following @ symbol with the xattr-c blueplan.js command.
The following permissions are modified:
-rw-r--r-- 1 hu Staff 1054 4 21:10 blueplan.css-rw-r--r-- 1 hu staff 6351 4 21:10 blueplan.js-rw-r--r-- 1 hu staff 113 4 21:10 blueplan.less-rw-r--r-- 1 hu Staff 1146 4 21:19 index.html
Restart Nginx will be able to access the normal.
Nginx static page access on Mac 403