Skip to main content

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
11 votes
4 answers
18k 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
6 votes
4 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
  • 511
18 votes
16 answers
87k 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
11 votes
3 answers
35k 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
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
2 votes
2 answers
687 views

Magento 2.3 - LEMP Localhost - How to configure Nginx for Multi-Website store on Localhost (Centos 7)

Where is an error in my following steps for creating Multi Website Store :: Steps :- Main website Path : usr/share/nginx/html/giri Contains all magento files Configuration in nginx.conf.sample for ...
zus's user avatar
  • 175
7 votes
4 answers
33k 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
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,873
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
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
2 votes
5 answers
6k views

Magento2 with Varnish 4 and Nginx as SSL termination ends in mixed content

I have the following configuration on Debian based on 2 servers: On main server there are Apache2 and Magento 2 with Redis and Memcached. On 2nd server there is Varnish which listens on http://...
George A.B.'s user avatar
-1 votes
1 answer
248 views

Magento 2 404 Not Found

Fron my test server I can access files from: http://127.0.0.1/magento222/testfile.php But my companies server has shows me this restricting message What could be the cause of this?
Konstantin Patroev'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
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
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
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
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
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
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
2 votes
2 answers
5k views

Error installing Magento: Error parsing body - doesn't seem to be a chunked message

I am trying to install Magento and I am getting this error: The URL "https://something.com/" is not accessible. Error parsing body - doesn't seem to be a chunked message Weird because I am on that ...
jnbdz's user avatar
  • 803
2 votes
1 answer
1k views

Admin forgot password does not work with X-Content-Type-Options nosniff header

When using nginx with X-Content-Type-Options nosniff, e.g: add_header X-Content-Type-Options nosniff; With location specific rewrite in server block: location = /js/index.php/x.js { rewrite ...
mstephenson's user avatar
2 votes
2 answers
1k views

Magento 2 query url rewrite

If I have URL like this - mainpage.com/products?test_category=99 and want it to be rewritten to this mainpage.com/testproducts Since magento2 URL rewrite won't take query how can this be ...
Trenox's user avatar
  • 397
1 vote
1 answer
3k views

Varnish - NGINX serving all resources HTTP instead of HTTPS (Magento 2) [duplicate]

I'm using an Ubuntu / NGINX server configuration. Followed the directions found here: https://www.rosehosting.com/blog/magento-2-with-redis-varnish-and-nginx-as-ssl-termination/ I installed the SSL ...
Jeremy F.'s user avatar
1 vote
1 answer
4k 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....
G. G.'s user avatar
  • 1,191
1 vote
3 answers
4k views

Nginx Magento 2 403

Going through the magento devdocs on setting up magento 2 enterprise. Ubuntu 16.04 PHP 7.1 https://devdocs.magento.com/guides/v2.2/install-gde/prereq/nginx.html This is my issue I have worked through ...
Brandon Irwin's user avatar
1 vote
1 answer
2k views

403 error on WYSIWYG image previews

Whenever I open the WYSIWYG editor and try to add an image I get a bunnch of 403 errors in my chrome console and am unable to see the images. GET https://www.example.com/media/wysiwyg/.thumbs/wysiwyg/...
Holly's user avatar
  • 4,873
1 vote
4 answers
16k views

Magento 2: "There has been an error processing your request"

I installed Magento 2.1 on my Centos 7 server, running Nginx 1.10.1, MariaDB 10.1 and PHP7 with SSL. In theory, everything installed just fine and after the installation I got no errors what-so-ever, ...
MyrkkyMies's user avatar
1 vote
1 answer
620 views

Extreme big headers only in large configurable products

We have a Magento 2.4.0 store. Most of our products are configurable. And some of them are having a lot of options. We also use swatch options. We have discovered some links which return: Error 503 ...
G. G.'s user avatar
  • 1,191
1 vote
3 answers
1k views

Magento 2.3.x Admin Panel keeps loading

I have installed Magento 2.3.5-p1 and also tried 2.3.4-p2 on Centos 7, with Nginx & PHP-FPM, maria DB with following commands. 1. /var/www/magento < owner by MAGENTO:NGINX user (I have created ...
nix's user avatar
  • 127
1 vote
1 answer
531 views

Using Magento 2 in subdirectory calling nginx.conf.sample

I looked at this question but I believe magento has changed since then I am trying to set the location block for calling magento 2.4.6-p3 from a subdirectory with the following in my nginx 1.24 server ...
capnhud's user avatar
  • 123
1 vote
2 answers
3k views

Nginx throwing 404 - Magento 2 Docker Environment for Windows 10

I've been struggling to find a good working Docker container to start working on Magento 2 under Windows 10. I created my own based on this tutorial:https://tech.osteel.me/posts/docker-for-local-web-...
Kalvin Klien's user avatar
1 vote
1 answer
264 views

How does Magento determine the route / getting 404 behind proxy

I have the following constellation: NGINX in front of two apache vhosts One Vhost running Magento (port 8181) Proxy pass of https://example.de.testing.abc.de/en/shop/ -> http://127.0.0.1:8181 No ...
Alex's user avatar
  • 13.9k
1 vote
0 answers
423 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
1 vote
0 answers
2k views

Permissions problem with Magento 2.2.0, Nginx, Ubuntu Server only in var/cache/mage-tags

I keep getting the following types of errors: Exception #0 (Exception): Warning: file_put_contents(/opt/magento2ce/var/cache//mage-tags/mage---3d0_TRANSLATE): failed to open stream: Permission denied ...
jtlindsey's user avatar
  • 251
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
1 answer
1k views

Easy to Deploy 2 server setup on AWS

My client wishes to make a simple 2 server magento setup, one for the database and one for the webserver. Most AMI out there or AWS deployments are much much more complicated (and expensive!) and not ...
user avatar
0 votes
1 answer
999 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
  • 678
0 votes
1 answer
416 views

Redirect all https requests to http except for checkout

I want to redirect all https requests to http on frontend except for checkout. I am using nginx as my web service. Please let me know how can I do this.
Twinkal's user avatar
  • 650
0 votes
1 answer
17k views

500 Internal Server Error when trying to access admin pages

In a new installation of Magento (Ubuntu LEMP) I'm unable to access the admin page. Error.log says: 2014/08/20 12:04:30 [error] 7404#0: *6 rewrite or internal redirection cycle while processing "/...
cortopy's user avatar
  • 191
0 votes
0 answers
362 views

Magento 2 + NGINX + REDIS + VARNISH + SSL Changing to Developer mode

in Production Mode everything is fine. When i change to Developer Mode i have this Problem because its MIME type ('text/html') is not a supported stylesheet MIME type, and strict MIME checking is ...
Elbatl's user avatar
  • 11
0 votes
1 answer
2k 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 ...
Vincent Teyssier's user avatar
0 votes
1 answer
532 views

Problems with Elasticsearch install Ubuntu

I have installed on my Magento 2.3 server and an annotation has arrived for me to install Elasticsearch. This is my system: Ubuntu 18.04 Nginx 1.14.0 MySQL 5.7.25 I have followed these instructions: ...
Despotars's user avatar
  • 475