As of May 31, 2023, we have updated our Code of Conduct.

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
1 vote
0 answers
412 views

NGINX adding filename.php alias issue

I am trying to add phpfilename with .php extension. My partial NGINX configuration is: server { set $MAGE_ROOT /home/user/public_html; root $MAGE_ROOT/pub; location / { root $...
crashtestxxx's user avatar
2 votes
1 answer
195 views

Static contents are not able to deploy in MAGENTO 2.2.0 [duplicate]

Static contents are not able to deploy in MAGENTO 2.2.0 I have downloaded default setup of magento 2.2.0 and configured using NGINX. After deployment static content are not loaded.
Kishor Vitekar's user avatar
11 votes
4 answers
16k views

Magento 2: How to configure Nginx to use multiple websites with sub-folder

We would like to create multiple websites in Magento 2. There is an article about this topic in the Official Magento 2 Documentation, but the way they describe is not suitable for our case. They are ...
Bunyamin Inan's user avatar
5 votes
2 answers
561 views

support for PHP-PM?

As you can see there is a huge performance boost with newly php-pm package that is a good replace for regular php-fpm does magento2 supports PHP-pm or what might happens if we use it on production ...
Sina Miandashti's user avatar
1 vote
1 answer
2k views

What is the most battle tested official goto configuration for Magento1 using nginx?

By doing some googling I've found this as the only documentation that seemed "official" regarding Nginx. Is it really that the official Magento1 Nginx configuration only sits in this quite &...
testTester's user avatar
0 votes
1 answer
1k views

Magento2 Multiple stores

I'm looking for clear solution without spikes, without creation any subfolders in pub with index files, without hardcoding cookies etc. In other words I'd like to achive multistore in magento only ...
zhartaunik's user avatar
  • 3,838
3 votes
1 answer
2k views

How to enable Profiler on nginx?

I can't enable Profiler on nginx. I have already added this line: set $MAGE_PROFILER html to file devmagento2.conf, but nothing was happened. I also have tried to add this line: $_SERVER['...
Skorzhyk's user avatar
  • 101
0 votes
1 answer
422 views

after using varnish and nginx ssl termination, all the online customer ip changed to 127.0.0.1

after using varnish and use Nginx SSL termination for varnish, today I found that all the online customer IP changed to 127.0.0.1 Apache2 8080 port Varnish 80 port Nginx 443 port location / { ...
Yasin's user avatar
  • 11
0 votes
1 answer
221 views

Working Magento 2.1 site broken on new server

I have built a new store based on Magento 2.1.6. It is working fine on Host 1. I am in the process of moving this store from host 1 to host 2. I used RSYNC to copy all the file system of the working ...
robgt's user avatar
  • 439
1 vote
1 answer
333 views

Nginx auth off whole folder

We're trying to setup Klaviyo on our Zandbox/test site with nginx. But Klaviyo cant get the data from SOAP when i have htpasswd enabled. It needs to visit www.mytestdomain.com/api/v2_soap?wsdl=1 to ...
RappY's user avatar
  • 172
0 votes
1 answer
438 views

Magento Emails are not going through gmail and hotmail on (sendmail, nginx, varnish, phpfpm 7.o)

Facing issue with the emails. emails are not going through gmail and hotmail but it's working for the business domains of Google G suite app. I'm using Sendmail function on nginx and even tried with ...
Yogesh Trivedi's user avatar
3 votes
2 answers
1k 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 ...
3-MeO-PCE's user avatar
1 vote
1 answer
2k views

Magento 2 + Nginx: Multiple websites homepages work but every other URL is 404

I've searched high and low for a solution to this problem but none of the solutions to any of the existing questions has helped. I have a freshly installed ( via Composer ) Magento 2 site. I am using ...
David Eugene Pratt's user avatar
7 votes
2 answers
8k views

Install Magento 2 on different mysql port

I have my nginx running on port 8080 and mysql running on port 3307. I want to install magento 2 cloned from git using CLI. Any idea how to configure the database which will use the port number 3307. ...
Asheem Patro's user avatar
  • 1,060
1 vote
3 answers
4k views

Magento2 with nginix + ssl + varnish admin redirect loop issue

everything working fine, but when I enable secure admin (ssl) it gives redirect loop issue. I am not able to use admin pannel also cross origin issue for front ens static content. I am using ssl over ...
Mohammad Mujassam's user avatar
0 votes
2 answers
5k views

Magento 2 admin page not found using nginx

I have installed Magento 2 project in Ubuntu 14.04 using Nginx. After running magento setup:static-content:deploy command I can access the landing page but all URL on the page redirect to the 404 ...
Stevan Tosic's user avatar
0 votes
1 answer
404 views

Magento 2.1.7 and Engintron (nginx) multistore configuration

I cannot find where to enter the environment variables for multiple websites/stores using Engintron - the Magento documentation for nginx shows virtual host config files setting MAGE_RUN_CODE, but ...
Stuart Hoff's user avatar
1 vote
1 answer
130 views

New Server Install, restored database, all pages 404

I have a new server, it is Nginx using mysql. I have been developing code locally on a MAMP install. I then migrated this code to git and moved a copy of the database to the new server. I configured ...
Matthew Colley's user avatar
1 vote
1 answer
332 views

New install on EC2 rewrite issues

I've just finished installing 2.1.7 on an Ubuntu EC2 instance running Nginx behind a load balancer. SSL terminates at the load balancer with the EC2 instance serving HTTP only. As close as I was able ...
Peter's user avatar
  • 13
2 votes
1 answer
4k 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 ...
Junior Maia's user avatar
0 votes
1 answer
1k views

500 Internal Server Error nginx/1.12.0 on checkout page after Migration from Apache to Nginx

i'm facing a problem with nginx rewrites after i migrate my Magento website from Apache to Nginx! When i add a product to the cart and i press the button Place the order is giving me 500 internal ...
Cantemir Alex's user avatar
6 votes
2 answers
8k views

Nginx or Apache for Magento 2.x [closed]

We are in the process of planning for a project, an eCommerce project. The client already has a working project, for some reason they decided to rebuild from scratch with some additional ...
Karthik Nk's user avatar
2 votes
2 answers
5k views

MAMP: how to start php-fpm?

I've always been using Apache with MAMP successfully, and now I need to tinker around setting up multi-stores with subdirectories in an Nginx environment. I'm following pretty much the vanilla ...
laketuna's user avatar
  • 6,820
0 votes
0 answers
140 views

Magento2 : gtmetrix website prerformnce [duplicate]

I have checked my website in getmetrix tool,it is ngnix server.Site Page speed score is F(0%) showing It shows Defer parsing of JavaScript - E(57) Leverage browser caching - F(0) I ...
User0434's user avatar
  • 1,113
4 votes
1 answer
4k 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 ...
harri's user avatar
  • 5,355
0 votes
1 answer
266 views

Magento 404 error page loading but server status is 500

Our custom magento error page show fine and when expected (ie when there is no page). But I have just notice the page status returned for the server is 500 and not 404. How do I fix this, should ...
PaddyD's user avatar
  • 369
1 vote
0 answers
1k views

Magento 2.1.5 CORS problem

On my localhost i create a react app (getting data from magento 2 rest api). Magento is set on vagrant so they are on other domains. When I try to send request ... var uploadReq = new Request(...
Maciej's user avatar
  • 153
7 votes
5 answers
13k views

Magento 2.1 Varnish Cache not Purge

I have a server with NGINX / Varnish 4 & Magento 2.1, I have setup everything need for varnish and Magento 2.1 in Stores > Configuration > Admin. Varnish is working. My problem is that if I try ...
George George's user avatar
1 vote
0 answers
909 views

Ho to set multistore configuration in Magento 2 to have domain.com and domain.com/storecode/

In Magento 2, How to have the default store to be set on domain.com and other stores to be in directory structure urls like: domain.com/uk, domain.com/de, .. First approach: There is the admin ...
Daniel Ifrim's user avatar
  • 3,354
1 vote
0 answers
1k views

Magento 2 multi website url setup

I would like to achieve the below URL setup in magento 2 with nginx domain.com/us/ -> us english store view (us_en) domain.com/us/de/ -> us german store view (us_de) ...
Srini's user avatar
  • 11
0 votes
2 answers
2k views

Problem using Nginx and Apache both for Magento 2

I am trying to use nginx as static web server front and apache processing the back end for Magento. but magento is showing me this error: Your web server is set up incorrectly and allows unauthorized ...
Ramesh Pardhi's user avatar
-1 votes
1 answer
2k views

how to config to run php 7 in nginx.config magento2 root?

I have multi magento site in centos 7 use nginx server? www/magento2 www/magento1 Now i server run php 5.6.I want site www/magento2 run php7 so i installed php7 with code: yum install scl-...
xanka's user avatar
  • 2,064
2 votes
2 answers
565 views

Becuase of the better performance of Magento 2, Can we reduce number of servers?

Currently we are using 7 servers for our Magento 1 production site, those are all working under load balancer. Now we are planning on Magento 2 upgrade with php7. Because of the php7 and magento 2 ...
seeni's user avatar
  • 1,227
0 votes
1 answer
6k views

My NGINX configuration is now throwing 404 Not Found nginx/1.10.0 (Ubuntu) EE. 1.14

I'm going to try and make this as detailed as possible because I feel like I've tried everything and at this point just need another set of eyes on everything. I'm running a cloud server and I've ...
Head Way's user avatar
0 votes
1 answer
160 views

Category page manager stuck in reload (CentOS7 + ngingx 1.11.8)

I already checked out Category Manager Page in a Reload Loop Nginx and saw a similar problem that I am encountering. The solutions mentioned in the mentioned topic DO NOT solve my problem. The ...
van den HeuvelConcepts's user avatar
0 votes
1 answer
4k views

Nginx 502 Error only with full page cache enabled or trying to go to the admin

Even after disabling my custom module I'm getting this error. When I stopped working on it the day before this wasn't the case. It was working fine and I've been using this same server to develop ...
user avatar
2 votes
1 answer
962 views

Magento Nginx: cache first page request only (no session) for super speed

In an effort (and test) to make Magento fly I was playing with microcaching in Magento and came up with the following. The idea is to: detect a first visit and return visit. A return visit may ...
snh_nl's user avatar
  • 5,392
6 votes
0 answers
5k 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://...
Rithin Prabhakar's user avatar
0 votes
0 answers
721 views

Magento2 - Nginx : Not able to install getting 404 error

I'm running Apache and Nginx on Ubuntu 14.04 machine. Nginx + PHP7.0-FPM configured on 8080 port and apache is on 80 ( default port ). Stack : PHP Version : 7.0.14-1 Nginx : nginx/1.4.6 (Ubuntu) ...
Aniruddha A Deshpande's user avatar
1 vote
1 answer
1k views

Method 'getExtensionAttributes' must be overridden Error in Magento 2.1.2 - NGINX Server

I have installed a fresh clean package of Magento 2.1.2 but i am getting the following error: Method 'getExtensionAttributes' must be overridden in the interfaces which extend 'Magento\Framework\...
nick_junior's user avatar
1 vote
1 answer
527 views

Restricting access to /rss not working NGINX

My Magento install keeps getting bombarded with traffic to /rss/catalog/notifystock which I read is a security issue in my current version of Magento. This is causing to many concurrent sessions and ...
Alexander's user avatar
  • 161
0 votes
1 answer
979 views

Magento 2 emails not being sent on VPS

I install Magento 2 on my server VPS: ubuntu 16.04, Nginx 1.10, MySQL 5.7, PHP 7. Site works, but can not sign on subscribe "Something went wrong with your subscription.". Transfer emails not works ...
Sylon's user avatar
  • 658
2 votes
2 answers
3k views

Create docker image for nginx, php 7, mysql and magento2

I want to create a docker image which has nginx, php7 (and required modules), mysql and magento2. Also, want to create docker-compose scripts. Any help will be appreciated.
MJ.'s user avatar
  • 829
0 votes
1 answer
88 views

Concrete 5 CMS index of Magento 2.1

I would like to have the index page of concrete5 and magento 2 store. How do I configure nginx to use the index of concrete5 and not that of magento 2. This site is multilanguage, use map to redirect ...
Biagio Gino Zingales Al's user avatar
0 votes
1 answer
546 views

Force HTTP on all URLs except what required like checkout, admin

We are using Magento ver. 1.9.2.4 with Nginx, what we need is to always make sure and force that pages are served HTTP(non-ssl) and only checkout, admin, account and others which required HTTPS(ssl) ...
Farmi's user avatar
  • 209
8 votes
6 answers
11k views

How to run Magento 2 from a subdirectory

I'm trying to set up a Magento 2 site that will run with http://www.example.com/store/ as its home page, but Magento's router is treating that subdirectory path as a frontend module name, and trying ...
Ben's user avatar
  • 231
1 vote
0 answers
453 views

How to correct create a multilingual store Magento 2 with nginx?

I have server: ubuntu 16.04, nginx 1.10, MySQL 5.7, one installation Magento 2. And 2 domains: primary domain.com and domain.in for "in Store View". My actions: Create Store View "in". Change my host ...
Sylon's user avatar
  • 658
1 vote
0 answers
294 views

Nginx Error Logs - 'No such file or directory' for an url that seems to load correctly?

In the course of trying to discover the cause of a sudden slow down on my Magento 1.9 hosted at Cloudways, I started examining the error logs and can't understand why there are so many 'No such file ...
Linda Wilson Wall's user avatar
0 votes
1 answer
36 views

Nginx seg faults on request to index

I am running magento v2.X with Nginx and HHVM, making requests directly to HHVM works fine, and non-magento sites run fine too, but when I make a request to nginx for out of the box magento nginx seg ...
Jeff Quick's user avatar
1 vote
0 answers
2k views

Magento2 failed to open stream: Permission denied

I have an error in a Magento 2 store and I cannot fix it. On homepage appears this: Error filtering template: Warning: imagepng(/var/www/domain/pub/media/e**hemes/resized/frontend/e**hemes/slideshow/...
George George's user avatar

1
4
5
6 7 8