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
1 vote
0 answers
20 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....
user avatar
  • 7,366
1 vote
1 answer
14 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://...
user avatar
  • 650
0 votes
0 answers
12 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/...
user avatar
0 votes
1 answer
36 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 ...
user avatar
0 votes
0 answers
69 views

Error 404 backend when using Varnish

I have installed magento 2.4.3-p1 on Ubuntu 20.04 with Varnish 6, Lets encrypt SSL and nginx. Everything was working until i installed and enabled varnish and edited nginx to listen on port 8080. I am ...
user avatar
1 vote
1 answer
42 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 ...
user avatar
0 votes
0 answers
123 views

How to configure two different nginx server port to setup two different Magento version website

I want two setups two different versions of Magento 2 on my local nginx machine, v2.4.2 and v2.3.7 mapped with two different domains. One version(2.4.2) is working fine on my nginx server at port 80 ...
user avatar
1 vote
1 answer
148 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 ...
user avatar
  • 892
1 vote
3 answers
563 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 ...
user avatar
0 votes
2 answers
65 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 ...
user avatar
  • 1
0 votes
1 answer
36 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 ...
user avatar
  • 471
0 votes
1 answer
111 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 ...
user avatar
0 votes
1 answer
93 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, ...
user avatar
0 votes
0 answers
21 views

Nginx on Magento 2.3.2 not rewriting the /version on request urls

I am desperate with this. I have the following config files: upstream fastcgi_backend { # use tcp connection # server 127.0.0.1:9000; # or socket #server unix:/var/run/php5-fpm.sock;...
user avatar
0 votes
1 answer
28 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 ...
user avatar
  • 1
0 votes
0 answers
92 views

Nginx to phpfpm connection refused

I am trying to use https://github.com/markshust/docker-magento. I followed instructions for "Manual Setup=>Existing projects", but website doesn't load in the browser. It seems there is ...
user avatar
  • 195
0 votes
0 answers
160 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 {...
user avatar
  • 107
0 votes
0 answers
185 views

Magento : Recieving errors when config nginx varnish on docker

I recieving error nginx: [emerg] host not found in upstream "varnish" in /etc/nginx/conf.d/default.conf:53 error in varnish log Backend host '"web"' could not be resolved to an ...
user avatar
0 votes
1 answer
383 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 ...
user avatar
0 votes
1 answer
124 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 ...
user avatar
0 votes
1 answer
239 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() ...
user avatar
  • 23
0 votes
1 answer
121 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 ...
user avatar
  • 195
0 votes
1 answer
519 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 ...
user avatar
1 vote
1 answer
1k 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: ...
user avatar
0 votes
1 answer
128 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 ...
user avatar
  • 1
0 votes
2 answers
597 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 ...
user avatar
0 votes
1 answer
148 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. ...
user avatar
  • 1
0 votes
2 answers
519 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 ...
user avatar
  • 43
0 votes
1 answer
155 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,...
user avatar
  • 21
0 votes
1 answer
353 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....
user avatar
  • 11
4 votes
2 answers
3k 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 ...
user avatar
0 votes
1 answer
580 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 ...
user avatar
  • 1
0 votes
0 answers
184 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-...
user avatar
  • 1
0 votes
1 answer
475 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/...
user avatar
  • 431
0 votes
1 answer
118 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 ...
user avatar
  • 3,426
0 votes
0 answers
133 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 ...
user avatar
  • 121
0 votes
1 answer
53 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 ...
user avatar
0 votes
0 answers
250 views

Magento 2.4 PWA : How to setup with LEMP stack using Docker

If someone setup Magento 2.4 PWA using Docker with LEMP stack... Please give me supports.
user avatar
1 vote
0 answers
106 views

Add Basic HTTP Auth on the entire site hosted on Nginx

During development, I would like to block access to the entire site. I created a .htpasswd file and I can't work out where to add the following two lines: auth_basic "Restricted Content"; ...
user avatar
  • 131
1 vote
0 answers
371 views

Magento 2 Nginx and ubuntu Post installation Permission and Ownership issue

I have installed Magento2 on AWS EC2 instance. I am using Nginx, Php-fpm and Ubuntu 18.04 for my magento2 installation. Magento 2 is installed successfully but whenever I run command php bin/magento ...
user avatar
1 vote
3 answers
450 views

Magento 2.3.x Admin Panel keeps loading

I have installed Magento 2.3.5-p1 and also tried 2.3.4-p2 on Centos 7, with Nginx & PHP-FPM, maria DB with following commands. 1. /var/www/magento < owner by MAGENTO:NGINX user (I have created ...
user avatar
  • 107
1 vote
3 answers
174 views

Installation Problem Magento 2.3.5p1 on Centos 7

I have been trying to install Magento on Centos 7 with Nginx and Maria Db for the past 2-3 days now but each time I got errors. I have tried several ways and changed Nginx configuration file and tried ...
user avatar
  • 107
1 vote
1 answer
253 views

Why do I get 404 on magmi/web/magmi.php for Magmi in Magento 2.3 - Lemp?

After download magmi from https://github.com/macopedia/magmi-m2 ( Branch: magento2) and paste into root folder, then run www.giri.local/magmi/web/magmi.php getting 404 error page not found. How to ...
user avatar
  • 103
3 votes
0 answers
21 views

Magento 2.3 - After setup Multi-website CSS unknown error - LEMP (Centos 7 - Nginx)

After configure multi website using https://magento.stackexchange.com/a/117930/57334 css not loading. Note: My main website working, multi Website only getting this error.
user avatar
  • 103
1 vote
0 answers
21 views

Magento 2.3 - LEMP - Nginx hosts - Backend & frondend url 404 error

My LEMP localhost URL : 192.168.1.64:8087/giri I want to stup multiwebsite so that i have configured url like www.giri.local by using follow steps, Nginx : etc/hosts 192.168.1.64:8087 www.giri.local ...
user avatar
  • 103
1 vote
0 answers
27 views

Magento 2.3 - How to setup LEMP - Multi Website Localhost url setup on Nginx

For testing, we using Magento 2.3.4 in localhost [Centos 7 & Nginx] Main-store Path & URL: Path : usr/share/nginx/html/gomart - URL : http:// 192.168.1.64:8077/ Multi-Store URL : Path : usr/...
user avatar
  • 103
0 votes
1 answer
18 views

Hide access to Magento

I have a Magento that I would only like to access from another web portal. If the user copies the Magento base url, I don't want the portal to appear. You should only be able to access Magento if the ...
user avatar
  • 1
1 vote
1 answer
166 views

Magento 2.3 - LEMP Localhost - For Multi Website where should be create Symbolic links folder - Root folder or Pub folder?

I just want to create multi-website, i read some links to guide me to create a subfolder and create symbolic links of app,pub,lib,var and copy index.php & .htaccess from root folder to a subfolder....
user avatar
  • 103
0 votes
1 answer
3k views

emerg duplicate upstream "fastcgi_backend"

I'm setting up a vhost for my magento site. So basically I have 2 store namely store1 and store2. Since this 2 store is using the same code and DB I setup the vhost in NGINX almost identical. The only ...
user avatar
2 votes
1 answer
3k views

Some pages on Magento 2 website displaying Error 502 when Varnish cache is enabled - website hosted on Ubuntu 18.04 Nginx VPS

I have installed a fresh copy of Magento 2 (2.3.5 with sample data) on a VPS which has the following stack: Ubuntu 18.04, Nginx, Mysql, and PHP 7.2 FPM. This vanilla installation worked. However, ...
user avatar
  • 23

1
2 3 4 5
8