picocms / Pico

Pico is a stupidly simple, blazing fast, flat file CMS.
http://picocms.org/
MIT License
3.81k stars 615 forks source link

ssl problem http://page:80 #526

Closed lollita closed 4 years ago

lollita commented 4 years ago

I have a problem with port in a https web site. I solved adding: } else {$port=''; to line 2201 of Pico.php after if ($hostPortPosition !== false) {

PhrozenByte commented 4 years ago

Fix your webserver config. Your HTTP_HOST environment variable tells PHP contradictory data on which port it's running.

lollita commented 4 years ago

I not have access to server and then I have to forecast in my script.

PhrozenByte commented 4 years ago

In this case you should report this webserver misconfiguration to your webserver administrator. As an alternative you should manually configure Pico's base_url in config/config.yml instead of editing Pico's source code.

stale[bot] commented 4 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed in two days if no further activity occurs. Thank you for your contributions! :+1: