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.
357
questions
0
votes
1answer
33 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
20 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
19 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
19 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....
2
votes
2answers
498 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
10 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
29 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
33 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
19 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
56 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
67 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
17 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
7 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
32 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
12 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
108 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
60 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
18 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
21 views
Magento 2.3 - How to update Access-Control-Allow-Origin after move multi-site from localhost to live
Afte move multi-site localhost to live how to update Access-Control-Allow-Origin
nginx.conf:
## Example configuration:
# upstream fastcgi_backend2 {
# # use tcp connection
# # server 127.0.0.1:...
0
votes
0answers
106 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
29 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
96 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
111 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
105 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
135 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
19 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
58 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
0answers
22 views
Nginx NoFollow for specific URL
I'm having difficulty with NGINX config file for magento.
I want to add add_header X-Robots-Tag "noindex, nofollow, nosnippet, noarchive"; to URLS which contain the string "testing&...
0
votes
1answer
1k 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
1k 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
455 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
172 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 ...
0
votes
0answers
96 views
403 Forbidden on saving admin configuration in Magento 2.2.2
Getting 403 Forbidden error while saving the Admin Catalog -> Catalog configuration only. Remaining all configurations are saving without any error.
And also, When Save/Update the products which are ...
0
votes
1answer
12 views
Can we block Search Engine crawlers from indexing system URLs
Can we block access for Search Engine Crawlers to all system URLs.
I know we can do this by adding rules to robots.txt.
But can we also achieve this on the server level (Nginx)
Thnx, and Kind ...
0
votes
2answers
771 views
Varnish Cache not working Magento 2.3, iginx proxy and apache2 backend webservers
I have a site setup with nginx as proxy serving an apache2 server, I'm trying to implement varnish caching.
nginx is listening on 443 and 80
varnish is configured to listen on 8080
apache2 is ...
0
votes
0answers
70 views
Magento 2: permissions keep resetting after running cli commands
I have Magento 2.3.4 installed on a test server with Ubuntu 18.04 + nginx + php7.2. The website displays fine, until I run cli commands (e.g. setup:upgrade, setup:di:compile) that result in newly ...
0
votes
0answers
24 views
Magento multi website not working
I am trying to configure multiwebsite setup using magento 2.3.5 on nginx webserver on my localsystem.
The main website is http://www.myshop.com
and other is supposed to be http://myshop1.myshop.com
...
0
votes
1answer
104 views
Image randomly missing with Varnish on Magento2
I'm currently struggling into getting the correct configuration for my M2 shop and i can't figure out on how to troubleshoot this.
On some images, varnish backend is randomly returning 503 backend ...
0
votes
0answers
9 views
Forms are not working with domain name
ISSUE: All the forms aren't working at frontend.
Whenever I use base urls as domainname.com the forms are not getting submitted. And I get the below error
main.DEBUG: Request validation failed for ...
0
votes
1answer
15 views
Magento 1/theme or NGinx fault? 404 on some theme feature settings
We've got Magento 1.9.4.4 on nginx/1.14.2 and PHP v7.3.14 and we're using EM Titany (free) theme.
I've just moved the shop from an old server to a new one (PHP5 to PHP7) and things have been working ...
0
votes
0answers
21 views
Magento 1.9 - Varnish, nginx and redirects (http -> https and non-www to www)
trying to redirect all non-www traffic to www and all http traffic to https.
Environment is Magento 1.9 with Varnish and nginx. We also have Cloudflare (fully SSL enabled). Using the code below in ...
0
votes
1answer
156 views
Multistore magento error: Call to a member function getDefaultCurrencyCode()
I have a running version of magento 2.3, php 7.3 and nginx.
The default store and another store work fine and are displayed correctly.
Whenever i try to use a different store code other than the 2 ...
0
votes
1answer
408 views
Magento 2 on nginx with another nginx as a proxy
I have a VM running ngnix with magento 2 . internally , my vm is resolved by :
marketplace.corp.mycloud.com
From the internet, it is resolved with :
marketplace.mycloud.com
Http is working fine so ...
0
votes
0answers
30 views
nginx configuration for magento 2 on domain with sub directory
I got a scenario of install different magento code on same domain, but with different subdir.
For Example:
http://foo.bar/magento1 -> magento 2.2.x -> /var/www/html/magento1
http://foo.bar/magento2 ...