wp-config.php.template 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. <?php
  2. // ** MySQL settings ** //
  3. /** The name of the database for WordPress */
  4. define('DB_NAME', '##MYSQL_DATABASE');
  5. /** MySQL database username */
  6. define('DB_USER', '##MYSQL_USERNAME');
  7. /** MySQL database password */
  8. define('DB_PASSWORD', '##MYSQL_PASSWORD');
  9. /** MySQL hostname */
  10. define('DB_HOST', '##MYSQL_HOST');
  11. /** Database Charset to use in creating database tables. */
  12. define('DB_CHARSET', 'utf8');
  13. /** The Database Collate type. Don't change this if in doubt. */
  14. define('DB_COLLATE', '');
  15. define('AUTH_KEY', '##AUTH_KEY');
  16. define('SECURE_AUTH_KEY', '##SECURE_AUTH_KEY');
  17. define('LOGGED_IN_KEY', '##LOGGED_IN_KEY');
  18. define('NONCE_KEY', '##NONCE_KEY');
  19. define('AUTH_SALT', '##AUTH_SALT');
  20. define('SECURE_AUTH_SALT', '##SECURE_AUTH_SALT');
  21. define('LOGGED_IN_SALT', '##LOGGED_IN_SALT');
  22. define('NONCE_SALT', '##NONCE_SALT');
  23. $table_prefix = 'wp_';
  24. // prevent user from changing the Settings->General, WordPress and Blog address values.
  25. define('WP_HOME', '##APP_ORIGIN');
  26. define('WP_SITEURL', '##APP_ORIGIN');
  27. /*
  28. http://cmanios.wordpress.com/2014/04/12/nginx-https-reverse-proxy-to-wordpress-with-apache-http-and-different-port/
  29. http://wordpress.org/support/topic/compatibility-with-wordpress-behind-a-reverse-proxy
  30. https://wordpress.org/support/topic/wp_home-and-wp_siteurl
  31. */
  32. // If WordPress is behind reverse proxy which proxies https to http
  33. if (!empty($_SERVER['HTTP_X_FORWARDED_FOR'])) {
  34. $_SERVER['HTTP_HOST'] = $_SERVER['HTTP_X_FORWARDED_HOST'];
  35. if ($_SERVER['HTTP_X_FORWARDED_PROTO'] == 'https')
  36. $_SERVER['HTTPS']='on';
  37. }
  38. /* That's all, stop editing! Happy blogging. */
  39. /** Absolute path to the WordPress directory. */
  40. if ( !defined('ABSPATH') )
  41. define('ABSPATH', dirname(__FILE__) . '/');
  42. /** Sets up WordPress vars and included files. */
  43. require_once(ABSPATH . 'wp-settings.php');