Dummy/default page for apache
Posted
by
Ency
on Server Fault
See other posts from Server Fault
or by Ency
Published on 2011-01-06T11:21:18Z
Indexed on
2011/01/06
11:55 UTC
Read the original article
Hit count: 388
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
© Server Fault or respective owner