This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.
How to fix image upload error on blog management page. I'm on an Nginx system with Octobercms v1.0.473. Currently I can't upload images into my blog using the featured_image plugin. Even not only in the blog, to upload media images as well. Even though the image I uploaded is small like 19KB. Please help me... This code appears when an error occurs:
Upload error
<html>
<head>
<title>404 Not Found</title>
</head>
<body>
<center><h1>404 Not Found</h1></center>
<hr>
<center>nginx</center>
</body>
</html>
<!-- a padding to disable MSIE and Chrome friendly error page -->
<!-- a padding to disable MSIE and Chrome friendly error page -->
<!-- a padding to disable MSIE and Chrome friendly error page -->
<!-- a padding to disable MSIE and Chrome friendly error page -->
<!-- a padding to disable MSIE and Chrome friendly error page -->
<!-- a padding to disable MSIE and Chrome friendly error page -->
I checked the octobercms event log, I got the following notes: https://prntscr.com/1icvwcb
Last updated
Hi,
Try checking that your nginx server is configured using the documentation example found here: https://octobercms.com/docs/setup/deployment#nginx-configuration
Thanks for the directions. After a few times I had trouble making repairs. In the end I managed to do the fix and got the settings as you directed.
server {
listen 443 ssl http2;
listen [::]:443 ssl http2 reuseport;
server_name example.com;
index index.html index.htm index.php index.php3 index.phtml index.php5 index.php7 index.shtml mwindex.phtml;
root /var/www/html/;
location / {
rewrite ^/.*$ /index.php last;
try_files $uri $uri/ /index.php?$args;
}
}
Thanks very much.
1-3 of 3