Magento 2 - (2.13) Failed to load resource: the server responded with a status of 404 (Not Found) **Solved
After spending sometime with Magento 2 (2.13) , as I am running Nginx and PHP 7 fpm I was getting a lot of error and after some research I was able to find a solution simply replace location static in given magento 2…
SKSohaib Khan//1 min read
After spending sometime with Magento 2 (2.13) , as I am running Nginx and PHP 7 fpm I was getting a lot of error and after some research I was able to find a solution simply replace location static in given magento 2 nginx configuration file and restart nginx and php fpm server to reflect changes.
Nginx/36 lines
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
35
36
location /static/ {
if ($MAGE_MODE = "production") {
expires max;
}
# Remove signature of the static files that is used to overcome the browser cachelocation~ ^/static/version {
rewrite ^/static/(versiond*/)?(.*)$ /static/$2last;
}
location~* .(ico|jpg|jpeg|png|gif|svg|js|css|swf|eot|ttf|otf|woff|woff2)$ {
add_header Cache-Control "public";
add_header X-Frame-Options "SAMEORIGIN";
expires +1y;
if (!-f $request_filename) {
rewrite ^/static/(versiond*/)?(.*)$ /static.php?resource=$2last;
}
}
location~* .(zip|gz|gzip|bz2|csv|xml)$ {
add_header Cache-Control "no-store";
add_header X-Frame-Options "SAMEORIGIN";
expiresoff;
if (!-f $request_filename) {
rewrite ^/static/(versiond*/)?(.*)$ /static.php?resource=$2last;
}
}
if (!-f $request_filename) {
rewrite ^/static/(versiond*/)?(.*)$ /static.php?resource=$2last;
}
add_header X-Frame-Options "SAMEORIGIN";
}
UPDATE I'm working on an enhanced version that enables you to schedule posts with precise timestamps, If you find my plugin useful, a simple backlink and a thumbs up would be greatly appreciated – that's all I'm…
I am sharing how do I normally install the required software to run Wordpress using Woocommerce on a standalone server without using any bloated control panel including the all time JUNK CPANEL and all the others. I…