Last active
October 5, 2015 07:38
-
-
Save matthewjackowski/b772ab278efb0e6f30ad to your computer and use it in GitHub Desktop.
Apache conf for TravisCI
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
<VirtualHost *:80> | |
ServerName wptest.localhost | |
DocumentRoot %TRAVIS_BUILD_DIR% | |
<Directory "%TRAVIS_BUILD_DIR%"> | |
Options FollowSymLinks MultiViews ExecCGI | |
AllowOverride All | |
Order deny,allow | |
Allow from all | |
RewriteEngine On | |
RewriteBase / | |
RewriteRule ^index\.php$ - [L] | |
RewriteCond %{REQUEST_URI} ^/usr/lib/cgi-bin/php5-fcgi(.*) | |
RewriteRule . - [L] | |
RewriteCond %{REQUEST_FILENAME} !-f | |
RewriteCond %{REQUEST_FILENAME} !-d | |
RewriteRule . /index.php [L] | |
</Directory> | |
<IfModule mod_fastcgi.c> | |
AddHandler php5-fcgi .php | |
Action php5-fcgi /php5-fcgi | |
Alias /php5-fcgi /usr/lib/cgi-bin/php5-fcgi | |
FastCgiExternalServer /usr/lib/cgi-bin/php5-fcgi -host 127.0.0.1:9000 -pass-header Authorization | |
</IfModule> | |
</VirtualHost> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment