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
1answer
38 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
19 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 ...
0
votes
1answer
20 views

Magento 2.3 - Unexpected error Exception: Warning: SessionHandler::read()

I am getting Unexpected error, Exception: Warning: SessionHandler::read(): open(/var/opt/remi/php72/lib/php/session/sess_5292j25aa4ugpdgrv9r6a3l3p8, O_RDWR) failed: Permission denied (13) in /usr/...
0
votes
0answers
28 views

docker Nginx :Magento 2.3.4 Web Setup Wizard 'page not found'

I built a Nginx dockerfile image with a seperate php image. I am now trying to use the wizard to load magento 2.3.4 but it return a page not found. I think it could be one of three issues: a- ...
0
votes
0answers
29 views

Magento 2 - opcache forbidden error

I'm using Magento 2. Suddenly appeared below error in the Nginx error log. Does anyone know how to fix that? 2020/02/25 12:51:24 [error] 10295#0: *183747840 directory index of "/var/www/html/...
0
votes
1answer
93 views

How can host magento at example.com/path/to/magento?

this kind is a simple question still I'm struggling to figure out how to achieve this. I have a landing page, and if the user clicks to enter a certain section I want him to see the store (located ...
0
votes
1answer
74 views

Purge specific Link from Magento 2 Varnish

I am trying from console to purge and refresh one specific link of my magento 2 store in Varnish. I don't want to clear the whole cache but just one link. I tried: curl -X PURGE http://www.example....
1
vote
1answer
98 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-...
0
votes
0answers
41 views

Magento2 on custom port with reverse proxy - redirection loop

When I try to install Magento on local configuration with Docker, I get into trouble when trying to use custom port for HTTP. Frontend part works with no problems, but trying to load admin page ends ...
0
votes
0answers
33 views

Run M2 from subdirectory

Magento 2.2.6 Have the main directory / and subdirectories like /germany, /france/, /poland etc. each subdirectory has index.php file like: <?php /** * Application entry point * * Example - ...
1
vote
0answers
24 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 ...
0
votes
0answers
256 views

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

My Centos - Nginx Configuration, etc/nginx/conf.d/magento.conf upstream fastcgi_backend { server 127.0.0.1:9000; } server { listen 8085; server_name 192.168.1.64:8085; set $MAGE_ROOT /usr/share/...
0
votes
1answer
20 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
111 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
81 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
6 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
27 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
108 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
28 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
17 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
97 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
94 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
24 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
19 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
60 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
62 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
61 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
77 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
26 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
26 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
3answers
199 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 { ...
1
vote
0answers
138 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
18 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
101 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
21 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
34 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
102 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
72 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
111 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
171 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
102 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
47 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
1k 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
401 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
13 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
141 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
85 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
155 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....

1
2 3 4 5
7