|
379 | 379 | 'request_headers' => ['append MirrorID "mirror 12"'], |
380 | 380 | 'rewrites' => [ |
381 | 381 | { |
382 | | - 'rewrite_rule' => ['^index\.html$ rewrites.html'], |
| 382 | + 'rewrite_rule' => ['^index.html$ rewrites.html'], |
383 | 383 | }, |
384 | 384 | ], |
385 | 385 | 'filters' => [ |
|
392 | 392 | 'FilterProtocol COMPRESS DEFLATE change=yes;byteranges=no', |
393 | 393 | ], |
394 | 394 | 'rewrite_base' => '/', |
395 | | - 'rewrite_rule' => '^index\.html$ welcome.html', |
| 395 | + 'rewrite_rule' => '^index.html$ welcome.html', |
396 | 396 | 'rewrite_cond' => ['%{HTTP_USER_AGENT} ^MSIE'], |
397 | 397 | 'rewrite_inherit' => true, |
398 | 398 | 'setenv' => ['FOO=/bin/true'], |
|
737 | 737 | .with_content(%r{^\s+RewriteEngine On$}) |
738 | 738 | .with_content(%r{^\s+RewriteOptions Inherit$}) |
739 | 739 | .with_content(%r{^\s+RewriteBase /}) |
740 | | - .with_content(%r{^\s+RewriteRule ^index\.html$ welcome.html$}) |
| 740 | + .with_content(%r{^\s+RewriteRule \^index\.html\$ rewrites.html$}) |
741 | 741 | } |
742 | 742 | it { is_expected.to contain_concat__fragment('rspec.example.com-scriptalias') } |
743 | 743 | it { is_expected.to contain_concat__fragment('rspec.example.com-serveralias') } |
|
1817 | 1817 | is_expected.not_to contain_concat__fragment('rspec.example.com-rewrite') |
1818 | 1818 | .with_content(%r{^\s+RewriteOptions Inherit$}) |
1819 | 1819 | .with_content(%r{^\s+RewriteEngine On$}) |
1820 | | - .with_content(%r{^\s+RewriteRule ^index\.html$ welcome.html$}) |
| 1820 | + .with_content(%r{^\s+RewriteRule \^index\.html\$ welcome.html$}) |
1821 | 1821 | } |
1822 | 1822 | end |
1823 | 1823 | context 'empty rewrites_without_rewrite_inherit' do |
|
1831 | 1831 | it { |
1832 | 1832 | is_expected.not_to contain_concat__fragment('rspec.example.com-rewrite') |
1833 | 1833 | .with_content(%r{^\s+RewriteEngine On$}) |
1834 | | - .with_content(%r{^\s+RewriteRule ^index\.html$ welcome.html$}) |
| 1834 | + .with_content(%r{^\s+RewriteRule \^index\.html\$ welcome.html$}) |
1835 | 1835 | .without(content: %r{^\s+RewriteOptions Inherit$}) |
1836 | 1836 | } |
1837 | 1837 | end |
|
0 commit comments