Skip to content
This repository was archived by the owner on Jul 21, 2025. It is now read-only.

Commit c24ed9f

Browse files
committed
Add mixed-favicon.badssl.com.
1 parent 9149db1 commit c24ed9f

File tree

3 files changed

+92
-0
lines changed

3 files changed

+92
-0
lines changed
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
server {
2+
listen 80;
3+
server_name mixed-favicon.badssl.com;
4+
5+
location = /favicon.ico {
6+
root /var/www/badssl/domains/misc/mixed-favicon.badssl.com;
7+
try_files $uri $uri/ =404;
8+
}
9+
10+
location / {
11+
return 301 https://$server_name$request_uri;
12+
}
13+
}
14+
15+
server {
16+
listen 443;
17+
server_name mixed-favicon.badssl.com;
18+
19+
include /var/www/badssl/nginx-includes/wildcard.normal.conf;
20+
include /var/www/badssl/nginx-includes/tls-defaults.conf;
21+
include /var/www/badssl/common/common.conf;
22+
23+
location /favicon.ico {
24+
root /var/www/badssl/domains/misc/mixed-favicon.badssl.com;
25+
return 301 http://$server_name$request_uri;
26+
}
27+
28+
root /var/www/badssl/domains/misc/mixed-favicon.badssl.com;
29+
}
5.3 KB
Binary file not shown.
Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
<!doctype html>
2+
<html>
3+
<head>
4+
<title>mixed-favicon.badssl.com</title>
5+
<link rel="apple-touch-icon" href="/icons/icon-yellow.png"/>
6+
<style>
7+
html, body {
8+
background: rgb(246, 207, 47);
9+
10+
margin: 0;
11+
padding: 0;
12+
13+
height: 100%;
14+
display: -webkit-flexbox;
15+
display: -ms-flexbox;
16+
display: -webkit-flex;
17+
display: flex;
18+
-webkit-align-items: center;
19+
align-items: center;
20+
-webkit-justify-content: center;
21+
justify-content: center;
22+
}
23+
h1 {
24+
color: white;
25+
text-align: center;
26+
font-family: "Source Code Pro", Monaco, Consolas, "Courier New", monospace, Impact;
27+
font-size: 5em;
28+
font-size: 7vw;
29+
text-shadow:
30+
0 0 20px rgba(255, 255, 255, 0.5),
31+
0 0 40px rgba(255, 255, 255, 0.5),
32+
0 0 60px rgba(255, 255, 255, 0.5);
33+
}
34+
img {
35+
width: 20vh;
36+
max-width: 256;
37+
margin-top: 5vh;
38+
}
39+
.footer {
40+
background: rgba(0, 0, 0, 0.25);
41+
42+
position: fixed;
43+
width: 80vw;
44+
bottom: 0;
45+
left: 0;
46+
padding: 2vh 10vw;
47+
48+
font-family: Helvetica, Tahoma, sans-serif;
49+
text-align: center;
50+
color: white;
51+
font-size: 3vw;
52+
}
53+
.footer a {
54+
color: white;
55+
}
56+
</style>
57+
</head>
58+
<body>
59+
<h1>mixed-favicon.<br>badssl.com</h1>
60+
<div class="footer">This site's <a href="/favicon.ico">implicit favicon</a> redirects to HTTP.</div>
61+
</body>
62+
</body>
63+
</html>

0 commit comments

Comments
 (0)