Skip to content

Commit 930c860

Browse files
committed
Serve scripts-cert.mit.edu with SNI-based and name-based virtual hosting.
When traffic is going through the proxies, IP-based virtual hosting is no longer an option.
1 parent 0dfb762 commit 930c860

File tree

1 file changed

+18
-16
lines changed

1 file changed

+18
-16
lines changed

server/fedora/config/etc/httpd/conf/httpd.conf

Lines changed: 18 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -273,13 +273,6 @@ ProxyRequests Off
273273
ErrorDocument 404 "No favicon.ico.
274274
</Location>
275275

276-
<VirtualHost 18.4.86.50:80>
277-
ServerName scripts-cert.mit.edu
278-
ServerAlias scripts-cert
279-
Include conf.d/scripts-vhost.conf
280-
Include conf.d/vhosts-common.conf
281-
</VirtualHost>
282-
283276
# LDAP vhost, w00t w00t
284277
<VirtualHost *:80>
285278
ServerName localhost
@@ -293,6 +286,14 @@ ProxyRequests Off
293286
Include conf.d/vhosts-common.conf
294287
</VirtualHost>
295288

289+
# scripts-cert.mit.edu; must be listed below the default vhost
290+
<VirtualHost 18.4.86.50:80 *:80>
291+
ServerName scripts-cert.mit.edu
292+
ServerAlias scripts-cert
293+
Include conf.d/scripts-vhost.conf
294+
Include conf.d/vhosts-common.conf
295+
</VirtualHost>
296+
296297
<IfModule ssl_module>
297298
Listen 443
298299
Listen 444
@@ -321,15 +322,6 @@ ProxyRequests Off
321322
SSLHonorCipherOrder on
322323
SSLCompression off
323324

324-
<VirtualHost 18.4.86.50:443 18.4.86.50:444>
325-
ServerName scripts-cert.mit.edu
326-
ServerAlias scripts-cert
327-
Include conf.d/scripts-vhost.conf
328-
Include conf.d/vhosts-common-ssl.conf
329-
SSLCertificateFile /etc/pki/tls/certs/scripts-cert.pem
330-
SSLCertificateKeyFile /etc/pki/tls/private/scripts-2048.key
331-
Include conf.d/vhosts-common-ssl-cert.conf
332-
</VirtualHost>
333325
<VirtualHost 18.4.86.43:443>
334326
Include conf.d/scripts-vhost-names.conf
335327
Include conf.d/scripts-vhost.conf
@@ -377,6 +369,16 @@ ProxyRequests Off
377369
Include conf.d/vhosts-common-ssl.conf
378370
Include conf.d/vhosts-common-ssl-cert.conf
379371
</VirtualHost>
372+
# scripts-cert.mit.edu; must be listed below the default vhost
373+
<VirtualHost 18.4.86.50:443 18.4.86.50:444 *:443 *:444>
374+
ServerName scripts-cert.mit.edu
375+
ServerAlias scripts-cert
376+
Include conf.d/scripts-vhost.conf
377+
Include conf.d/vhosts-common-ssl.conf
378+
SSLCertificateFile /etc/pki/tls/certs/scripts-cert.pem
379+
SSLCertificateKeyFile /etc/pki/tls/private/scripts-2048.key
380+
Include conf.d/vhosts-common-ssl-cert.conf
381+
</VirtualHost>
380382
Include /var/lib/scripts-certs/vhosts.conf
381383
</IfModule>
382384

0 commit comments

Comments
 (0)