Skip to content

Instantly share code, notes, and snippets.

@igalic

igalic/backend.conf

Last active Aug 29, 2015
Embed
What would you like to do?
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>
<?php
header('Location: /redirect.html');
exit;
?>
<?php
header('Location: http://example.com/redirect.html');
exit;
?>
<?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
You can’t perform that action at this time.