企业🤖AI智能体构建引擎,智能编排和调试,一键部署,支持私有化部署方案 广告
httpd.conf ``` Include conf/vhosts/\*.conf ``` httpd-vhosts.conf ``` Listen 443 ``` 生成所需要的ssl ``` openssl genrsa 1024 > domain1.key openssl req -config C:\phpstudy_pro\Extensions\Apache2.4.39\conf\openssl.cnf -new -key domain1.key > domain1.csr openssl req -config C:\phpstudy_pro\Extensions\Apache2.4.39\conf\openssl.cnf -x509 -days 365 -key domain1.key -in domain1.csr > domain1.crt ``` 生成: domain1.key domain1.crt domain1.csr 文件 n.domain1.com_443.conf ~~~Apache <VirtualHost *:443> DocumentRoot "C:/phpstudy_pro/WWW/n.domain1.com" ServerName n.domain1.com ServerAlias SSLEngine on SSLCertificateFile "C:/phpstudy_pro/Extensions/Apache2.4.39/conf/ssl/domain1.crt" SSLCertificateKeyFile "C:/phpstudy_pro/Extensions/Apache2.4.39/conf/ssl/domain1.key" <Directory "C:/phpstudy_pro/WWW/n.domain1.com"> Options FollowSymLinks ExecCGI AllowOverride All Order allow,deny Allow from all Require all granted DirectoryIndex index.php index.html error/index.html </Directory> </VirtualHost> ~~~