Ignore:
Timestamp:
Nov 4, 2018, 9:42:51 AM (15 months ago)
Author:
Fiona Klute <fiona.klute@…>
Branches:
debian/master, master
Children:
7ff6c6c
Parents:
7f2fd55
Message:

Test suite: Use static output instead of CGI for test 30_ip_based_vhosts

The CGI output usually but not always chunked encoding, and the "not
always" part causes trouble because the output is compared literally
with the expected output. Requesting a static file avoids this.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • test/tests/30_ip_based_vhosts/apache.conf

    r7f2fd55 r99eb567  
    11Include ${srcdir}/base_apache.conf
    2 Include ${srcdir}/cgi_module.conf
    32
    43GnuTLSCache ${DEFAULT_CACHE}
     4
     5LoadModule      rewrite_module  ${AP_LIBEXECDIR}/mod_rewrite.so
    56
    67<VirtualHost ${VHOST1_IP}:${TEST_PORT}>
     
    1718        GnuTLSKeyFile           server/secret.key
    1819
    19         # CGI is allowed only on this virtual host, so a successful
    20         # request to a CGI script shows that the right server has been
    21         # selected.
    22         <Directory ${srcdir}/data>
    23                 Options +ExecCGI
    24         </Directory>
     20        # Use mod_rewrite to set up a path that will work only on this
     21        # virtual host
     22        RewriteEngine   On
     23        RewriteRule     "^/vhost/test\.txt$" "/test.txt" [PT]
    2524</VirtualHost>
Note: See TracChangeset for help on using the changeset viewer.