Skip to content

Commit

Permalink
Add mixed-favicon.badssl.com.
Browse files Browse the repository at this point in the history
  • Loading branch information
lgarron committed Jul 6, 2015
1 parent 9149db1 commit 7ad4a46
Show file tree
Hide file tree
Showing 3 changed files with 87 additions and 0 deletions.
29 changes: 29 additions & 0 deletions domains/misc/mixed-favicon.badssl.com.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
server {
listen 80;
server_name mixed-favicon.badssl.com;

location = /favicon.ico {
root /var/www/badssl/domains/misc/mixed-favicon.badssl.com;
try_files $uri $uri/ =404;
}

location / {
return 301 https://$server_name$request_uri;
}
}

server {
listen 443;
server_name mixed-favicon.badssl.com;

include /var/www/badssl/nginx-includes/wildcard.normal.conf;
include /var/www/badssl/nginx-includes/tls-defaults.conf;
include /var/www/badssl/common/common.conf;

location /favicon.ico {
root /var/www/badssl/domains/misc/mixed-favicon.badssl.com;
return 301 http://$server_name$request_uri;
}

root /var/www/badssl/domains/misc/mixed-favicon.badssl.com;
}
Binary file not shown.
58 changes: 58 additions & 0 deletions domains/misc/mixed-favicon.badssl.com/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
<!doctype html>
<html>
<head>
<title>mixed-favicon.badssl.com</title>
<link rel="apple-touch-icon" href="/icons/icon-yellow.png"/>
<style>
html, body {
background: rgb(246, 207, 47);

margin: 0;
padding: 0;

height: 100%;
display: -webkit-flexbox;
display: -ms-flexbox;
display: -webkit-flex;
display: flex;
-webkit-align-items: center;
align-items: center;
-webkit-justify-content: center;
justify-content: center;
}
h1 {
color: white;
text-align: center;
font-family: "Source Code Pro", Monaco, Consolas, "Courier New", monospace, Impact;
font-size: 5em;
font-size: 9vw;
text-shadow:
0 0 20px rgba(255, 255, 255, 0.5),
0 0 40px rgba(255, 255, 255, 0.5),
0 0 60px rgba(255, 255, 255, 0.5);
}
.footer {
background: rgba(0, 0, 0, 0.25);

position: fixed;
width: 80vw;
bottom: 0;
left: 0;
padding: 2vh 10vw;

font-family: Helvetica, Tahoma, sans-serif;
text-align: center;
color: white;
font-size: 3vw;
}
.footer a {
color: white;
}
</style>
</head>
<body>
<h1>mixed-favicon.<br>badssl.com</h1>
<div class="footer">This site's <a href="/favicon.ico">implicit favicon</a> redirects to HTTP.</div>
</body>
</body>
</html>

0 comments on commit 7ad4a46

Please sign in to comment.