Last active
August 29, 2015 13:56
-
-
Save igalic/8960145 to your computer and use it in GitHub Desktop.
Backend to reproduce https://github.com/puppetlabs/puppetlabs-apache/pull/602
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
LoadModule mpm_prefork_module /usr/lib/apache2/modules/mod_mpm_prefork.so | |
LoadModule authz_core_module /usr/lib/apache2/modules/mod_authz_core.so | |
LoadModule autoindex_module /usr/lib/apache2/modules/mod_autoindex.so | |
LoadModule mime_magic_module /usr/lib/apache2/modules/mod_mime_magic.so | |
LoadModule alias_module /usr/lib/apache2/modules/mod_alias.so | |
LoadModule dir_module /usr/lib/apache2/modules/mod_dir.so | |
LoadModule php5_module /usr/lib/apache2/modules/libphp5.so | |
MimeMagicFile /etc/magic | |
ServerName backend.local | |
<FilesMatch ".+\.ph(p[345]?|t|tml)$"> | |
SetHandler application/x-httpd-php | |
</FilesMatch> | |
Listen 9090 | |
ErrorLog /home/igalic/src/puppet/proxy-repro/backend/error_log | |
PidFile /home/igalic/src/puppet/proxy-repro/backend/pid | |
DocumentRoot /home/igalic/src/puppet/proxy-repro/backend/ | |
<Directory /> | |
Require all denied | |
AllowOverride None | |
</Directory> | |
<Directory "/home/igalic/src/puppet/proxy-repro/backend/"> | |
Require all granted | |
DirectoryIndex index.php | |
</Directory> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
header('Location: /redirect.html'); | |
exit; | |
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
header('Location: http://example.com/redirect.html'); | |
exit; | |
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
header('Location: http://backend.local:9090/redirect.html'); | |
exit; | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment