Changeset 2495b5a in mod_gnutls


Ignore:
Timestamp:
Sep 27, 2020, 11:04:57 AM (7 months ago)
Author:
Fiona Klute <fiona.klute@…>
Branches:
asyncio
Children:
e27e01f
Parents:
65a13b5
Message:

Create rewrite paths that only work on one virtual host each

This makes it easy to verify that the expected virtual host responded
to the request.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • test/tests/04_name_based_vhosts/apache.conf

    r65a13b5 r2495b5a  
    33GnuTLSCache ${DEFAULT_CACHE}
    44
     5LoadModule rewrite_module ${AP_LIBEXECDIR}/mod_rewrite.so
     6
    57<VirtualHost _default_:${TEST_PORT}>
    68    ServerName ${TEST_HOST}
    79    GnuTLSEnable On
    8     GnuTLSCertificateFile       authority/server/x509.pem
    9     GnuTLSKeyFile               authority/server/secret.key
     10    GnuTLSCertificateFile authority/server/x509.pem
     11    GnuTLSKeyFile authority/server/secret.key
     12    # create a path that only works on this vhost
     13    RewriteEngine On
     14    RewriteRule "^/vhost0/test\.txt$" "/test.txt" [PT]
    1015</VirtualHost>
    1116
     
    1419    ServerAlias *.meow.test
    1520    GnuTLSEnable On
    16     GnuTLSCertificateFile       authority/meow.test/x509.pem
    17     GnuTLSKeyFile               authority/meow.test/secret.key
     21    GnuTLSCertificateFile authority/meow.test/x509.pem
     22    GnuTLSKeyFile authority/meow.test/secret.key
     23    RewriteEngine On
     24    RewriteRule "^/meow/test\.txt$" "/test.txt" [PT]
    1825</VirtualHost>
    1926
     
    2330    ServerAlias *.example.test
    2431    GnuTLSEnable On
    25     GnuTLSCertificateFile       authority/server/x509.pem
    26     GnuTLSKeyFile               authority/server/secret.key
     32    GnuTLSCertificateFile authority/server/x509.pem
     33    GnuTLSKeyFile authority/server/secret.key
     34    RewriteEngine On
     35    RewriteRule "^/vhost2/test\.txt$" "/test.txt" [PT]
    2736</VirtualHost>
Note: See TracChangeset for help on using the changeset viewer.