Questions tagged [nginx]

Nginx is an open source web server. The nginx project started with a strong focus on high concurrency, high performance and low memory usage. Nginx is often seen as an alternative for Apache when running Magento.

Filter by
Sorted by
Tagged with
0 votes
2 answers
110 views

Magento2.4.5 Varnish alway so 503 backend fetch fail

I have setup Vanish 6 on Magento2.4.5 but it alway show 503 backend fetch fail. My nginx config: upstream fastcgi_backend { server unix:/run/php/php8.1-fpm.sock; } server { server_name mysite....
  • 678
1 vote
2 answers
21 views

Folder permission

I installed magento2 with LEMP (nginx + php8.1-fpm) magento root: /var/www/html/ I am trying to add a seperate folder and execute a phpfile inside this folder in magento root: /var/www/html/...
  • 71
0 votes
2 answers
77 views

How can i install Wordpress in magento subdirectory

On my EC2, Magento is installed on main domain with nginx and now i want to install wordpress on magento subdirectory. how can i configure nginx for wordpress? Magento website: domain.com Wordpress ...
0 votes
1 answer
84 views

Magento 2 nginx 404 error permission denied on setup

I have problem with setting up project the nginx is working fine and it is setup correctly, but it gives me 404 Not Found page when I try to access the url. The log: 2022/12/06 19:01:26 [crit] 285154#...
0 votes
0 answers
55 views

Access to XMLHttpRequest at Blocked for admin and checkout page only

I'm using magento 2.4.5 nginx with varnish i want to use cdn and has set config to below section : Secure Base URL for User Media Files: https://subdomain.mysite.com/pub/media/ Secure Base URL for ...
  • 17
0 votes
0 answers
74 views

Install SSL for local magento2 project

I have installed clean magento and I want to have https:// on my local env. I am using docker and I created ssl certificate and approved it many different ways, it still not working. database changes ...
1 vote
4 answers
408 views

Magento 2 - No cache server(s) could be purged

I try to clone a project to which was running on nginx and using varnish. I try to run it on apache2. I get this error: report.CRITICAL: No cache server(s) could be purged Cache host: company.vm:...
  • 2,903
0 votes
2 answers
256 views

Updated to magento 2.4.5 now nginx fails to start

Just upgraded to Magento 2.4.5 on Ubuntu 20.4 running nginx with a Hestia control panel. After a reboot of the server, nginx failed to restart. Running command sudo nginx -t brings up error: nginx: [...
0 votes
2 answers
95 views

Varnish with brotli -> missing ESI handling/filtering

I've compiled brotli modules for nginx and added following (from https://www.getpagespeed.com/server-setup/varnish/varnish-brotli-done-right) to varnish default.vcl: sub vcl_recv { if(req.http....
0 votes
1 answer
73 views

Conditional webp and resizing in nginx

So regular, webp conditional loading works: map $http_accept $webp_suffix { default ""; "~*webp" ".webp"; } with small exception of pulling out of svg to ...
1 vote
2 answers
134 views

Hosting Magento with Nginx getting 500 error on static files

I am currently upgrading an Magento 2.3.5 site to 2.4.4. Everything seems to going well and I have the site running in local on Docker (using Lando.dev) with nginx and the Magento nginx.conf.sample. ...
0 votes
1 answer
347 views

How to solve 502 bad gateway error?

I am trying to access my project locally and I keep getting 502 bad gateway nginx error. Funny thing is that the admin side works but, the customer view gives me this bad gateway error. I am using ...
  • 31
1 vote
1 answer
134 views

Issue in setting multi website with two servers in Magento 2

I'm trying to setup Multi website in AWS server. I found several solution for Multi website implementation. In my case, There are two different servers(assume 0.0.0.1 and 0.0.0.2) where magento has ...
  • 369
0 votes
1 answer
2k views

Failed to load resource: net::ERR_HTTP2_PROTOCOL_ERROR

I have Magento 2.4.4 running on Plesk CentOS Server. PHP 8.1 PHP FPM Enabled Varnish on Port 80 Nginx on Port 8080 and 443 Apache on Port 7080 and 7081 Most of the time the website doesn't load well ...
0 votes
0 answers
46 views

How to move Magento 2.4 admin to subdomain on Nginx?

I have a Magento 2.4.3 installation running on an Nginx webserver. I want to move the admin login from example.com/admin to admin.example.com. How do I do this on Nginx?
  • 13
0 votes
1 answer
33 views

Nginx conf setup for one install multiple websites

I was able to install MG 2 on nginx and everything is running without issue. But, I am unsure as to how to setup up multiple websites under one install. The various walkthroughs and brief examples are ...
  • 111
0 votes
0 answers
94 views

How to solve Magento 2 "Refuse to apply css because of its MIME type" on Nginx?

I have a Magento 2 store and everything was ok with the default theme. Then I installed Porto theme and now I get this errors in the console and the page (especially the top menu) doesn't load ...
  • 13
0 votes
1 answer
500 views

Nginx: All Pages Return 404 Not Found except Home Page

I'm using Magento 2.4.4, I've set up the existing project, but all page goes to 404 except the homepage. I'm using Nginx for the first time so still figuring out how to configure it. /etc/nginx/sites-...
1 vote
0 answers
132 views

How to setup magento2 pwa nginx

I have set up Magento backend on eample.com and want to run PWA on subdomain pwa.example.com, I have set up the virtual host in Nginx for both, However, the backend is running but PWA on pwa.example....
  • 7,356
1 vote
1 answer
62 views

Url redirect 2 times when access from www

I'm trying to investigate the issue redirect when using www and HTTP link. Currently, if I use HTTP link with www.domain then it will redirect 2 times 301 > 302 > 200. I check via site: https://...
  • 678
0 votes
0 answers
99 views

Magento 2 Access-Control-Allow-Origin issue with CDN on aws with Nginx server

Hello All I am getting below error after use aws cloud CDN for static content in magento 2 Access to XMLHttpRequest at 'https://d8k4n5k6wbxhl.cloudfront.net/static/frontend/Sakshemit/Hinine/en_GB/...
0 votes
1 answer
237 views

Magento Frontend not working without index.php

I installed magento 2.4.3-p1. Everything goes good , backend working frontend is working fine but there is an issue. I am able to access the frontend from abc.com/index.php and inner links are working ...
1 vote
1 answer
126 views

Nginx 502 - [error] 11679#0: *1 upstream sent too big header while reading response header from upstream, client: 127.0.0.1

I'm doing a local installation of an existing project and facing some issues to make it work. I keep getting **502 Bad Gateway - nginx **, when I check the error log, I see that the domain is being ...
1 vote
1 answer
450 views

Extreme big headers only in large configurable products

We have a Magento 2.4.0 store. Most of our products are configurable. And some of them are having a lot of options. We also use swatch options. We have discovered some links which return: Error 503 ...
  • 1,022
1 vote
3 answers
1k views

Price on product detail page changed to 0.00 magento 2.4.3-p1

I'm facing a weird issue with the product detail page on magento 2.4.3. The product price will be shown while loading the page and changed to 0.000 once the page is loaded completely. The price is ...
0 votes
2 answers
243 views

Magento 2.4 issue with CSS/JS not being sent to browser after installation/deployment; most probably server related (Nginx/Apache)

I have seen a couple of similar issues, but none of the solutions/reasons helped me. I installed Magento 2.4; tried it switch it to default and developer modes, forced it to compile and deploy static ...
  • 1
0 votes
1 answer
70 views

Last-Modified header is M2.4.3 upgrade date

We have recently upgraded our M2.4.3 version and have noticed that the last modified header for all our web pages is now fixed at the exact upgrade date of our store across all web pages even newly ...
  • 521
0 votes
1 answer
325 views

Reindex - 401 Authorization Required - nginx

I have set up a local version of our Magento 2 store on my local machine running on Valet+ with Docker serving Elastic Search. Everything is working great, except I am running into a few errors when i ...
0 votes
1 answer
249 views

FPC and "upstream sent too big header while reading response header from upstream" error on nginx?

As soon as I enable FPC in Magento 2.4.2, I am getting a upstream sent too big header while reading response header from upstream error when I try searching. It does not happen for all search terms, ...
0 votes
1 answer
36 views

New Magento 2.4.1 installation with assets only appearing on first page load, when not created yet in static folder

Thanks for any help. The standard theme looks fine with this new installation (Windows / Nginx) on the first page load only. I can reliably duplicate the issue by clearing the pub/static folder, where ...
  • 1
0 votes
0 answers
262 views

Magento 2 on Valet not loading CSS

So, as the title says, css is not loading on my local Magento page. I have used Valet, and Magento has been working fine up until today. Today, I wanted to try something and executed valet secure {...
  • 117
0 votes
1 answer
760 views

Magento 2.4.2 - Forbidden error on Nginx because of no index file in root directory

I am getting a 403 forbidden error while opening my website URL on the browser. After so much research I have found that the index file is missing from the Magento root directory and it is moved to ...
0 votes
1 answer
319 views

Magento 2 nginx restricting admin are by IP address not working

I am trying to restrict access to the admin area by IP address, but it's not working. When I type in the admin url, it redirects me to the home page. If I change the IP address being whitelisted, it ...
0 votes
1 answer
503 views

Nginx sometimes returns 502 because of varnish panic

we are using Magento 2.3.5 with following setup: User >> NGINX >> VARNISH (locale Docker) >> APACHE + PHP Randomly some Requests returned by Nginx with 502. log file says: recv() ...
  • 23
0 votes
1 answer
260 views

Magento Paypal onAuthorization error on return to success page

I have a fresh install of Magento 2.3.6. I enabled the default paypal payment method, and I am trying to debug it using sandbox mode. I am able to complete the process of the payment on Paypal, but ...
  • 215
0 votes
1 answer
1k views

Magento 2 admin redirect after adding varnish

I just added varnish cache to my site. Before I added it, I was able to get onto the admin panel. After adding it, though, trying to get to the admin panel results in an infinite redirect loop. It ...
1 vote
1 answer
2k views

Configure php-fpm in magento2.4 correctly

php-fpm is consuming a large amount of memory, forcing the instance to restart. The server would like to know the configuration or the procedure for an ideal configuration. server: 4vcore memory: ...
0 votes
1 answer
508 views

Execute custom php file outside /pub folder in Magento2 Nginx

I would like to execute a custom php file (required for a validation and scan) on our Magento2 installation. The file however should remain and be located in the main /var/www/html/ folder and not in ...
  • 1
0 votes
2 answers
1k views

Magento 2 + Varnish + Nginx + Multiple Order Placed from IPs

I am having a similar problem. the "Placed from IP" for all of my sales emails looks like this : 127.0.0.1 (XX.XXX.XX.XX, yy.yyy.yy.yy, 127.0.0.1) I believe the correct IP is the one marked ...
0 votes
1 answer
216 views

First session add to cart action empties cart / clears session

I'm running an Nginx sandwiched Varnish backed magento 2.3.6 shop in development mode, set up like: Frontend nginx port 443, varnish port 80, backend nginx port 8080, plus redis for session cache. ...
  • 1
0 votes
2 answers
953 views

Magento 2.3.3 + Varnish + Nginx + SSL + CentOS - 302 Too May Redirects

Hoping there are some Varnish guru's out there that can show me my mistake here. I'm experiencing an endless 302 redirect for both the frontend and admin. Here is my configuration: Nginx Configuration ...
  • 43
0 votes
1 answer
299 views

Configure MAMP PRO to run Magento 2 on Nginx

I'm trying to run magento 2 with Nginx on Mamp. But I'm always getting error in logs 2021/02/19 12:38:13 [error] 10836#0: *211 upstream sent too big header while reading response header from upstream,...
  • 21
0 votes
1 answer
560 views

Magento 2 + FastCGI (Nginx + PHP-FPM) don't work (404)

I try to use Magento 2.4.1 + FastCGI (Nginx + PHP-FPM), but I get 404 error for every page. PHP 7.4.15 MySQL 8.0.23 Nginx 1.16.1 Ubuntu 18.04 Nginx conf: server { server_name mysite.com www.mysite....
  • 11
4 votes
2 answers
4k views

Magento 2: Failed to set ini option “session.cookie_samesite” to value “Lax” when updating to - 2.3.6-p1

We're working on updating to Magento 2.3.6-p1. Everything runs and builds properly, but we're getting an error report as well as an error logged in our System.log. The error it's throwing is in line ...
0 votes
1 answer
1k views

Permission denied error when trying to access magento2 prior to installation on Ubuntu 20.04 / nginx / php 7.4

What I've done so far, Installed nginx 1.19.6 Installed php 7.4 and all required extensions in Magento Documentation Installed and configured MySQL as per documentation, and created magentodb ...
  • 1
0 votes
0 answers
307 views

Can't access Phpmyadmin page

I have installed Magento 2.4.1, Nginx, Mysql8, PHP 7.4 and PHPmyAdmin on Debian 10 on ec2. I have done all the steps from this guide: https://www.digitalocean.com/community/questions/how-to-install-...
  • 1
0 votes
1 answer
1k views

Magento 2 + Nginx (connection refused)

I have issue with Magento 2 + Nginx server. My magento 2 all website page is error "ERR_CONNECTION_REFUSED". Something wrong with my server configuration? My server configuration Path: /etc/...
  • 441
0 votes
1 answer
433 views

Magento 2 rules for Nginx setup

Magento 2, what are the Magento 2 rules to be added & where to run Magento 2 in Nginx. My server guy asked me to add rule in mnt/data/home/xyz/redirector.conf file But I am unaware of the what ...
  • 3,476
0 votes
0 answers
166 views

Magento 2.2.6 CMS homepage content goes here

I am getting CMS homepage content goes here. content on the front page as well as on the admin panel with no images and any other content, how to resolve this issue. Run below commands also sudo find ...
  • 141
0 votes
1 answer
76 views

Basic Auth / Restricting backend admin panel for M1

Good evening. Should it not be possible toeither restrict or use basic auth on the admin panel for login? Just as an extra security layer. Can there be any flaws/errors regadring 3rd party extentions ...

1
2 3 4 5
8