I resolved it after a deep study of my sites. In my server I have two sites: the first is written by me (a managerial software), and the second uses WordPress. I noticed out that the first site can be surfed with www and without-www, so I deduced that the problem wasn't the web server, but the CMS. After some researches on the web about this thing, I found out that WordPress (and also Magento) forby mattiamerlini - How to...
I've read this topic and tried, but nothing has changed. I have made some test mistakes and nginx noticed them, so my configs are loaded by the web server. I can't figured out what is the problemby mattiamerlini - How to...
I enabled the debug mode and in the log file I found out this line: "^(GET|HEAD)$" matches "GET", client: xxx.xxx.xxx.xxx, server: www.mattiamerlini.it, request: "GET / HTTP/1.1", host: "mattiamerlini.it", referrer: "http://mattiamerlini.it/" I think the referrer is the problem. Is the problem clearer for you now? Thanksby mattiamerlini - How to...
I commented out it but nothing works. Nginx restarts with no problem Have you found out something strange, unusual or wrong in my config files?by mattiamerlini - How to...
itpp2012 Wrote: ------------------------------------------------------- > server_name www.mysite.com mysite.com; > > should work, I use it too and just tested it again and this works > fine, are you sure nginx is restarting ok? Now I will test again. I have to remove server_name_in_redirect on; set it to off or set it to on? Thanks a lotby mattiamerlini - How to...
itpp2012 Wrote: ------------------------------------------------------- > Can you explain what you are trying to do? I'm trying to allow both navigation of a site with ww and without www. In attachment I inserted a photo that explains my need Thanksby mattiamerlini - How to...
itpp2012 Wrote: ------------------------------------------------------- > server_name www.mydomain.eu mydomain.eu; Thank you itpp2012, but I've already tried this solution and it still not working Any other solutions? I can remove server_name_in_redirect on; from nginx.conf but doesn't workby mattiamerlini - How to...
Hi! As in the title my problem is about www e non www urls. I use nginxCP, a distribution of nginx that suites cPanel and WHM. I need to be able to surf my magento sites hosted by this server with both non-www and www urls. Ex: when I type "www.mysite.com" I surf this site with www, when I type "mysite.com" I surf this site with www. No redirect Is there a way to do this?by mattiamerlini - How to...
![]() |
![]() |
![]() |
![]() |
|