ini Apache :: Proxy配置,HTTP,HTTPS SSL TLS

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了ini Apache :: Proxy配置,HTTP,HTTPS SSL TLS相关的知识,希望对你有一定的参考价值。

# HTTP Proxy
# against specific NIC
<VirtualHost 10.10.10.1:80>
ServerName example.com

ProxyPreserveHost On
ProxyRequests Off
ProxyPass / http://10.10.10.2:80/
ProxyPassReverse / http://10.10.10.2:80/
ProxyTimeout 60
</VirtualHost>

# HTTPS Proxy
# against specific NIC (required)
<VirtualHost 10.10.10.1:443>
ServerName example.com

SSLEngine On
SSLProxyEngine on
SSLCertificateFile /etc/apache2/ssl/example.com.chained.pem

ProxyPreserveHost On
ProxyRequests Off
ProxyPass / https://10.10.10.2:443/
ProxyPassReverse / https://10.10.10.2:443/
ProxyTimeout 60
</VirtualHost>

php安装windows下apache2.4.33/php5.6.36配置

1、解压到文件夹

2、将目录下的php.ini-development文件复制一份并改名为php.ini作为配置文件

3、在apache http.conf中添加
  # php5 support
  LoadModule php5_module E:/Develop/wamp/php-5.6.36-Win32-VC11-x64/php5apache2_4.dll
  AddType application/x-httpd-php .php .html .htm
  # configure thepath to php.ini
  PHPIniDir "E:/Develop/wamp/php-5.6.36-Win32-VC11-x64"

4、修改extension_dir = "E:/Develop/wamp/php-5.6.36-Win32-VC11-x64/ext";

5、开启mysql扩展库
extension=php_curl.dll
extension=php_gd2.dll
extension=php_mysql.dll
extension=php_pdo_mysql.dll
extension=php_pdo_odbc.dll

6、重启apache











以上是关于ini Apache :: Proxy配置,HTTP,HTTPS SSL TLS的主要内容,如果未能解决你的问题,请参考以下文章

ubuntu18.04系统安装及php7.2,apache2,mysql8,git,svn,composer,vs code 到安装 php 扩展配置php.ini 实现 laravel5.8 运行(

Ubuntu Apache加载proxy模块

apache2.4 + mod_proxy + tomcat7 配置集群和负载均衡

apache2.4 + mod_proxy + tomcat7 配置集群和负载均衡

ini 梅格的Apache配置文件

ini 梅格的Apache配置文件