wp-config.php.template 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  1. <?php
  2. /**
  3. * The base configurations of the WordPress.
  4. *
  5. * This file has the following configurations: MySQL settings, Table Prefix,
  6. * Secret Keys, WordPress Language, and ABSPATH. You can find more information
  7. * by visiting {@link http://codex.wordpress.org/Editing_wp-config.php Editing
  8. * wp-config.php} Codex page. You can get the MySQL settings from your web host.
  9. *
  10. * This file is used by the wp-config.php creation script during the
  11. * installation. You don't have to use the web site, you can just copy this file
  12. * to "wp-config.php" and fill in the values.
  13. *
  14. * @package WordPress
  15. */
  16. // ** MySQL settings - You can get this info from your web host ** //
  17. /** The name of the database for WordPress */
  18. define('DB_NAME', '');
  19. /** MySQL database username */
  20. define('DB_USER', '');
  21. /** MySQL database password */
  22. define('DB_PASSWORD', '');
  23. /** MySQL hostname */
  24. define('DB_HOST', '');
  25. /** Database Charset to use in creating database tables. */
  26. define('DB_CHARSET', 'utf8');
  27. /** The Database Collate type. Don't change this if in doubt. */
  28. define('DB_COLLATE', '');
  29. /**#@+
  30. * Authentication Unique Keys and Salts.
  31. *
  32. * Change these to different unique phrases!
  33. * You can generate these using the {@link https://api.wordpress.org/secret-key/1.1/salt/ WordPress.org secret-key service}
  34. * 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.
  35. *
  36. * @since 2.6.0
  37. */
  38. define('AUTH_KEY', 'emE$cbj0XG=$-sNvH65GlVUq!1jhA(k-:-GL^4lh*_=+-/vQqBXoe:x616_?.]q~');
  39. define('SECURE_AUTH_KEY', '_?e=o.me4ki ~8n%+-GW{hg>XMr@Kq?C|5v%6R|#>oFz-EIv,wR70%3w*@j*f+!Q');
  40. define('LOGGED_IN_KEY', '4%PU`*?EP@>m_DoEb},%|)o~y>r7Etj-|t+[[D%eGx5z<v[`hgUxP/lMk{;Qjli(');
  41. define('NONCE_KEY', '6cWaRQ0{X{2-8<?2,u[z#Z+$<FFmb}VFT.E]8~| C,PI{o~wyx:p JVY-K&q*2w_');
  42. define('AUTH_SALT', 'V6D|O!PDne5_-3PtOl]jBB&cN-&i=s9Z[fIKq]$duN|)DV6Jb/Ew!Xw/0.Mj-,#w');
  43. define('SECURE_AUTH_SALT', 'L|~ibPPAPu<$?RV!8gffS$?MB{(h8L-y8,:_m]4{c.,F=/;u3uzTe(X*IX>,wrL*');
  44. define('LOGGED_IN_SALT', 'i-P@Zc ,xG+kwH&D[R-n@|f]>5+{U`i/5=0|R6(Ycx,~:ckX|HO8@?XAE-`t@AkV');
  45. define('NONCE_SALT', '|;x#`|:5heUdp.j1%p(Ub-%BPOepY+)CoRy|2WOl/vn0R@y!En=/x#c7sTg[y]{`');
  46. /**#@-*/
  47. /**
  48. * WordPress Database Table prefix.
  49. *
  50. * You can have multiple installations in one database if you give each a unique
  51. * prefix. Only numbers, letters, and underscores please!
  52. */
  53. $table_prefix = 'wp_';
  54. /**
  55. * WordPress Localized Language, defaults to English.
  56. *
  57. * Change this to localize WordPress. A corresponding MO file for the chosen
  58. * language must be installed to wp-content/languages. For example, install
  59. * de_DE.mo to wp-content/languages and set WPLANG to 'de_DE' to enable German
  60. * language support.
  61. */
  62. define('WPLANG', '');
  63. /**
  64. * For developers: WordPress debugging mode.
  65. *
  66. * Change this to true to enable the display of notices during development.
  67. * It is strongly recommended that plugin and theme developers use WP_DEBUG
  68. * in their development environments.
  69. */
  70. define('WP_DEBUG', false);
  71. /* That's all, stop editing! Happy blogging. */
  72. /** Absolute path to the WordPress directory. */
  73. if ( !defined('ABSPATH') )
  74. define('ABSPATH', dirname(__FILE__) . '/');
  75. /** Sets up WordPress vars and included files. */
  76. require_once(ABSPATH . 'wp-settings.php');
  77. define('WP_HOME', '');
  78. define('WP_SITEURL', '');
  79. /*
  80. http://cmanios.wordpress.com/2014/04/12/nginx-https-reverse-proxy-to-wordpress-with-apache-http-and-different-port/
  81. http://wordpress.org/support/topic/compatibility-with-wordpress-behind-a-reverse-proxy
  82. https://wordpress.org/support/topic/wp_home-and-wp_siteurl
  83. */
  84. // If WordPress is behind reverse proxy which proxies https to http
  85. if (!empty( $_SERVER['HTTP_X_FORWARDED_FOR'])) {
  86. $_SERVER['HTTP_HOST'] = $_SERVER['HTTP_X_FORWARDED_HOST'];
  87. if ($_SERVER['HTTP_X_FORWARDED_PROTO'] == 'https')
  88. $_SERVER['HTTPS']='on';
  89. }