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.
350
questions
3
votes
1answer
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 ...
0
votes
1answer
1k views
Magento Multiple stores with nginx
I am following tutorials about magento ,it use nginx as server ,I created 2 different stores and edit the file /etc/nginx/sites-available/magento as follows :
map $http_host $mage_run_code {
...
1
vote
1answer
893 views
The code (provided by magento) against admin password-guessing to protect magento does not work for me
Using this link I made below changes to protect magento installation, but after restating the fail2ban, I could overpass the maxretry to enter wrong password and no banning happens. Considering that ...
0
votes
1answer
804 views
301 Redirection on nginx server (thousands of 404 errors)
we have an issue with the website (using Magento, on nginx) as it has ~5k URLs returning a 404 error. Most of these are product pages.
We need to make a 301 redirects for all these URLs, e.g.:
...
3
votes
0answers
2k views
Leverage browser caching having Varnish installed
Magento is running on 1.9.x, and web server is Nginx having Varnish installed on it using Turpentine plugin. Site speed is very fine when running from any browser due to Varnish cache but page speed ...
3
votes
1answer
3k views
Magento2 with Nginx and PHP7: cannot access the admin
We have installed a fresh Magento 2.0.2 with PHP 7.0.4 and Nginx.
The frontend works correctly, and we can create customer accounts.
But, the problem is we cannot access the admin. it gives an error: ...
0
votes
1answer
1k views
Magento 2 installation says var directory is not writable
I have a strange problem with my Magento 2 installation. The readiness check says my var-directory is not writable although it clearly is. I even set it to 777. The other directories (app/etc, pub/...
2
votes
2answers
1k views
Magento and Wordpress in two different servers, same domain
I have a ecommerce in Magento: ecommerceshop.com (example) and i create a wordpress blog to this ecommerce.
I have two different servers:
ecommerceshop.com in AWS
blog.ecommerceshop.com (Blog) in ...
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 ...
0
votes
1answer
81 views
Secure pages return 404 after migration
After copying and moving my site to a staging.domain.com spot on the same server. The frontend works but all of my secure pages (admin, login, checkout etc) pages return an Nginx 404. I've made an ...
2
votes
4answers
10k views
Magento 2: Using nginx — All Static Assets are 404
I'm trying to install Magento 2 using the Laravel Homestead project. Laravel Homestead provides a virtual machine based around nginx. I have nginx successfully serving Magento 2 application pages. ...
0
votes
2answers
1k views
Inconsistent Cookies between www and non-www URLs
I have a site with some cookies issues where going to a non-www URL will set cookies that prevents customers from logging in. I have found other questions that refer to the cookies settings as the ...
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 ...
0
votes
1answer
433 views
Multi-Store Nginx Strange Crossover
Maybe someone can shed some light on this issue. Here's what's happening, when a user visits domain2.com they are sometimes re-directed to domain1.com. Going to domain2.com for a second time (re-...
2
votes
1answer
514 views
nginx stopping people from hacking our admin url
We use nginx and in an effort to stop all thos IP's trying to find our secret admin url we wanted to add a nginx location rule:
Looking in location
Where the first directory/folder contains the word ...
0
votes
0answers
702 views
Magento 301 Redirection having multiple redirects Nginx Server
We have migrated a website from .NET platform to Magento. We have changed the URL structure of both the websites hence the old URL needs to be redirected to New URL.
For example:
1) Old URL: http://...
4
votes
1answer
768 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 ...
1
vote
0answers
407 views
404 in Nginx server after moving Magento Multistore from sub-domain to sub-folder
We have a Magento multistore with 3 stores.
We need to move one store that is in subdomain to a sub-folder of another domain: From MyShop.MyDomain1.com to MyDomain1.es/MyShop/
We need to make this ...
1
vote
1answer
3k views
Separate Admin to new server with subdomain on AWS
I want to separate the backend on another server on AWS (not changing the path), Here is my desired design:
One EC2 (should be for frontend only and in auto-scaling)
One for admin, cron and images ...
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
...
0
votes
2answers
701 views
Non http pages are redirecting to home page (Nginx)
I would like all my pages for http to redirect to the same location as https
for example
http://www.domain.com/somepage/ now redirects to https://www.domain.com
I would like it to redirect to ...
0
votes
2answers
588 views
Magento slow only on save (NGINX)
Magento 1.9.2.2 is very slow on product save within an NGINX enviroment.
I use following settings:
PHP-FPM 5.6.8 / 5.6.2
Php.ini
memory_limit = 2048M
max_execution_time = 1800
upload_max_filesize ...
2
votes
1answer
250 views
magento subdomain website $this->getRequest()->isPost() return blank in every form submission
I have magento website in domain and also in sub domain.
The domain website form work correctly i.e. $this->getRequest()->isPost() return true after form submission.
But the subdomain website ...
1
vote
4answers
1k views
Customer registration problem. Page reload after submit
I have two magento websites in domain and subdomain like test.com and test.test.com.
In Domain website and admin panel works fine.
But In Subdomain website the customer registration not done.After ...
1
vote
1answer
1k 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/...
1
vote
0answers
218 views
Product Page URL suffix “.php” won't work in Nginx
I have set product page url suffix to ".php" in magento for some SEO purposes.
Sample url: http://www.example.com/some-product.php
It worked fine on apache, but right after I migrated to nginx, it ...
2
votes
4answers
4k views
Magento completely broken: Call to a member function getCode() on boolean & There was no 404 CMS page configured or found
Suddenly (without any changes or updates) our magento installation seems to be completely broken.
Every day we're now getting some of this errors:
There was no 404 CMS page configured or found when ...
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:
...
1
vote
1answer
86 views
Nginx and Magento 1.13 running URL migration script
I have to upgrade to 1.14 from 1.11 and have to go through 1.13, and the long url_migration_to_1_13.php script.
The website is running on NGinx, and I know the script can run on multiple thread with ...
2
votes
1answer
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 ...
2
votes
1answer
849 views
Issue with Magento 301 redirect on Nginx [closed]
As the subject states, I have some issues with my redirects.
I have setup 301 to redirect non-www to www and changed it from the Magento EE admin panel too. For the root domain non-www works ...
0
votes
1answer
704 views
Magento: Cart showing empty on checkout
When i click buy button items are adding into the cart.But When I do checkout, after logging from account and then filling shipping details,the cart becomes empty.Normally the URL which is followed ...
2
votes
1answer
718 views
Downloadable products - zip files cut off at just over 1GB mark
We've had a problem with our Magento store for a long time now (used to be Magento 1.4, recently upgraded to 1.9.2) and after a few days pulling my hair out trying to find a solution without success, ...
0
votes
1answer
591 views
Custom Extension - empty observer on sales_order_save_after causes 502; checkout redirects to Cart
I'm trying to build a custom extension for an existing Magento setup which will fire on the sales_order_save_after observer.
With the extension disabled, the checkout completes fine, going through ...
4
votes
2answers
311 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 ...
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?
1
vote
0answers
285 views
nginx multiple stores - PRODUCT NOT FOUND [closed]
There is a website that has multiple subcatogories which are stores in magento:
www.website.com/sub1
www.website.com/sub2
www.website.com/sub3
The server used is ngnix. everything is set up. And ...
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: ...
2
votes
1answer
673 views
How to distribute Magento application across several nodes in cluster setup?
I've been Googling around, but still don't have a clear picture of the subject.
I've set up following
1x LB node (nginx)
1x Webserver node (Nginx + PHP-FPM)
1x Cache-Session node (2 Redis instances)...
1
vote
1answer
2k views
Magento 404 Page redirect to home page in Nginx
We work on a Magento website and recently we have created a customer 404 page basically a new CMS page and set it as CMS no route page in configuration.
This is working fine on my local system and ...
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 ...
1
vote
0answers
344 views
Admin category page constantly reloading after fresh install (Magento 1.9.1)
After fresh install on server, categories admin page keeps loading over and over again. I use NGINX 1.8 on ubuntu 14.04.
An additional symptom: catalog filters on front-end doesn't work too. I've ...
3
votes
0answers
171 views
Keep old urls for default store view in magento after enabling store code in urls
I have enabled store codes for my Magento website and it is working fine. I have two store views, arabic and english. For arabic, i have store code ar and en for english. My default store view is ...
1
vote
3answers
3k views
Apache 2.4 + Ngnix ? For Magento CE 1.9
I have a magento 1.9 installation About 100k products on a dedicated server with the below specs. I am curious if installing Nginx with Apache 2.4 will give performance gains? If so how should it be ...
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 ?...
0
votes
1answer
973 views
Product Redirect Loops
We have a Magento website (1.6.2) on a LEMP server which we have had running for just over 2 years. Recently we made a few changes;
Changed the whole site to HTTPS.
Created all new categories and got ...
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 ...
1
vote
0answers
67 views
Multi site not updating [closed]
I have site A which is the main site and site B which is multi site of Site A.
I have a problem where some things are not changing on site B eg the store phone number. So I have changed the store ...
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 ...
1
vote
2answers
606 views
Magento Onepage keeps redirecting to cart until I reload php-fpm
I have a Magento site on an nginx server with PHP-fpm. I came into this project recently with the server already set up, albeit poorly. Right now, when a user is in onepage checkout and tries to move ...