Failed to use this method/q/10...
Not only does the static resource jump to 302, but the 404.html that jumps to cannot be loaded, and the php behind the url cannot be removed. Please help me solve it! ! !
nginx specific configuration is as follows
Port 80
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 |
|
Port 443 under vhost/
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 |
|
曾经蜡笔没有小新2017-05-17 09:57:38
You have too many things configured in port 80. You only need to configure one thing in port 80, that is, all requests jump to 443. Then modify the configuration of 443 specifically.
In 443, you only specified the access to php and did not specify the path to the static resource. The reference configuration is as follows:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 |
|
If your static resources are placed together with php files, the root in the static resources can be placed outside, like this:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 |
|