Try the Demo

Magento Forum

   
Page 3 of 3
NginX Web Server with Magento
 
clockworkgeek
Sr. Member
 
Avatar
Total Posts:  78
Joined:  2009-07-31
 
rsskga - 16 July 2010 10:02 AM

clockworkgeek\’s nginx config instructions (http://www.magentocommerce.com/boards/viewthread/7931/#t211050) were super, super helpful to me. My site seemed fine, however I started noticing in my Google Analytics reports that many visitors were bouncing from URL\’s like so:
http://store.com/product-url-path/index.php

This was because product pages with /index.php appended were resulting in a blank white screen with the error message \’No input file specified.\’ Nothing in the error log. I googled the heck out of this, and found suggested solutions ranging from ensuring that nginx and php config paths were correct, to launching php with the correct user/group permissions, etc. None of these suggestions helped me at all.

So… it may be a hack, and maybe I really do need to fix something with my server… but I deduced that I could fix the problem for now with rewrites. Here is the line I added to my nginx domain.conf.

location ~ /(.*)/index\.php## strip index.php from product urls
        
if (!-e $request_filename{ rewrite ^(.*)/index\.php$ $1permanent
}

Hope this helps someone else!

I’ve incorporated something similar into my new wiki. Thanks.

rsskga - 16 July 2010 10:02 AM

I am still getting these errors… If anyone can shed some light I\’d appreciate it. (I have SSL on.)
[warn]: conflicting server name \"domain.com\" on 0.0.0.0:80, ignored
[warn]: conflicting server name \"domain.com\" on 0.0.0.0:443, ignored

This means you have more than one config file for “domain.com”, remember that you must replace “DOMAIN” with the actual domain of your site in each config file, and each domain:port must be defined only once. It sounds like you have duplicate files in “/etc/nginx/conf.d/”

 Signature 

My extensions

 
Magento Community Magento Community
Magento Community
Magento Community
 
rsskga
Jr. Member
 
Avatar
Total Posts:  30
Joined:  2008-02-15
San Francisco
 

Yep, that was me. The nginx community is very friendly and helpful, as well. Thanks for your contributions!

 Signature 

SwimKitten.com

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
    Back to top
Page 3 of 3