Dummy/default page for apache
- by Ency
I'm trying to set up default page for my apache2, for following cases:
User is accessing http://IP_Address instead of hostname
Requested protocol (HTTP/HTTPS) is not available (eg. only http*s*://domain.com exists)
Currently I've got something like that
<VirtualHost eserver:80>
ServerAdmin webmaster@localhost
DocumentRoot /var/www/local/
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
</VirtualHost>
I think, it works well, i'm trying to do similar thing for HTTPS, but it does not work.
<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
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn
ServerSignature Off
</VirtualHost>
My default is places in sites-enabled as a first one 000-default
I do not care about not certificate validity during accessing default page, my goal is not show different HTTPS page if user one of points is applied