AltruHost Posted February 24, 2011 Share Posted February 24, 2011 Under a https vhost phpMyAdmin doesn't work... the problem is that it attempts to send and http request to the https socket... anyways to fix this the vhost needs an additional fastcgi_param under the https vhost entry... you can't use the domain configuration to add custom entries because this needs to go in the location ~ \.php$ { section to work properly to fix I modifed the file: /var/www/froxlor/scripts/jobs/cron_tasks.inc.http.35.nginx_phpfpm.php probably a better way to do this... but it works... also, this is using git commit 215abeb1057555078d3910e7fb8575f99a871ae9 on Feb18 --- ./cron_tasks.inc.http.35.nginx_phpfpm.php 2011-02-24 19:05:41.610000395 -0600 +++ /var/www/froxlor/scripts/jobs/cron_tasks.inc.http.35.nginx_phpfpm.php 2011-02-24 17:50:34.801008730 -0600 @@ -40,6 +40,10 @@ $php_options_text = "\t".'location ~ \.php$ {'."\n"; $php_options_text.= "\t\t".'fastcgi_index index.php;'."\n"; $php_options_text.= "\t\t".'include /etc/nginx/fastcgi_params;'."\n"; + if($domain['port'] != '80' && $domain['ssl'] == '1') + { + $php_options_text.= "\t\t".'fastcgi_param HTTPS on;'."\n"; + } $php_options_text.= "\t\t".'fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;'."\n"; $php_options_text.= "\t\t".'fastcgi_pass unix:' . $php->getInterface()->getSocketFile() . ';' . "\n"; $php_options_text.= "\t".'}'."\n"; Link to comment Share on other sites More sharing options...
d00p Posted February 24, 2011 Share Posted February 24, 2011 please file this to the bugtracker Link to comment Share on other sites More sharing options...
Question
AltruHost
Under a https vhost phpMyAdmin doesn't work... the problem is that it attempts to send and http request to the https socket...
anyways to fix this the vhost needs an additional fastcgi_param under the https vhost entry...
you can't use the domain configuration to add custom entries because this needs to go in the location ~ \.php$ { section to work properly
to fix I modifed the file: /var/www/froxlor/scripts/jobs/cron_tasks.inc.http.35.nginx_phpfpm.php
probably a better way to do this... but it works...
also, this is using git commit 215abeb1057555078d3910e7fb8575f99a871ae9 on Feb18
--- ./cron_tasks.inc.http.35.nginx_phpfpm.php 2011-02-24 19:05:41.610000395 -0600
+++ /var/www/froxlor/scripts/jobs/cron_tasks.inc.http.35.nginx_phpfpm.php 2011-02-24 17:50:34.801008730 -0600
@@ -40,6 +40,10 @@
$php_options_text = "\t".'location ~ \.php$ {'."\n";
$php_options_text.= "\t\t".'fastcgi_index index.php;'."\n";
$php_options_text.= "\t\t".'include /etc/nginx/fastcgi_params;'."\n";
+ if($domain['port'] != '80' && $domain['ssl'] == '1')
+ {
+ $php_options_text.= "\t\t".'fastcgi_param HTTPS on;'."\n";
+ }
$php_options_text.= "\t\t".'fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;'."\n";
$php_options_text.= "\t\t".'fastcgi_pass unix:' . $php->getInterface()->getSocketFile() . ';' . "\n";
$php_options_text.= "\t".'}'."\n";
Link to comment
Share on other sites
1 answer to this question
Recommended Posts
Archived
This topic is now archived and is closed to further replies.