apache的虚拟/默认页面
我试图为我的apache2设置默认页面,以下情况: 用户正在访问http:// IP地址而不是主机名 请求的协议(HTTP / HTTPS)不可用(例如,只有http://domain.com存在) 目前我有这样的事情 <VirtualHost eserver:80> ServerAdmin webmaster@localhost DocumentRoot /var/www/local/ <Directory /> Options FollowSymLinks AllowOverride None </Directory> </VirtualHost> 我认为,它运作良好,我试图为HTTPS做类似的事情,但它不工作。 <VirtualHost eserver:443> SSLCertificateKeyFile /etc/apache2/ssl/dummy.key SSLCertificateFile /etc/apache2/ssl/dummy.crt SSLProtocol all SSLCipherSuite HIGH:MEDIUM ErrorLog /var/log/apache2/error.log DocumentRoot /var/www/local/ # Possible values include: debug, info, notice, warn, error, crit, # alert, emerg. LogLevel warn ServerSignature Off </VirtualHost> 我的默认值是作为第一个000-默认的启用网站的地方 […]