Nginx static page access on Mac 403

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.