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
1 answer
42 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 ...
  • 361
0 votes
1 answer
254 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
8 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
16 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
35 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
68 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
76 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,336
1 vote
1 answer
19 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://...
  • 660
0 votes
0 answers
40 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
109 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 ...
0 votes
0 answers
138 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 ...
1 vote
1 answer
59 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 ...
0 votes
0 answers
311 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 ...
1 vote
1 answer
306 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 ...
  • 972
1 vote
3 answers
859 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
159 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
54 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 ...
  • 471
0 votes
1 answer
207 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
159 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
31 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
201 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 {...
  • 107
0 votes
1 answer
525 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
191 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
358 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
170 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 ...
  • 195
0 votes
1 answer
713 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
285 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
840 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
190 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
711 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
232 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
456 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
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 ...
0 votes
1 answer
749 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
237 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
667 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
252 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,466
0 votes
0 answers
144 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 ...
  • 131
0 votes
1 answer
66 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 ...
0 votes
0 answers
273 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.
1 vote
0 answers
154 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"; ...
  • 131
1 vote
0 answers
420 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 ...
1 vote
3 answers
571 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 ...
  • 107
1 vote
3 answers
208 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 ...
  • 107
1 vote
1 answer
261 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 ...
  • 105
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.
  • 105
1 vote
0 answers
22 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 ...
  • 105
1 vote
0 answers
28 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/...
  • 105
0 votes
1 answer
19 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 ...
  • 1

1
2 3 4 5
8