-
Notifications
You must be signed in to change notification settings - Fork 195
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
92 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
<!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: 7vw; | ||
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); | ||
} | ||
img { | ||
width: 20vh; | ||
max-width: 256; | ||
margin-top: 5vh; | ||
} | ||
.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> |