C:\xampp\apache\conf\extra\httpd-vhosts.conf
<VirtualHost *:80>
DocumentRoot "C:/xampp/htdocs/file"
ServerName 182.61.48.146
</VirtualHost>
<VirtualHost *:80>
DocumentRoot "C:/xampp/htdocs/ldper.com"
ServerName ldper.com
ServerAlias www.ldper.com
<Directory />
Options Indexes FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
</Directory>
RedirectMatch permanent ^/(.*) https://ldper.com/$1
</VirtualHost>
<VirtualHost *:443>
DocumentRoot "C:/xampp/htdocs/ldper.com"
ServerName ldper.com
SSLEngine on
SSLCertificateFile "C:/xampp/apache/conf/ssl/ldper.com.cer"
SSLCertificateKeyFile "C:/xampp/apache/conf/ssl/ldper.com.key"
SSLCertificateChainFile "C:/xampp/apache/conf/ssl/ca.cer"
<Directory />
Options Indexes FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
暂无评论