Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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.

0
votes
1answer
23 views

How to redirect subdomain to subdomain?

I have a question for config url rewrite on .htaccess file. On my store have two language is English and German. I setup English with domain main.cocal and German is de.main.local. so for now I want ...
0
votes
0answers
14 views

Magento 2 + NGINX + REDIS + VARNISH + SSL Changing to Developer mode

in Production Mode everything is fine. When i change to Developer Mode i have this Problem because its MIME type ('text/html') is not a supported stylesheet MIME type, and strict MIME checking is ...
0
votes
0answers
16 views

Magento2 Multistore only showing default website [duplicate]

So I have been struggling with this multiple times now and every time just procrastinated it because it wasn't a priority. We are running a Magento 2.2.2 store using php 7.1.22 and Nginx 1.14.0. We ...
1
vote
3answers
70 views

How to switch between PHP versions on Ubuntu Nginx [closed]

I have PHP 7.0 and 7.2 installed. For now, I use PHP 7.0. How can I switch to PHP 7.2?
2
votes
0answers
27 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 ...
1
vote
0answers
25 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
23 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 ...
0
votes
0answers
11 views

Magento Cloud 2.2 Multi Store - Local setup

I am trying to setup a Magento Cloud 2.2.2 site that has a multi store setup running. I am using Vagrant, with PHP 7.1 and Nginx. Nginx is using the stock M2 Ngxin conf, with added SSL support. ...
2
votes
1answer
98 views

Upstream sent too big header while reading response header from upstream

We're running Magento 2.3.1 on AWS EC2(t2.medium) Instance with an ELB. Webserver is nginx. Sometimes, we receive the "Upstream sent too big header while reading response header from upstream."-Error ...
0
votes
1answer
12 views

Magento production mode note set

Magento production mode note set display like http://prntscr.com/n6kl5q VPS server 8GB RAM, Nginx server php vesion :Php 7.2 /etc/php/7.2/fpm/php.ini (php Memory limit =4G) /etc/php/7.2/cli/...
0
votes
1answer
75 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 ...
2
votes
0answers
36 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
0answers
23 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 ...
2
votes
1answer
34 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
2answers
127 views

Magento 2 query url rewrite

If I have URL like this - mainpage.com/products?test_category=99 and want it to be rewritten to this mainpage.com/testproducts Since magento2 URL rewrite won't take query how can this be ...
0
votes
1answer
77 views

Rewrite rule for media images

we need to set rewrite rule for some images in Magento 2.2.5 using .htaccess rules or nginx conf Example 1 Request Path: https://www.example.com//media/catalog/product/cache/1/thumbnail/543x403/...
0
votes
1answer
29 views

Expose feed file in /pub

I dare say this is a newbie question but I've not found anyone else asking it. I am going through a steep learning curve having just taken over a site running magento 2.2.6 on magestack on nginx (...
2
votes
0answers
239 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 ...
1
vote
0answers
73 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 ...
1
vote
0answers
135 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 ...
0
votes
2answers
55 views

How can I convert 302 to 301 redirect?

https://newsite.com to https://www.newsite.com results in a 302 redirect. Not sure from where this temporary redirect is coming. Site nginx configuration has only 301 redirects. Here is the ...
0
votes
1answer
101 views

Problems with Elasticsearch install Ubuntu

I have installed on my Magento 2.3 server and an annotation has arrived for me to install Elasticsearch. This is my system: Ubuntu 18.04 Nginx 1.14.0 MySQL 5.7.25 I have followed these instructions: ...
3
votes
1answer
113 views

how to add expires headers in magento cloud?

I have problem with expires headers. I am using magento cloud with nginx server.
2
votes
3answers
124 views

Adding a subdirectory path in url to website url

I am trying to set up magento 2 in a subdirectory via nginx ? i want my url to be http://mywebsite.com/shop/ If I run my website with base url : http://mywebsite.com/ .It works but when I add /shop/...
0
votes
1answer
26 views

Images not loading and size and color dropdown also not loading with Apache and NGINX

im struggling with Magento 2.2.4, its giving so many errors. Initially we had Apache web server with PHP 7.1 and NO nginx. In this scenario sometimes the color and size dropdown were not getting ...
0
votes
0answers
10 views

How to resolve 403 error after I turn on SEO on Magento on nginx

I am running Magento 1.9 on Nginx and I turned on SEO on admin. I am getting a 403 error after clicking on "Login" link, which now forwards me to https://sitename.com/vendor/dashboard instead of ...
0
votes
0answers
156 views

404 not found Nginx Magento 2

I faced an issue Nginx Configuration with Magento 2 Only home page working fine All other pages are display 404 not fount error OS Centos 6 /etc/nginx/conf.d.ssl.conf server { listen 443 ...
0
votes
0answers
67 views

How do I set up multiple server blocks in Nginx with mysql and php-fpm magento 2.2.3

I am trying to setup a development environment in Nginx. Here is the server configuration: Ubuntu 18.04 PHP7.1 MYSQL5.7 PHP-FPM The live environment is working fine. root for live is: /var/...
1
vote
2answers
196 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 ...
0
votes
0answers
18 views

Custom Customer Attribute which is an image not displaying after upload on Nginx web server

I'm out of ideas so I'm needing a help from the experts here. This is the situation. I created a custom customer attribute which is an image. It enables the customer to upload image in the customer ...
0
votes
0answers
169 views

Magento 1.9 Storefront in subfolder not quite working

Really frustrating issue at the moment. We're moving from having languages on subdomains to subfolders instead. Nginx server. It's partly working, but not quite... https://www.example.com/ - works ...
0
votes
0answers
39 views

Magento 2.1.16 theme fallback not working on NGINX server

Thank you for the help. I already did it and it worked a bit. But there were other sections of the theme which were broken. Finally, after spending some more issue, I found that after upgrade to ...
0
votes
0answers
42 views

Access Magento Admin on Subdomain

I have a running store on Magento 2 which has multiple websites that I can access in the front end without any problems, for example: https://siteone.mymagestore.com https://sitetwo.mymagestore.com ...
0
votes
1answer
241 views

magento with nginx not found page show as defualt one with one magento html

when i type any invlaid url it shows like below instead i want to show my website page current setting of nginx.conf (in magento root folder) root $MAGE_ROOT/pub; index index.php; autoindex off; ...
0
votes
0answers
59 views

magento2: pagespeed broke js load

i'm running on magento2.2 under nginx with pagespeed mode enabled. i've found that some of scripts is not loading correctly because of pagespeed: pagespeed Disallow "*/filename.js"; not helped. will ...
1
vote
2answers
528 views

Static Content 404 with Magento 2 and Nginx

Preface: I have read through as many posts as I can find about this issue, but I have tried all solutions suggested already. The Issue Using a quick docker setup to get a local instance of Magento 2 ...
2
votes
1answer
291 views

Get Error SessionHandler::read() When installing Magento 2 with Nginx

I downloaded magento 2.2.5 and try installing with nginx server, but I got blank page in the installation and then I saw the this error in the report file : {"0":"Warning: SessionHandler::read(): ...
0
votes
1answer
30 views

Adding url rewrites directly into database

Ive just added around 100 url rewrites directly into the url_rewrites db table but Magento doesn't use them, Ive reindexed and cleared the cache but really don't know what to do next - what am i ...
1
vote
2answers
42 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 ...
2
votes
0answers
91 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 ...
0
votes
0answers
78 views

Magento 2 install nginx php mysql dnsmasq xdebug php codesniffer on mac high sierra

Is there any complete guide where I can see how to install 1. nginx 2. php (multiple version) 3. mysql 4. dnsmasq 5. xdebug 6. php codesniffer on mac high sierra? Please don't suggest Valet+ ;). ...
1
vote
0answers
1k views

How to Solve 502 Bad Gateway error in Nginx Magento 2?

I am getting the error code 502 Bad Gateway in my Magento Installation with the following error in error log *1 upstream sent too big header while reading response header from upstream, client: 127....
1
vote
0answers
73 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 ...
0
votes
0answers
45 views

Magento 2 : custom no-route url in nginx server

i am using magento 2 with nginx , when i enter wrong url i see below message 404 Not Found nginx/1.12.1 from where i can sent it to magento no-route page , i can not find any solution to this please ...
0
votes
0answers
17 views

Magento 2.1 Nginx Issue

I am having issues with my pub/static files not rendering for Magento 2.1 Using Nginx so not an .htaccess issue. I have also removed version signing off and that hasnt resolved the problem. My ...
0
votes
1answer
712 views

Nginx Magento 2 403

Going through the magento devdocs on setting up magento 2 enterprise. Ubuntu 16.04 PHP 7.1 https://devdocs.magento.com/guides/v2.2/install-gde/prereq/nginx.html This is my issue I have worked through ...
0
votes
0answers
80 views

Varnish Intermittent 503 on larger files

I have a standard Magento 2 / Varnish setup with Redis as a session backend and Nginx for SSL termination - most things are working as expected but sometimes I get the 503 backend fetch error from ...
0
votes
0answers
78 views

magento 1: admin ajax call shows nginx 404 page after some processing

I have button, when clicked makes an ajax call that adds products in magento. The problem is, the products are added but the ajax call return a 404 error like below (but in ajax response) - My nginx ...
0
votes
0answers
49 views

Allowing access to index.php/customer/account/login with nginx

I am new to Magento and have setup a new instance manually. I can see the home page successfully but am unable to access http://xyz/dev/index.php/customer/account/login/ and get a 404 error from nginx....
0
votes
0answers
115 views

Magento 2 deploy with redis cache

We have setup Magento 2.0 on Ubuntu 16.04, We are using nginx Web Server and php 7.0 installed on Machine. In this redis cache used when we flush redis cache its created again and taking more time. ...