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
0answers
10 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;...
0
votes
1answer
15 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 ...
0
votes
0answers
7 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 ...
0
votes
0answers
53 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 {...
0
votes
0answers
27 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 ...
0
votes
1answer
50 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
1answer
35 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
1answer
39 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() ...
0
votes
1answer
52 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 ...
0
votes
1answer
77 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
1answer
309 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
0answers
27 views

Magento 2.2 - 502 Bad Gateway nginx/1.12.2

i have used AWS shared hosting. i'm getting bellow error on multi-vendor products edit. 502 Bad Gateway nginx/1.12.2 please help me solve this, its urgent. i'm only getting this error on production ...
0
votes
1answer
17 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 ...
0
votes
2answers
169 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
1answer
74 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. ...
0
votes
2answers
121 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 ...
0
votes
1answer
45 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,...
0
votes
0answers
8 views

Magento 2.4.1 EE Static content auto generate failed in developer mode

I am using Mac M1 Chip and installed nginx, php7.4, composer, mysql8.0 and Magento 2.4.1 EE. I have set developer mode but the static content files not generate automatically. If I execute php bin/...
0
votes
0answers
80 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....
3
votes
2answers
2k 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
0answers
13 views

Static content doesn't load with nginx, works with apache

I'm setting up a staging server for a server that's already in production and functioning with Apache. My staging I'm setting with nginx because I want to test the performance difference. When I ...
0
votes
1answer
209 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 ...
0
votes
0answers
86 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-...
0
votes
0answers
39 views

why I got Unauthorized user error in magento 2 (Scandipwa)?

I am working on sacndipwa on magento 2 (using nginx server). I have changed the user login process from email and password to OTP (just send customer an otp on his/her number and login after otp ...
0
votes
0answers
143 views

Magento 2 and Nginx configuration

I have problem get right configuration for magento 2 and nginx. My website is error "403 Forbidden" for http and https urls. I try make changes but it is often error nginx: [emerg] "...
0
votes
1answer
211 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/...
0
votes
1answer
25 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 ...
0
votes
0answers
11 views

Magento 2 Storefront and admin panel empty

On my Magento 2.2.6 with Nginx php-fpm centos 7 storefront & admin panel shows an empty page with a message "CMS homepage content goes here." Applied these commands also sudo find var ...
0
votes
0answers
37 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 ...
0
votes
0answers
13 views

magneot 2.4 nginx css js issue

i have installed magneto 2.4 using nginx site is working fine with HTTP but i have to run it with HTTPS and some how able to run with HTTPS but issue is that my CSS ana JS is called with HTTPS.... ...
0
votes
0answers
11 views

magento admin redirecting to http://default/search/admin%20adminhtml

i ran setup:upgrade; di:compile; cache:flush; in staging server. then suddenly i can no longer access the magento admin. evrytime i hit the admin url it redirects me to http://default/search/admin%...
0
votes
0answers
16 views

Magento 2 Admin Extension Button Not Showing Javascript

We have Latest Mirasvit Advance Feeds extension installed on our Magento 2.2.2. site PHP 7.1 - all the features of the extension are loading fine apart from the + button in the category mapping ...
0
votes
0answers
156 views

nginx config Magento 2.4 - css js not loaded

I am new to nginx, I have just installed it two days ago, was searching for the correct configuration but still having issue with css js not loaded, already checked permissions and deploy files ...
0
votes
0answers
88 views

Sporadic, Frequent, Unreproducible 502 Errors during Admin Functions and Frontend Search and Checkout, M2.3.2 Commerce On-Prem w/ Nexcess Cloud Server

A recently launched a 2.3.2 Magento on-premise on Nexcess with Cloudflare over 2 months ago and have been experiencing sporadic, untraceable, non-reproducible 500 & 502 errors/timeouts that have ...
0
votes
1answer
22 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
0answers
174 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
0answers
56 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"; ...
1
vote
0answers
210 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
3answers
230 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 ...
1
vote
3answers
122 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 ...
1
vote
1answer
187 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 ...
3
votes
0answers
20 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.
1
vote
0answers
19 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 ...
1
vote
0answers
21 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/...
0
votes
1answer
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 ...
1
vote
1answer
88 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....
0
votes
1answer
2k 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 ...
2
votes
1answer
2k 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, ...
1
vote
2answers
803 views

Nginx throwing 404 - Magento 2 Docker Environment for Windows 10

I've been struggling to find a good working Docker container to start working on Magento 2 under Windows 10. I created my own based on this tutorial:https://tech.osteel.me/posts/docker-for-local-web-...
2
votes
2answers
194 views

Magento 2.3 - LEMP Localhost - How to configure Nginx for Multi-Website store on Localhost (Centos 7)

Where is an error in my following steps for creating Multi Website Store :: Steps :- Main website Path : usr/share/nginx/html/giri Contains all magento files Configuration in nginx.conf.sample for ...

1
2 3 4 5
8