Home>Article>Backend Development> What should I do if the server does not support https access to php?

What should I do if the server does not support https access to php?

coldplay.xixi
coldplay.xixi Original
2020-07-13 13:35:57 3825browse

The server does not support https access to php. Solution: first edit the statement [/apache2/conf/extra/httpd-ssl.conf]; then add the corresponding code to the program; finally save it and restart Apache. .

What should I do if the server does not support https access to php?

The server does not support https access to php solution:

1. Edit/apache2/conf /extra/httpd-ssl.conf

2. Add the following two items under the label:

  • ProxyPassMatch ^/(.*\. php)$ fcgi://127.0.0.1:10000/Your server default directory/$1

  • ##DirectoryIndex index.html index.php

3. Save and restart Apache (service httpd restart)

Related learning recommendations:

PHP programming from entry to proficiency

The above is the detailed content of What should I do if the server does not support https access to php?. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn