-
Notifications
You must be signed in to change notification settings - Fork 154
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
43 additions
and
16 deletions.
There are no files selected for viewing
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -264,10 +264,6 @@ ServerAdmin [email protected] | |
# | ||
DocumentRoot "/app" | ||
|
||
# This is to forward all PHP to php-fpm. | ||
<FilesMatch \.php$> | ||
SetHandler "proxy:fcgi://app:9000" | ||
</FilesMatch> | ||
<Directory "/app"> | ||
# | ||
# Possible values for the Options directive are "None", "All", | ||
|
@@ -296,6 +292,18 @@ DocumentRoot "/app" | |
Require all granted | ||
|
||
DirectoryIndex index.php | ||
|
||
# If the php file doesn't exist, disable the proxy handler. | ||
# This will allow .htaccess rewrite rules to work and | ||
# the client will see the default 404 page of Apache | ||
RewriteCond %{REQUEST_FILENAME} \.php$ | ||
RewriteCond %{DOCUMENT_ROOT}/%{REQUEST_URI} !-f | ||
RewriteRule (.*) - [H=text/html] | ||
|
||
# This is to forward all PHP to php-fpm. | ||
<FilesMatch \.php$> | ||
SetHandler "proxy:fcgi://app:9000" | ||
</FilesMatch> | ||
</Directory> | ||
|
||
# | ||
|
Empty file.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -102,12 +102,10 @@ function getenv_docker($env, $default) { | |
* | ||
* @link https://wordpress.org/support/article/debugging-in-wordpress/ | ||
*/ | ||
define( 'WP_PHP_BINARY', 'php' ); | ||
define( 'WP_TESTS_EMAIL', '[email protected]' ); | ||
define( 'WP_TESTS_TITLE', 'Test Blog' ); | ||
define( 'WP_SITEURL', 'http://localhost:8888/' ); | ||
define( 'WP_HOME', 'http://localhost:8888/' ); | ||
define( 'WP_DEBUG', true ); | ||
defined( 'WP_SITEURL' ) || define( 'WP_SITEURL', rtrim( WP_HOME, '/' ) . '/wp' ); | ||
|
||
// If we're behind a proxy server and using HTTPS, we need to alert WordPress of that fact | ||
// see also http://codex.wordpress.org/Administration_Over_SSL#Using_a_Reverse_Proxy | ||
|
@@ -123,18 +121,19 @@ function getenv_docker($env, $default) { | |
define( 'WP_LOCAL_DEV', true ); | ||
define( 'PHP_INI_MEMORY_LIMIT', '512M' ); | ||
define( 'WP_MEMORY_LIMIT', '512M' ); | ||
|
||
define( 'WP_DEBUG', true ); | ||
define( 'WP_DEBUG_LOG', true ); | ||
define( 'WP_DEBUG_DISPLAY', false ); | ||
define( 'SCRIPT_DEBUG', true ); | ||
|
||
define( 'SMTP_HOST', 'mailhog' ); | ||
define( 'SMTP_PORT', 1025 ); | ||
define( 'WP_TESTS_DOMAIN', 'http://localhost:8888/' ); | ||
|
||
/* That's all, stop editing! Happy publishing. */ | ||
|
||
/** Absolute path to the WordPress directory. */ | ||
if ( ! defined( 'ABSPATH' ) ) { | ||
define( 'ABSPATH', __DIR__ . '/' ); | ||
} | ||
defined( 'ABSPATH' ) || define( 'ABSPATH', __DIR__ . '/wp/' ); | ||
|
||
/** Sets up WordPress vars and included files. */ | ||
require_once ABSPATH . 'wp-settings.php'; |
File renamed without changes.