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.

160 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
6
votes
0answers
4k views

Magento 2 with nginx throwing 404 error on setup

Can you please help me to solve the same problem.? I'm trying the magento 2 with nginx on my local environment. I'm getting a problem when trying to call my project for installation htttp://...
6
votes
2answers
1k views

New website/store view, all pages 404 (including homepage)

As per the title, I've set up a new store on a different domain and all pages including the home page are returning 404. I've tried pretty much everything, and I'm wondering if any of you can think ...
4
votes
0answers
3k views

Multiple Magento 2 Instances on Nginx Server Duplicate Listen

I have a dev environment where i want multiple instances of Magento 2 however when adding a second site my Nginx config throws the following error on restart: nginx[10338]: nginx: [emerg] duplicate ...
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.
3
votes
1answer
475 views

Permission issue when installing with nginx

I have installed different Magento sites using nginx. I have 5 sites, 4 of them use php7.1 and there's one that uses php7.0. I have created two different sites-availaible: And both of them have ...
3
votes
0answers
679 views

The store that was requested wasn't found

I just made new magento2 project. I got this: Magento\Framework\Exception\NoSuchEntityException: The store that was requested wasn't found. Verify the store and try again. I copied nginx config ...
3
votes
1answer
465 views

how to add expires headers in magento cloud?

I have problem with expires headers. I am using magento cloud with nginx server.
3
votes
1answer
101 views

Why nginx shows product list in “html” form instead of “phtml”

When i mouse hover on product list then it shows likes "dove.html","computer.html" etc instead of "dove.phtml","computer.phtml". In apache server it shows "dove.phtml","computer.phtml" etc and ...
3
votes
1answer
2k views

Magento NGINX allow IP/deny all for downloader folder

I'm having a problem allowing my IP address access to the downloader folder when using nginx to deny all other IP's. Any ideas where I'm going wrong with the below? I've tried with my IPv4 and IPv6 ...
3
votes
0answers
2k views

Leverage browser caching having Varnish installed

Magento is running on 1.9.x, and web server is Nginx having Varnish installed on it using Turpentine plugin. Site speed is very fine when running from any browser due to Varnish cache but page speed ...
3
votes
0answers
171 views

Keep old urls for default store view in magento after enabling store code in urls

I have enabled store codes for my Magento website and it is working fine. I have two store views, arabic and english. For arabic, i have store code ar and en for english. My default store view is ...
3
votes
2answers
959 views

Remove default store code from URL, only?

mage 2.1.7 "use Store code in URL" set to YES. Have 3 stores, one for our default/original store at "/" with code "france" and one for our south korea and north korea stores. The default store is ...
2
votes
1answer
37 views

Redirect subdomain with nginx

I have some subdomain from the old site like 123.abc.com and I want to redirect them to abc.com/123. I have installed magento 2.3.2 and nginx as webserver.
2
votes
0answers
167 views

allow any php script instead of 404 page?

I am trying a new local development method on windows using magento 2 on vagrant on windows and it's up and running. Now I'm trying to add xdebug with PHPstorm but it's unable to "see" an uploaded ...
2
votes
0answers
35 views

Magento 2.2.7 NGinx Error

Hello as you can see in the title: I have nginx installed it is working fine PHP 7.1 Installed PHP-XML Installed PHP-DOM But still getting this problem when i for example want to clear cache. pelase ...
2
votes
0answers
100 views

NGINX 404 error despite Magento Installation complete on CentOS 7 terminal

I am trying to load the /admin part of my development build of the website. I am unsure what could be the cause of this. Using this command: (Some of these details are intentionally not in line with ...
2
votes
1answer
514 views

Magento 2 : Running multiple websites in nginx

I am trying to run magento with marketplace site it supports only one base currency. so we thought to create multiple websites inside magento admin . www.example.com/in/marketplace www.example....
2
votes
0answers
132 views

Elasticsearch 6.6 with Magento 2.3 and Nginx, need a proxy?

I am installing Elasticsearch 6.6 on my system (Ubuntu 18.04 with Nginx 1.14) and to configure Elasticsearch and Nginx, I find in the official documentation the following section: Configure nginx and ...
2
votes
1answer
631 views

Steps Install Elasticsearch 6.6 for Magento 2

I have many problems when installing Elasticsearch on my server. I'm going to put the steps that I followed in case someone can tell me if I'm missing something or not, please, or if I need to install ...
2
votes
3answers
1k views

(Pre-installation) ownership and permissions problems (CentOS / NGINX)

This is my first time installing Magento and I feel quite stupid getting stuck so early in the proces. I followed the official documentation to install Magento 2.3 by the book. Fresh CentOS 7 ...
2
votes
0answers
211 views

Magento 1.9: Maximum execution timeout after login

Description: After a customer logs into my shop, the script receives a stack overflow, execution timeout or exhausted memory size. But only at one store view (en_GB). I guess it's a loop. I have only ...
2
votes
0answers
344 views

Magento 2 Install XHProf in nginx?

I am trying to setup XHProf in nginx server but some of reason I am unable to success. I follow and read XHProof magento 2 Any one try and success to configure it.
2
votes
0answers
2k views

Magento 2 - Multi Website on same domain with subdirectory

We have an nginx, varnish setup of a Magento 2.2.2. installation in production. There are several websites which can be accessed via store view code. This looks like this: domain.com/us/ domain.com/...
2
votes
1answer
3k views

Why Magento is using high CPU in AWS?

I'm having a problem that is occurring after the volume of concurrent users on my site has increased. I'm currently with almost 600 concurrent users and the server is using 100% CPU. To alleviate ...
2
votes
0answers
448 views

Magento 2 nginx ssl problems

I have Magento 2 installed on ubuntu 16.04 with nginx webserver. The site is working pretty good, then i try to enable whole site SSL from letsencrypt and I run into problems. my root dir is /var/...
2
votes
0answers
250 views

Multi-Store issues in Magento using Nginx

I have two stores within a single installation of Magento 1.9, both stores have their own domain name (domain1.com and domain2.com). The problem is that the second store isn't working when the user ...
1
vote
0answers
25 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
33 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
82 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
73 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 ...
1
vote
0answers
18 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/...
1
vote
1answer
380 views

Magento 2.3.3 on Centos 7 with Nginx using composer - Website not working?

Following tutorial : https://devdocs.magento.com/guides/v2.3/install-gde/composer.html After download magento by using, composer create-project --repository=https://repo.magento.com/ magento/project-...
1
vote
0answers
131 views

Magento 2 Category page showing 504 Gateway Timeout Error

My store is working fine which is developed in Magento 2 but when I am trying to access any category pages then I am getting 504 GATEWAY TIMEOUT. I am using NGINX webserver. This issue is only for ...
1
vote
0answers
1k views

How to Debug {“identifier”:“LOCKED_RECORD_INFO_SYSTEM_CONFIG”}} []

My Centos - Nginx Configuration, etc/nginx/conf.d/magento.conf server { listen 8087; server_name abc; set $MAGE_ROOT /usr/share/nginx/html/abc; include /usr/share/nginx/html/abc/nginx.conf.sample; ...
1
vote
0answers
418 views

Magento 2.3 - Intergration varnish cache with, error socket :80: address already use

When I check status Varnish, always receive error : Error: Could not reopen listen socket :80: Address already in use. But, run command sudo netstat -nlpt, don't have process using port :80 ??? ...
1
vote
1answer
49 views

Can't see Magento 2 front nor admin page on excluded IP when in maintenance mode. Using Varnish

So as I said, I am trying to see my website while others see it in maintenance. BTW I have Varnish configured. What I did: magento maintenance:enable --ip=<my-ip-address> What hapened: At ...
1
vote
0answers
253 views

Magento 2 multistore view switcher not working with multiple domains

When switching to another store view in the Magento front end, Magento responds only by redirecting back to the main store view domainstoreview1.tld/en_GB. The site worked ok with all the store views ...
1
vote
0answers
375 views

Magento 2 Varnish config

I am trying to get Magento 2, Varnish (in Plesk Docker) and Nginx to work with SSL but I just get Error 503 My nginx.conf #ATTENTION! # #DO NOT MODIFY THIS FILE BECAUSE IT WAS GENERATED ...
1
vote
0answers
428 views

Magento 2 - Nginx does not rewrite media with alias

I had a problem, with Nginx using the configuration from default nginx.conf.sample. When a client is accessing yet not existing cached product image, Nginx should rewrite the request to script /pub/...
1
vote
0answers
343 views

Hide Authorization Token from Request Headers in browser for headless magento 2

We are using reactJS as frontend for magento 2 website using magento 2 rest APIs. But the authorization token is visible in the browser dev tools posing security risk. Kindly suggest a way to hide ...
1
vote
0answers
177 views

How to rewrite store view code in Nginx?

I have some trouble to fix this issue. I have a Magento 2 installation with two websites and several store views: https://www.websiteone.com/onenl https://www.websiteone.com/oneen https://www....
1
vote
1answer
145 views

Nginx redirect for -only- homepage of old domain, to homepage of new domain

On the server.rewrites file within the nginx/ map, I have the following logic for redirecting the homepage of an old domain, to the homepage of a new domain: if ($http_host ~ ^(www\.)?olddomain.com ) ...
1
vote
0answers
269 views

Magento 2.2.7 - PHP Fatal error: Uncaught Error: Class 'DOMDocument' NGINX

Hello as you can see in the title: I have nginx installed PHP 7.1 Installed PHP-XML Installed PHP-DOM But still getting this problem when i for example want to clear cache. pelase Help PHP Fatal ...
1
vote
0answers
141 views

Magneto 2: How to configure a rest api only server for best performance?

I know magento have some recommendations for the best performance. And I found several articles related. But nothing specific for servers that provide access only by the Rest API. Because everyone ...
1
vote
1answer
2k views

Nginx not loading CSS and JS from Magento 2 site

Im creating a Magento 2 store based on Nginx web server, i have installed everything and i can see the site, but the JS and CSS are not loading, have done the content deploy and everything with ...
1
vote
2answers
63 views

Still getting issue with right permission can't create directory “generation”*

I have already tried several solutions to solve my problem but it still does not work. The "var / generation" folder is already under "777". "chmod -R -v 777" I am under centOS7 and I use nginx and ...
1
vote
1answer
107 views

Question about Magento speed and adding Varnish cache

I got a task to speed up Magento 2 site. Now im facing with a huge problem. Site is hosted on shared hosting (quite good and reputable company). There is plenty of power but every shared hosting has ...
1
vote
0answers
903 views

SSL, Nginx, Varnish - Too many redirects

I know there are several questions on this issue, but no solutions seems to work for me. I have Magento 1.9 running on Nginx port 8080 and with Varnish in front running on port 80. Without SSL it's ...
1
vote
2answers
793 views

No varnish headers

I install varnish(5) just like here: https://devdocs.magento.com/guides/v2.2/config-guide/varnish/config-varnish.html I make test from varnish cli varnishd -d -f /etc/varnish/default.vcl start ...