Problem with php on nginx when accessing over HTTPS, anyone have any tips?

July 8, 2014 1.2k views

Hello friends, I am setting up a drop using PML and ubuntu, I have a problem when trying to access php files, when I use the normal url it works perfectly, but the access by low https php file.

link = ok http://www.crialojas.com/info.php
link no ok = https://www.crialojas.com/info.php

my nginx config:
http://pastebin.com/hQxT2iMt

3 Answers

Hi!

Could you explain what the problem you're seeing is? I can access both the HTTP and HTTPS links without problem. You Nginx configuration looks fine as well.

@Andrew SB
Hello dear friend, go http://www.crialojas.com/info.php realize that will open the php info usually no problem accessing more https://www.crialojas.com/info.php will download the file with the code phpinfo.

  • Both links load the phpinfo() for me. Try clearing your browser's cache or trying again in Incognito mode using Chrome.

Exactly as he had accessed before installing ssl file my browser placed in the same cache, al accessed whenever he lowered the browser cache and not the server, after clearing the cache worked perfectly thank you all.

my nginx config:
http://pastebin.com/hQxT2iMt

Have another answer? Share your knowledge.