tudoutou
Forum Replies Created
Viewing 5 replies - 1 through 5 (of 5 total)
-
Forum: Plugins
In reply to: [Swift Performance Lite] Swift stops updraftplus backupHi,
There is no record in error.log, 200 OK in access.log.Thanks! dvinden
I modified the function to:
/** * Get full file path to the server's config file for the site. * * Customize the returned value with the itsec_filter_server_config_file_path filter. Filter the value to a blank * string ("") in order to disable modifications to this file. * * @since 1.15.0 * * @return string Full path to the server config file or a blank string if modifications for the file are disabled. */ public static function get_server_config_file_path() { $file = self::get_default_server_config_file_name(); if ( empty( $file ) ) { return ''; } global $itsec_globals; if ( empty( $itsec_globals['settings']['nginx_file'] ) ) { $home_path = get_home_path(); $file_path = $home_path . $file; $file_path = apply_filters( 'itsec_filter_server_config_file_path', $file_path, $file ); } else { $file_path = $itsec_globals['settings']['nginx_file']; } return $file_path; }
It’s working now.
Aha, the code above is source code, I thought it is something I need to put into functions.php
Does that mean “NGINX Conf File” is useless?
I’m asking because the description of this field is “The path on your server where backup files should be stored.
This path must be writable by your website. For added security, it is recommended you do not include it in your website root folder.”It looks like iThemes Security want to set two fields:
- NGINX Conf File
- Path to Backup Files
, but the function is still under development.
@dvinden
Thanks for the help!
I might need to build an staging site to test the code.
Viewing 5 replies - 1 through 5 (of 5 total)