File: /var/www/html/wp-config .php
<?php
define('WP_DEBUG', true);
define('WP_DEBUG_LOG', true);
define('WP_DEBUG_DISPLAY', false);
@ini_set('display_errors', 0);
//Begin Really Simple Security session cookie settings
@ini_set('session.cookie_httponly', true);
@ini_set('session.cookie_secure', true);
@ini_set('session.use_only_cookies', true);
//END Really Simple Security cookie settings
//Begin Really Simple Security key
define('ADMIN_COOKIE_PATH', '/');
define('COOKIEPATH', '/');
define('SITECOOKIEPATH', '/');
define('COOKIE_DOMAIN', 'www.qicheteach.cn'); // 不带点!专为 www 域名
// 强制后台走 HTTPS(防止混合内容)
if (isset($_SERVER['HTTP_X_FORWARDED_PROTO']) && $_SERVER['HTTP_X_FORWARDED_PROTO'] === 'https') {
$_SERVER['HTTPS'] = 'on';
}
define('FORCE_SSL_ADMIN', true);
define('WP_CACHE', true);
define( 'WPCACHEHOME', '/var/www/html/wp-content/plugins/wp-super-cache/' );
define('RSSSL_KEY', 'y6CqwHS5CvDnPUiqX6eErkgj1q3FaKdOrFYPWKG9NjWSHjZtYk26p40FWnLOkWCE');
//END Really Simple Security key
/**
* The base configuration for WordPress
*
* The wp-config.php creation script uses this file during the installation.
* You don't have to use the website, you can copy this file to "wp-config.php"
* and fill in the values.
*
* This file contains the following configurations:
*
* * Database settings
* * Secret keys
* * Database table prefix
* * ABSPATH
*
* @link https://developer.wordpress.org/advanced-administration/wordpress/wp-config/
*
* @package WordPress
*/
// ** Database settings - You can get this info from your web host ** //
/** The name of the database for WordPress */
define( 'DB_NAME', 'wordpress' );
/** Database username */
define( 'DB_USER', 'wpuser' );
/** Database password */
define( 'DB_PASSWORD', 'SGLYGren22' );
/** Database hostname */
define( 'DB_HOST', 'localhost' );
/** Database charset to use in creating database tables. */
define( 'DB_CHARSET', 'utf8mb4' );
/** The database collate type. Don't change this if in doubt. */
define( 'DB_COLLATE', '' );
/** 数字证书部署后添加 */
define('FORCE_SSL_ADMIN', true);
/**#@+
* Authentication unique keys and salts.
*
* Change these to different unique phrases! You can generate these using
* the {@link https://api.wordpress.org/secret-key/1.1/salt/ WordPress.org secret-key service}.
*
* You can change these at any point in time to invalidate all existing cookies.
* This will force all users to have to log in again.
*
* @since 2.6.0
*/
define( 'AUTH_KEY', '1/@UL/l1XpS;@n?nLUvUz:%{^k+)xiC|.|IoSy|.d{uK>O!i31`*~UmIsp+rHWjg' );
define( 'SECURE_AUTH_KEY', '?[=u5%mc@b}/m`NAIB <^F_F:VSb@l8%j~:tr%X{S,pE5B/Y+C=%F<uU]P*%)v0:' );
define( 'LOGGED_IN_KEY', '7ZNuvJvB^h(+yk}M{yn#ci4LT+]gW+YZoTxApPS?TUQ6x(kDUMeYnhdR7Q|Q[CPi' );
define( 'NONCE_KEY', '(BOR.2RmK%,.Xozx3E;^h0Z@KLA$uwAOt^5`kMUqR$ZA~fW|9)[0.7_{W-y?zcI1' );
define( 'AUTH_SALT', 'zh|6zj^jO<X&S|}ex=cWh]PM!1$2vs %U+)L: V|wk$Qy>#U8q$Y_Q==IwaHb{)K' );
define( 'SECURE_AUTH_SALT', 'TYZN2TB-6,B`ehY@(R<v(.1}%R$s<@l9$c;E3,%M?nf#Qof^KhM6,%zCK={Ip05V' );
define( 'LOGGED_IN_SALT', 'W]Ic?J.R_1|@t<OZa x7s[6h+{eg99pvmu1EG(ipc@hd#sYrK30x8E0RY(}Mh1N^' );
define( 'NONCE_SALT', 'QB4C;(1wjpR F](0])i9MOiV4|JtZ~gmxl8.J$rjdn(k71NA_ Mc];qp+HEGo=cm' );
/**#@-*/
/**
* WordPress database table prefix.
*
* You can have multiple installations in one database if you give each
* a unique prefix. Only numbers, letters, and underscores please!
*
* At the installation time, database tables are created with the specified prefix.
* Changing this value after WordPress is installed will make your site think
* it has not been installed.
*
* @link https://developer.wordpress.org/advanced-administration/wordpress/wp-config/#table-prefix
*/
$table_prefix = 'wp_';
/**
* For developers: WordPress debugging mode.
*
* Change this to true to enable the display of notices during development.
* It is strongly recommended that plugin and theme developers use WP_DEBUG
* in their development environments.
*
* For information on other constants that can be used for debugging,
* visit the documentation.
*
* @link https://developer.wordpress.org/advanced-administration/debug/debug-wordpress/
*/
define( 'WP_DEBUG', false );
/* Add any custom values between this line and the "stop editing" line. */
define('WP_HOME','https://www.qicheteach.cn');
define('WP_SITEURL','https://www.qicheteach.cn');
define('FORCE_SSL_ADMIN', true);
if (isset($_SERVER['HTTP_X_FORWARDED_PROTO']) && $_SERVER['HTTP_X_FORWARDED_PROTO'] === 'https') {
$_SERVER['HTTPS'] = 'on';
}
/* That's all, stop editing! Happy publishing. */
/** Absolute path to the WordPress directory. */
if ( ! defined( 'ABSPATH' ) ) {
define( 'ABSPATH', __DIR__ . '/' );
}
/** Sets up WordPress vars and included files. */
require_once ABSPATH . 'wp-settings.php';