Last active
January 23, 2018 10:27
-
-
Save szabacsik/72b348e56bacc2abe1c574ffe169edc1 to your computer and use it in GitHub Desktop.
Apache HTTP Server Configuration File for Docker Containerized Applications
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
#Apache HTTP Server Configuration File for Docker Containerized Applications | |
LogLevel debug | |
ErrorLog /proc/self/fd/2 | |
CustomLog /proc/self/fd/1 combined | |
<VirtualHost *:80> | |
ServerAdmin webmaster@localhost | |
DocumentRoot /attached/artifact/public | |
LogLevel debug | |
ErrorLog /proc/self/fd/2 | |
CustomLog /proc/self/fd/1 combined | |
#LogLevel warn mod_rewrite.c:trace8 | |
</VirtualHost> | |
<Directory /attached/artifact/public> | |
DirectoryIndex index.php | |
Options -Indexes +MultiViews +FollowSymLinks | |
AllowOverride None | |
<IfVersion < 2.3 > | |
Order allow,deny | |
Allow from all | |
</IfVersion> | |
<IfVersion >= 2.3> | |
Require all granted | |
</IfVersion> | |
RewriteEngine On | |
RewriteBase / | |
RewriteCond %{REQUEST_FILENAME} !-f | |
RewriteCond %{REQUEST_FILENAME} !-d | |
RewriteCond %{REQUEST_FILENAME} !-l | |
RewriteRule ^(.*)$ index.php?$1 [L] | |
</Directory> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment