-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathwp-config-sample.php
103 lines (89 loc) · 3.34 KB
/
wp-config-sample.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
<?php
/*
|--------------------------------------------------------------------------
| Wordpress Development Configuration
|--------------------------------------------------------------------------
*/
if (defined('WP_CLI') && WP_CLI) {
$_SERVER['HTTP_HOST'] = '127.0.0.1';
}
/*
|--------------------------------------------------------------------------
| Wordpress Scaffolding Startup Configuration
|--------------------------------------------------------------------------
*/
require __DIR__ . '/vendor/autoload.php';
$protocol = stripos($_SERVER['SERVER_PROTOCOL'], 'https') === true ? 'https://' : 'http://';
$allowedHosts = array(
'127.0.0.1'
);
if (! in_array($_SERVER['HTTP_HOST'], $allowedHosts)) {
header('HTTP/1.1 404 Not Found');
exit;
}
define('WP_HOMEURL', $protocol . $_SERVER['HTTP_HOST'] . '/');
define('WP_SITEURL', $protocol . $_SERVER['HTTP_HOST'] . '/wp');
define('WP_CONTENT_DIR', dirname(__FILE__) . '/site-content');
define('WP_CONTENT_URL', $protocol . $_SERVER['HTTP_HOST'] . '/site-content');
/*
|--------------------------------------------------------------------------
| Wordpress Database Configuration
|--------------------------------------------------------------------------
*/
define('DB_NAME', '');
define('DB_USER', '');
define('DB_PASSWORD', '');
define('DB_HOST', '');
define('DB_CHARSET', 'utf8');
define('DB_COLLATE', '');
$table_prefix = 'wp_';
/*
|--------------------------------------------------------------------------
| Wordpress Salts and Keys Configuration
|--------------------------------------------------------------------------
*/
define('AUTH_KEY', 'put your unique phrase here');
define('SECURE_AUTH_KEY', 'put your unique phrase here');
define('LOGGED_IN_KEY', 'put your unique phrase here');
define('NONCE_KEY', 'put your unique phrase here');
define('AUTH_SALT', 'put your unique phrase here');
define('SECURE_AUTH_SALT', 'put your unique phrase here');
define('LOGGED_IN_SALT', 'put your unique phrase here');
define('NONCE_SALT', 'put your unique phrase here');
/*
|--------------------------------------------------------------------------
| Wordpress Debug Configuration
|--------------------------------------------------------------------------
*/
define('WP_DEBUG', true);
define('WP_DEBUG_DISPLAY', false);
define('WP_DEBUG_LOG', true);
/*
|--------------------------------------------------------------------------
| Wordpress Pre Boostrap Configuration
|--------------------------------------------------------------------------
|
| Define your constant configuration here before executing
| the wordpress core bootstrapping files.
|
*/
/*
|--------------------------------------------------------------------------
| Bootstrap Wordpress Core
|--------------------------------------------------------------------------
*/
if (! defined('ABSPATH')) {
define('ABSPATH', dirname(__FILE__) . '/wp/');
}
require_once(ABSPATH . 'wp-settings.php');
/*
|--------------------------------------------------------------------------
| Wordpress Post Boostrap Configuration
|--------------------------------------------------------------------------
| Define your constant configuration here after the bootstrap
| process of the wordpress core files.
|
*/
if (defined('WP_DEBUG_LOG') && WP_DEBUG_LOG) {
ini_set('error_log', WP_CONTENT_DIR . '/wp-scaffolding-debug.log');
}