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
16 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 ...
0
votes
0answers
12 views

Magento 1.9 Customer Login Stopped Working

Server: Dedicated, Apache 2.4, Nginx, Redis, CPanel/WHM, Site using FPC extension Mirasvit We have an Magento 1.9 site with the above setup - since last week all of sudden customers are no longer to ...
0
votes
0answers
43 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 ...
0
votes
1answer
34 views

Magento Nginx config

I am trying to setup a Magento Nginx config but I have never used Nginx before so I was hoping someone could help with the config files. This is my Plesk pre-built file #ATTENTION! # #DO NOT MODIFY ...
0
votes
1answer
32 views

Magento 2 Invalid block type Magento\Catalog\Block\Crosssellproduct

Magento 2.2.6 - Apache - Nginx I am getting this error when trying to open product pages on my site 2 exception(s): Exception #0 (Magento\Framework\Exception\LocalizedException): Invalid block ...
0
votes
2answers
72 views

How to enable CORs to access Magento rest APIs : Magento2

I'm getting an error while call API from Angular APP test website and app is hosted in different domain. Website Url abc.test.com Angular App : xyz.test.com When I call API for Listing Of product in ...
0
votes
1answer
43 views

CORS error on Magento 2 with cloudfront

We are running magento 2 on below setup Apache > Varnish > NGinx SSL termination On initial setup we were getting the below error for all assets in pub/static Failed to load xxx: Request header ...
0
votes
0answers
8 views

Magento 2: Get Raw POST data whenever /shipping-information API is hit

I am using a headless magento 2 for my store, and am having some data consistency problems with shipping addresses. To troubleshoot this, I was thinking about saving the POST body whenever these API ...
0
votes
0answers
23 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/...
0
votes
2answers
19 views

Magento 2 with nginx microcache

I tried using Magento 2 and enabled the microcache for dynamic content for 30 minutes expiration date. The problem is that the products from carts 'magically' get cloned in another user's cart. I was ...
0
votes
0answers
34 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 ...
0
votes
0answers
18 views

New magento2 frontpage, no pictures, no styles loaded

My new magento2 site doesn't load any pictures or styles. I was expecting to see the Luma sample page as per official magento docs https://devdocs.magento.com/guides/v2.3/install-gde/install/verify....
0
votes
1answer
30 views

New Magento 2, nginx config error 403 forbidden

After my installation of magento2 on Ubuntu, I get this error on localhost http://localhost/magento2/ - 403 forbidden I have to change the port to any other like 8080 in file /etc/nginx/sites-...
1
vote
0answers
51 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....
0
votes
0answers
17 views

Nginx configruable fails, Anybody can tell me what wrong?

I am trying config nginx for my new magento 2. But I get issue I don't have any idea to fix that. Please help! Many thanks!
0
votes
0answers
26 views

Magento 2.2.2 catalogsearch_fulltext Reindex + Elasticsearch

Dedicate Server 16GB RAM 4 Core Processor Centos Magento 2.2.2 Elastiscearch 6.4 I am trying to run reindex from command-line ssh putty php bin/magento indexer:reindex ...
0
votes
1answer
35 views

NGINX cross control origin header added but font files still blocked by CORS policy

I have added the following headers to all the locations where my static content is mentioned in the Nginx conf file and it removes the CORS issue for all files except for font files such as woff2 or ...
0
votes
0answers
18 views

Email template preview gives 500

In my server, I am using Nginx and issue which I faced is when we have long data in the email template. while preview that template we get 500 and page is completely broken. In this case, this is not ...
0
votes
1answer
37 views

Apache Nginx Varnish listening port Magento 2

Centos 6 Already using Apache + Nginx on my Magento 1 sites on a dedicated server For a Magento 2.2 site I want to run varnish However after installing varnish - i saw in the instructions need to ...
0
votes
1answer
47 views

Magento 2 GD Reindex Error gd.jpeg_ignore_warning

I am trying to run reindex in Magento 2.2 apache 2.4 PHP 7.1 Elastic Search installed v 6.4 Search Engine (Amasty ElasticSearch) Tested and Successful. For this reindex catalogsearch_fulltext php ...
0
votes
1answer
34 views

Varnish with NGINX SSL proxy 502 error Magento 2

I am trying to setup an nginx backend with Varnish and magento 2.3.2. To do that the flow would be: Port 80 is forwaded to 443. 443 proxypass to Varnish Listener on 8080. Here is the nginx config for ...
0
votes
0answers
19 views

Magento 2.3.1 connection closed on export

Had a long-running on Magento 2.3.1 with receiving the below error message when trying to export subscribers from our store. We can export an amount of 200 without issue but when I try to export all (...
1
vote
1answer
56 views

Custom admin page too many redirects Magento 2

I'm starting to get familiar with Magento 2. I installed v2.3.1 in an Nginx/PHP-fpm and got it working, including the sample data. Then I followed everything in the tutorial at https://devdocs....
0
votes
0answers
20 views

Environmental variables, nginx and mage 2

I am setting up a local, staging and production environment of Magento 2 that I am deploying from a git repo. My plan is to move the env.php with the repo and just use environmental variables. I am ...
3
votes
2answers
55 views

Magento2.3 Multiwebsite Single domain in subdirectories

We are trying to set up a new Magento 2.3 instance to have multiple websites under a single domain. I have read most of the posts based on this situation, but most either talk about multiple domain ...
0
votes
1answer
25 views

Magento 2 + Varnish + Apache + Nginx SSL - Nginx.conf error

Have just had a developer implement Varnish cache with SSL termination. http:s// --> nginx(443) --> varnish(port 8081) --> apache(8080) All pages on our site are working fine except the home page ...
0
votes
1answer
22 views

Magento2 cloud Setup multiple issue

The website constantly give 502 error whenever tries to edit any product or upload a product error: Lock tables although only a single query is running Next error: When i check Nginx access logs &...
0
votes
1answer
75 views

Magento 2 + Varnish + Nginx + SSL get real IP

I'm having a setup for Magento 2 with Nginx + Varnish + SSL in ubuntu server 18.04. Now with my setup, I only get all logs in Nginx and inside Magento admin coming from same localhost IP which Varnish ...
4
votes
2answers
37 views

Set module /blog as homepage

I am trying to set the AheadWorks blog module as homepage of Magento 2 for a site. So user gets directly to domain.com/blog instead of domain.com. Is it possible in the admin or Nginx somehow?
1
vote
1answer
26 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 ) ...
0
votes
1answer
22 views

Can I redirect to same domain but different currency?

I have request like this: redirect domainB to domainA --> USD redirect domainC to domainA --> EUR Can I set currency like that? thanks advance!
0
votes
1answer
39 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
65 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
23 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 ...
2
votes
3answers
800 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
28 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
82 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
39 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
16 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
358 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
17 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
516 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
51 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
74 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
151 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
205 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
171 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
31 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
522 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
92 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 ...