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
2answers
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 ...
14
votes
14answers
61k 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)
10
votes
4answers
11k 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 ...
9
votes
3answers
20k 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 ...
9
votes
4answers
11k 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 ...
9
votes
5answers
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-...
7
votes
2answers
35k 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 ...
7
votes
6answers
8k 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 ...
7
votes
5answers
10k 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 ...
6
votes
3answers
13k 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?
6
votes
2answers
7k 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 ...
6
votes
1answer
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 ...
6
votes
0answers
4k 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://...
6
votes
2answers
1k 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 ...
5
votes
3answers
13k 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....
5
votes
3answers
11k 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 ...
5
votes
3answers
10k 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 ...
5
votes
2answers
5k 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. ...
5
votes
2answers
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 ...
5
votes
2answers
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?
5
votes
1answer
15k 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: ...
5
votes
2answers
4k 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 ...
5
votes
1answer
178 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 ...
5
votes
4answers
872 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 ...
5
votes
2answers
489 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 ...
4
votes
3answers
14k 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 ...
4
votes
2answers
9k 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 ?...
4
votes
1answer
771 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 ...
4
votes
2answers
314 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 ...
4
votes
1answer
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" ...
4
votes
2answers
40 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?
4
votes
1answer
2k 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: ...
4
votes
2answers
401 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 ...
4
votes
1answer
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 ...
3
votes
3answers
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 ...
3
votes
3answers
5k 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 ...
3
votes
2answers
572 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 ...
3
votes
1answer
1k 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['...
3
votes
1answer
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 ...
3
votes
3answers
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 ...
3
votes
3answers
4k 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 ...
3
votes
1answer
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 ...
3
votes
2answers
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 ...
3
votes
1answer
531 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 ...
3
votes
0answers
19 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.
3
votes
1answer
595 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 ...
3
votes
0answers
692 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 ...
3
votes
1answer
502 views

how to add expires headers in magento cloud?

I have problem with expires headers. I am using magento cloud with nginx server.
3
votes
1answer
108 views

Why nginx shows product list in “html” form instead of “phtml”

When i mouse hover on product list then it shows likes "dove.html","computer.html" etc instead of "dove.phtml","computer.phtml". In apache server it shows "dove.phtml","computer.phtml" etc and ...
3
votes
0answers
163 views

Empty cart after login with Varnish enabled [duplicate]

My setup is: Magento 1.9.1 NGINX + PHP-FPM 7 Varnish 4.0 Turpentine FPC disabled I can put the products on the cart and proceed to checkout (using Firecheckout). The error occurs when I enter my ...

1
2 3 4 5
8