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
16 votes
16 answers
81k views

404 not found error for admin page

I installed Magento successfully, but the Admin page gives error: 404 not found. Please suggest a solution for this. The following is the error: 404 Not Found nginx/1.10.0 (Ubuntu)
Jaya Vidya Aluru's user avatar
16 votes
2 answers
4k views

Perfomance benefits of using NGINX

Considering using NGINX to serve magento- I'm not concerned about implementation details, but want to know if anyone has good (or bad) things to say about it. Also of particular interest is using ...
Jonathan Bownds's user avatar
11 votes
3 answers
31k views

How do I run php custom script on magento2

I wanted to add custom php script to magento2 root folder and run from the browser.I tried to add it in magento2 root folder but it redirects to 404 page. I also tried to add it in pub folder but no ...
Ranjit Shinde'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
10 votes
3 answers
36k 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?
Rufus's user avatar
  • 611
9 votes
4 answers
14k views

Magento -site not opening after CLI -installation

I am trying to get Magento 2 installed on my Centos7 LEMP-stack, but after a successful CLI-installation and setting the Magento on Developer-mode, I get the following message when trying to open the ...
MyrkkyMies's user avatar
9 votes
5 answers
10k views

Unable to install any extension using magento connect manager No Answer?

I have installed a fresh magento 1.9 on my vps running with nginx. My root folder of magento is /var/www/abc.hello.com/datazone/ and also set ownership as www-data as user and www-data as group (www-...
Beginner's user avatar
8 votes
2 answers
44k views

How to configure nginx for Magento 2?

My actions: I install only: nginx 1.10.1, php7 and mysql 5.6 on ubuntu 14.04. php install: sudo apt-get install -y php7.0-fpm php7.0-common php7.0-gd php7.0-mysql php7.0-mcrypt php7.0-curl php7.0-intl ...
Sylon's user avatar
  • 658
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
7 votes
3 answers
30k 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.0....
Pavithra's user avatar
  • 593
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
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
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
6 votes
1 answer
4k views

Web Server (Apache) Rewrites on NGINX

I'm planning to use NGINX rather than Apache as my webserver on my next Magento project and am wondering about the Use Web Server (Apache) Rewrites on the Magento installer wizard? What exactly do ...
Holly's user avatar
  • 4,773
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
6 votes
2 answers
2k views

New website/store view, all pages 404 (including homepage)

As per the title, I've set up a new store on a different domain and all pages including the home page are returning 404. I've tried pretty much everything, and I'm wondering if any of you can think ...
jsims281's user avatar
  • 213
5 votes
3 answers
10k 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 ...
David Lambauer's user avatar
5 votes
3 answers
12k views

Service Temporarily Unavailable after installing a module

I'm running NGinx 1.6.2 with Magento 1.9.1.1 - just wanted to install SMTP Pro Email via the Connect/Mag Downloader webinterface and it got till: Checking dependencies of packages Starting to ...
Chris's user avatar
  • 577
5 votes
3 answers
11k views

Magento wrongly redirects https!

I have a big problem with one magento installation. It is a Magento Version 1.8.0.0 running on apache with php5-fpm, a Varnish cache in front and nginx as ssl reverse proxy. If I open any URL using ...
Josef's user avatar
  • 501
5 votes
2 answers
3k views

Flushing just the homepage cache in Varnish

I currently run nginx with Varnish in front on my Magento instance. I use Turpentine as the Varnish module for Magento. Without clearing the entire Varnish cache, is it possible just to flush the ...
Francis Kim's user avatar
  • 2,973
5 votes
2 answers
10k views

Best way to remove index.php from URLs [duplicate]

What is the best way to remove index.php from URLs, without making too many modifications to the Magento core structure and native behavior?
Supersonic's user avatar
5 votes
1 answer
18k views

Getting “access forbidden by rule” error at magento in nginx server /app/etc/local.xml

I am getting this error for my website which is built on magento-1.9.0. 2015/07/13 05:50:44 [error] 1371#0: *491517 access forbidden by rule, client: **.***.***.***, server: www.example.com, request: ...
Mohammad Faisal Ahmed's user avatar
5 votes
2 answers
6k views

Magento 2+nginx+varnish cannot serve same page multiple times, resp 502

I have been on the administrative side of a small magento 2 developers team. For the problem i am about to share you can ask for a demo page and check it out aswell you find the information shared ...
1337_sanc's user avatar
  • 389
5 votes
1 answer
408 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 ...
Zoya's user avatar
  • 461
5 votes
4 answers
885 views

LEMP Stack Suggestions for a 10k + Item Magento Community Install

I operate a Magento Community install that currently contains 30k SKUs (6k configurable with 24k variants). We are having an ongoing issue with pervasive CPU overloads that result in MYSQL ...
Robert's user avatar
  • 45
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
4 votes
3 answers
17k views

Configure Nginx to single MAGENTO instance for running multiple stores (domains)

I'm trying to run multi-store environment (2 websites) on single Magento instance but I can't figure it out. Looking around the net for solutions, I tried everything but it doesn't work. The main ...
David's user avatar
  • 41
4 votes
2 answers
11k views

Magento 2 how to configure Nginx to allow execute other php files in root folder

How to configure nginx to let magento execute php files. For example I created phpinfo.php and I'd like to execute it. Where should I put it? ./ or ./pub/ ? What do I need to write into the config ?...
zhartaunik's user avatar
  • 3,838
4 votes
2 answers
4k views

Magento 2: Failed to set ini option “session.cookie_samesite” to value “Lax” when updating to - 2.3.6-p1

We're working on updating to Magento 2.3.6-p1. Everything runs and builds properly, but we're getting an error report as well as an error logged in our System.log. The error it's throwing is in line ...
Front_End_Dev's user avatar
4 votes
3 answers
6k views

How do I install Magento 2 on Mac OSX with Laravel Valet?

Question How do I install and setup Magento with sample data to run locally? Background I'm using Laravel Valet to manage my local development on Mac OS Sierra and want to do some work on a Magento ...
Luke's user avatar
  • 155
4 votes
1 answer
827 views

Magento 1.9.1 Upgrade Causing Cookie to be reset

We have an AWS ELB setup for our Magento application. The ELB strips away https:// and replaces it with http://. So in our nginx we make use HTTP_X_FORWARDED_PROTO to stop Magento from redirecting to ...
user3106759's user avatar
4 votes
2 answers
325 views

HHVM is breaking display in Manage Currency Rates

Our Magento store is running on an NGINX server & HHVM. I've noticed that when you go to System > Manage Currency Rates the currency fields are displayed in the wrong order, they've all been ...
Holly's user avatar
  • 4,773
4 votes
1 answer
3k views

SOAP API returns wrong address

I use nginx with php5-fpm and I have problem with SOAP webservice. Magento returns wrong address in wsdl. <service name="MagentoService"> <port name="Mage_Api_Model_Server_HandlerPort" ...
kuba_ceg's user avatar
  • 616
4 votes
2 answers
46 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?
Kaki Sami's user avatar
  • 327
4 votes
1 answer
3k views

Product POST call to Magento REST API results in 302 and redirect (Nginx)

Having an issue when POST'ing to the Magento 1.9 REST API. Magento is being served by Nginx 1.8.0 using OAuth (successfully authenticating). My Magento rewrite config for the API looks like this: ...
ashland's user avatar
  • 61
4 votes
2 answers
474 views

Never rewrite for existing files, directories and links

I install my Magento CE 1.8.1 on Nginx server. My nginx conf file is like this: Configuring nginx for Magento I created a subfolder in Magento root folder, then put in it some php files. I tried to ...
Tran Dinh Khanh's user avatar
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
4 votes
1 answer
2k views

Magento NGINX allow IP/deny all for downloader folder

I'm having a problem allowing my IP address access to the downloader folder when using nginx to deny all other IP's. Any ideas where I'm going wrong with the below? I've tried with my IPv4 and IPv6 ...
Chris's user avatar
  • 604
3 votes
3 answers
2k views

Category Manager Page in a Reload Loop Nginx

When I go to the categories admin page the the page keeps loading over and over again. I use NGINX on ubuntu 14.04. How do I fix? I checked the server log and each iframe reload get a 200. It ...
jwogrady's user avatar
  • 256
3 votes
1 answer
4k views

Some pages on Magento 2 website displaying Error 502 when Varnish cache is enabled - website hosted on Ubuntu 18.04 Nginx VPS

I have installed a fresh copy of Magento 2 (2.3.5 with sample data) on a VPS which has the following stack: Ubuntu 18.04, Nginx, Mysql, and PHP 7.2 FPM. This vanilla installation worked. However, ...
fmt's user avatar
  • 33
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
3 votes
1 answer
1k views

Strip index.php from Magento nginx github configuration

I am currently on a Magento-1.9.2.2 with Nginx 1.6.2 and using Magento Nginx Github Conf and shop.com takes me shop.com But if I click any link, I see a structure like: shop.com/index.php/category1 ...
Chris's user avatar
  • 577
3 votes
1 answer
1k views

Save error only in System/Config

Please note I have tried the reference post that is a possible duplicate. The error only happens in System config when I try to save a new Product Placeholder I am getting the following error when ...
brentwpeterson's user avatar
3 votes
3 answers
5k views

Upload HTTP Error in admin on file upload (Nginx)

I am getting the following error on uploading files in Magento admin. Upload HTTP Error I have added the following to my php.ini upload_max_filesize = 200M post_max_size = 200M memory_limit = 512M ...
brentwpeterson's user avatar
3 votes
3 answers
5k views

error 404 after login to admin, nginx and index.php issue, how to solve

I did set NGINX for my server, and use DirectAdmin, also I changed nginx.conf for Magento configs, everything is ok but I have a problem with admin area! I can not login to dashboard, login page ...
sIiiS's user avatar
  • 632
3 votes
1 answer
2k views

Nginx Setup for Multistore on the same url

I wish to setup multistores on our nginx environment but using the admin 'Add Store Code to Urls' isn't an option as we have several other sites that run off different urls and having store codes ...
Andy Archer's user avatar
3 votes
2 answers
1k 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 ...
Tom Burman's user avatar
3 votes
2 answers
4k views

How to solve an error 404 with Nginx after login on dashboard?

Magento 1.9.2.1 Nginx 1.8.1 I'm trying to set up a Magento shop, a development server with Nginx for further change. Currently, it runs on a server with Apache. Developing I have no problems with ...
Abdel Karim Mateos Sanchez's user avatar
3 votes
1 answer
553 views

Move store from Apache to Nginx server [duplicate]

I'm planning on moving my Magento store from one server to another. The current server is an Apache server and I just got notified the new webserver will be an Nginx server. The hosting company noted ...
Eddie's user avatar
  • 227
3 votes
0 answers
21 views

Magento 2.3 - After setup Multi-website CSS unknown error - LEMP (Centos 7 - Nginx)

After configure multi website using https://magento.stackexchange.com/a/117930/57334 css not loading. Note: My main website working, multi Website only getting this error.
zus's user avatar
  • 145

1
2 3 4 5
8