Warning: Cannot use a scalar value as an array in /home/admin/public_html/forum/include/fm.class.php on line 757

Warning: Invalid argument supplied for foreach() in /home/admin/public_html/forum/include/fm.class.php on line 770
Форумы портала PHP.SU :: Версия для печати :: Не работает PHP на https
Форумы портала PHP.SU » Серверное администрирование » Администрирование *nix » Не работает PHP на https

Страниц (1): [1]
 

1. maxegorov - 15 Апреля, 2014 - 19:12:49 - перейти к сообщению
Здравствуйте.

Настроил https на сервере aibk.com.au на основе самоподписанного сертификата.
Настроил VirtualHost:

<VirtualHost *:443>
SSLEngine on
SSLCertificateFile /etc/pki/tls/certs/ca.crt
SSLCertificateKeyFile /etc/pki/tls/private/ca.key
<Directory /home/aibk.com.au/www/>
AllowOverride All
</Directory>
DocumentRoot /home/aibk.com.au/www/
ServerName aibk.com.au
ErrorLog /home/aibk.com.au/logs/aibk.com. au.com-error_log
</VirtualHost>

Прописал изменения в брандмауэр:
iptables -A INPUT -p tcp --dport 443 -j ACCEPT
/sbin/service iptables save
iptables -L -v

Рестартанул, перезагрузил. PHP при заходе с https не работает. В корне есть файл php.php с <?php echo phpinfo()?>, он не выполняется, не отображается его содержимое: https://aibk.com.au/php.php. При этом путь указан правильно, можно например посмотреть фавиконку: https://aibk.com.au/favicon.png.

Файл лога и PHP пустые, ошибок и предупреждений нет.

.htaccess вроде бы верно сконфигурирован:
DirectoryIndex index.php
RewriteEngine On

Options +FollowSymlinks

RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*) /index.php?%{QUERY_STRING}

#php_value display_errors 1

<IfModule mod_expires.c>
ExpiresActive On
ExpiresDefault "access 7 days"
ExpiresByType application/javascript "access plus 1 year"
ExpiresByType text/javascript "access plus 1 year"
ExpiresByType text/css "access plus 1 year"
ExpiresByType text/html "access plus 7 day"
ExpiresByType text/x-javascript "access 1 year"
ExpiresByType image/gif "access plus 1 year"
ExpiresByType image/jpeg "access plus 1 year"
ExpiresByType image/png "access plus 1 year"
ExpiresByType image/jpg "access plus 1 year"
ExpiresByType image/x-icon "access 1 year"
ExpiresByType application/x-shockwave-flash "access 1 year"
</IfModule>

php_value display_errors 1
php_value display_startup_errors 1
php_value error_reporting E_ALL
(Добавление)
maxegorov пишет:
Здравствуйте.

Настроил https на сервере aibk.com.au на основе самоподписанного сертификата.
Настроил VirtualHost:

<VirtualHost *:443>
SSLEngine on
SSLCertificateFile /etc/pki/tls/certs/ca.crt
SSLCertificateKeyFile /etc/pki/tls/private/ca.key
<Directory /home/aibk.com.au/www/>
AllowOverride All
</Directory>
DocumentRoot /home/aibk.com.au/www/
ServerName aibk.com.au
ErrorLog /home/aibk.com.au/logs/aibk.com. au.com-error_log
</VirtualHost>

Прописал изменения в брандмауэр:
iptables -A INPUT -p tcp --dport 443 -j ACCEPT
/sbin/service iptables save
iptables -L -v

Рестартанул, перезагрузил. PHP при заходе с https не работает. В корне есть файл php.php с <?php echo phpinfo()?>, он не выполняется, не отображается его содержимое: https://aibk.com.au/php.php. При этом путь указан правильно, можно например посмотреть фавиконку: https://aibk.com.au/favicon.png.

Файлы логов пустые, ошибок и предупреждений нет.

.htaccess вроде бы верно сконфигурирован:
DirectoryIndex index.php
RewriteEngine On

Options +FollowSymlinks

RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*) /index.php?%{QUERY_STRING}

#php_value display_errors 1

<IfModule mod_expires.c>
ExpiresActive On
ExpiresDefault "access 7 days"
ExpiresByType application/javascript "access plus 1 year"
ExpiresByType text/javascript "access plus 1 year"
ExpiresByType text/css "access plus 1 year"
ExpiresByType text/html "access plus 7 day"
ExpiresByType text/x-javascript "access 1 year"
ExpiresByType image/gif "access plus 1 year"
ExpiresByType image/jpeg "access plus 1 year"
ExpiresByType image/png "access plus 1 year"
ExpiresByType image/jpg "access plus 1 year"
ExpiresByType image/x-icon "access 1 year"
ExpiresByType application/x-shockwave-flash "access 1 year"
</IfModule>

php_value display_errors 1
php_value display_startup_errors 1
php_value error_reporting E_ALL

 

Powered by ExBB FM 1.0 RC1