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
3 views

unable to access newly created domain in nginx on ubuntu

recently was setting up magento in my local system, i did installed mariaDB, nginx and php7.1. i did created new files in sites-available and did symlink as well. And i did run nginx -t there were no ...
0
votes
1answer
26 views

Magento 2.3.3 - 502 Bad Gateway - Centos - Nginx

After placed Magento 2.3.3 files to usr/share/nginx/html/magento & created database then run following, php bin/magento setup:install --base-url=http://192.168.1.64/magento --db-host=localhost --...
0
votes
0answers
20 views

Magento 2 .Woff blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource

Have a Magento 2.3 on Nginx. Trying to set up Cloudfront for /pub/static/ on subdomain like https://static.mydomain.com. Base URL for Static View Files is https://static.mydomain.com. Getting error ...
0
votes
0answers
5 views

Cpanel default_https.conf overwrite with Nginx SSL termination Varnish

I have had a developer implement varnish with SSL termination on our cpanel server. Everything works fine except every so often our default_https.conf file keeps getting overwritten in /etc/nginx/conf....
0
votes
0answers
9 views

How to find out the reason Magento 2 Allowed memory size exhausted although memory_limit = -1?

Hope you are doing well! I have get issue when load product grid page with param is p=2. Fatal error: Allowed memory size of xxx bytes exhausted (tried to allocate xx bytes) in /xx/vendor/magento/...
1
vote
1answer
38 views

How to set page cache expires to 7 days?

I am using varnish with default magento 2.3.3 VCL and the default nginx configuration that comes with magento install. At present I see the expires is set to -1. How can I set expires to one week?
2
votes
1answer
21 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.
0
votes
0answers
16 views

Error After Installing Website in magento 2 js

I just installed magento 2 and I come across a bug that won't let me get lost on my admin page i use : Nginx Php7.2 Varnish 4 and Percona Server on Debian 9 I believe the problem is in the ...
0
votes
1answer
52 views

Magento 2.3.3 - Unable connect error - Nginx - Centos 7 - PHP 7.1

After successfully install magento 2.3.3 in centos 7 with nginx, url getting Unable connect error. Install nginx Configure nginx Install magento 2.3 using following commands, php bin/magento ...
1
vote
0answers
30 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 ...
0
votes
1answer
16 views

Proper User for Ubuntu Nginx PHP-FPM when running php bin/magento and composer Command Line

So on the setup mentioned in the title, I want to confirm how the user should be for command line. Using the default setup there is a user "nginx" that is used for php-fpm and for nginx. Should that ...
0
votes
0answers
17 views

Magento site contents accessible via pub and without pub directory

I am using standard nginx configuration file that comes with Magento 2.3.3 installation. The document root is set correctly. But the content are accessible with and without pub directory. For example /...
0
votes
1answer
31 views

Checking Nginx log on Docker local environment on Cloud version?

I'm working on Magento Cloud version, but I'm having an error with 502 Bad Gateway on nginx. 502 Bad Gateway nginx/1.9.15 My question is that how to check the nginx log on Docker local environment?
5
votes
1answer
43 views

More than one redirect with trailing slash in secure non-www url

There is more than one redirect with trailing slash in secure non-www url. This doesn’t happen on homepage url like https://example.com. As you can see from below a secure non-www url is forwarded to ...
1
vote
1answer
35 views

“403 Forbidden” if I run Magento 2.2.x with FastCGI (Nginx + PHP-FPM)

Ubuntu 18.04, PHP 7.1, Nginx 1.16.1, Magento 2.2.6 I have some errors in log-file: 2019/12/05 16:58:45 [error] 865#865: *14 directory index of "/var/www/www-root/data/www/mysite.com/" is forbidden, ...
0
votes
0answers
41 views

M2 (2.3.3) + nginx + varnish issue

I have set up M2 (2.3.3), nginx, redis and varnish. However, varnish is not doing any caching as confirmed from header. I can access both frontend and backend. varnish.service - Varnish HTTP ...
0
votes
1answer
25 views

Assigning different BASE_URL for developer mode only

I that possible? I want to do this to set up a configuration like this: https://mystore.mydomain.com/ for production (with Varnish cache) https://mystore.mydomain.com:5001/ for development (...
0
votes
0answers
19 views

ajaxExpired problem after php7.3 update

Any thoughts on this would be greatly appreciated….. Since we have updated our production server to php 7.3 (due to magneto's recommendations), we have this weird bug where when loading product pages....
-1
votes
2answers
66 views

Magento 2: Using nginx css js not loading

After installing Nginx server Magento2.3.1 not working CSS js file not loading. etc/ngnix/ngnix.conf user www-data; worker_processes auto; pid /run/nginx.pid; events { ...
0
votes
0answers
60 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 ??? ...
0
votes
0answers
15 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 ...
2
votes
1answer
90 views

Reason for Magento 2 update path?

In Magento nginx sample config, there is path for update. What is usage for this path? # PHP entry point for update application location ~* ^/update($|/) { root $MAGE_ROOT; location ~ ^/...
0
votes
0answers
14 views

NGINX 502 Bad Gateway on currency switcher

Magento 2.2: I get a "502 Bad Gateway NGINX" on currency switcher and switch currency from base currency to other currency. I also get redirect to homepage when switching currency in default store ...
0
votes
0answers
28 views

Error 502 when upgrade magento 2.2.3 to 2.2.9

We're facing a weird issue, we were working with Magento 2.2.3 by a year aprox. and decided to upgrade our Magento open source version to 2.2.9: We made a clean installation of Magento 2.2.9 in our ...
0
votes
0answers
59 views

Magento, Varnish, Nginx : CSS, JS failing to load with incorrect mime-type issue

I am running magento 2.2.6 on a nginx server. I have Varnish installed on another dedicated server. When I use it via proxy-pass and contact varnish server first, I am able to load the magento website,...
2
votes
2answers
55 views

File page-cache.js not loaded in head

I have some problems with form_key when default FULL PAGE CACHE enabled. And i found out that page-cache.js doesn't load in head section. And there is no "X-Cache:" headers. I've tried everything.. ...
1
vote
0answers
66 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
21 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 ...
1
vote
0answers
99 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
74 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
45 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
489 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
284 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
12 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
52 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
59 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 ...
1
vote
0answers
104 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
279 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
83 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
18 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
49 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
361 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
22 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
52 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
95 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
144 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
28 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 (...
2
votes
1answer
227 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
26 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 ...