← Back
Editing: wp-config.php
<?php define( 'WP_CACHE', true ); // Added by WP Rocket //Begin Really Simple SSL 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 SSL cookie settings /** * The base configuration for WordPress * * The wp-config.php creation script uses this file during the installation. * You don't have to use the web site, 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://wordpress.org/documentation/article/editing-wp-config-php/ * * @package WordPress */ // ** Database settings - You can get this info from your web host ** // /** The name of the database for WordPress */ define( 'DB_NAME', 'bitnami_wordpress' ); /** Database username */ define( 'DB_USER', 'bn_wordpress' ); /** Database password */ define( 'DB_PASSWORD', '7d672dcd022546e3636bce58fb663e7108c29e099295dde057e43cbd25db7b8f' ); /** Database hostname */ define( 'DB_HOST', '127.0.0.1:3306' ); /** Database charset to use in creating database tables. */ define( 'DB_CHARSET', 'utf8' ); /** The database collate type. Don't change this if in doubt. */ define( 'DB_COLLATE', '' ); /**#@+ * 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', 'x$R_08 j?Blw7Hg9U+%AN$u-h$HdUpzMcU_$B(Ea?o[wFM|4-2I8;$d0k&L4&;P2' ); define( 'SECURE_AUTH_KEY', '-hotE|N$Jf9L&9KspqP-6rth_D6m|FM=oD<Up<oA==?W&-<V_KVi/_]DF$K~tc>@' ); define( 'LOGGED_IN_KEY', 'oU,TS<j0AYZJEr*$9SkVF{$0e~s@ML:0gjM}xFl!hPxxf*QYS[=o >=}<^n)r=ov' ); define( 'NONCE_KEY', 'TnJ}9)!,iaCggi^U?nIc&LmxH`.lDz)_kY7X<Z<HSHy5P75Jyi#7r%uu0%kRy^ii' ); define( 'AUTH_SALT', '.Cz8qG{<f#?Jc>$9yoPe6*ZtP_._d^kD^SgitEpzX%Gt.DF9UXjOKbSHpv*c,>P?' ); define( 'SECURE_AUTH_SALT', 'e5$D-iVfQ,{9n-wAd R{=(~h*v^1gnEaU}#;(_H 6B<sLu[<O{)Sa025JtCIH/!~' ); define( 'LOGGED_IN_SALT', 'E++92]X4y/UlThG%.(y|&=P5MA/#b|+ O9IUBrulqNpw>m!5p)#Wo AKX9[+!e^=' ); define( 'NONCE_SALT', 'W=jA~x*rimWQIZPTr&H|=2i7SjxqD14l`{I*Qow(qs-b[2CR1SU:bybSvQC&Bum9' ); /**#@-*/ /** * 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! */ $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://wordpress.org/documentation/article/debugging-in-wordpress/ */ define( 'WP_DEBUG', false ); define( 'WP_DEBUG_LOG', true ); define( 'WP_DEBUG_DISPLAY', false ); @ini_set( 'display_errors', 0 ); define( 'WP_MEMORY_LIMIT', '256M' ); /* Add any custom values between this line and the "stop editing" line. */ define( 'FS_METHOD', 'direct' ); /** * The WP_SITEURL and WP_HOME options are configured to access from any hostname or IP address. * If you want to access only from an specific domain, you can modify them. For example: * define('WP_HOME','https://example.com'); * define('WP_SITEURL','https://example.com'); * */ if ( defined( 'WP_CLI' ) ) { $_SERVER['HTTP_HOST'] = '127.0.0.1'; } define('WP_HOME','https://' . $_SERVER['HTTP_HOST'] . '/' ); define('WP_SITEURL','https://' . $_SERVER['HTTP_HOST'] . '/' ); define( 'WP_AUTO_UPDATE_CORE', 'minor' ); /* 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'; /** * Disable pingback.ping xmlrpc method to prevent WordPress from participating in DDoS attacks * More info at: https://docs.bitnami.com/general/apps/wordpress/troubleshooting/xmlrpc-and-pingback/ */ if ( !defined( 'WP_CLI' ) ) { // remove x-pingback HTTP header add_filter("wp_headers", function($headers) { unset($headers["X-Pingback"]); return $headers; }); // disable pingbacks add_filter( "xmlrpc_methods", function( $methods ) { unset( $methods["pingback.ping"] ); return $methods; }); }
Save File
Cancel