pub async fn mount_php_with_working_directory(
extensions: &mut Extensions,
connection: Connection,
capture: impl Into<String>,
working_directory: impl Into<PathBuf>,
) -> Result<(), Error>
Available on crate feature
php
only.Expand description
Redirects all requests that start with capture
to connection
, and sets the current
directory for PHP to working_directory
.
A request to /cgi-bin/script.php
with capture
set to /cgi-bin/
and working_directory
set to /opt/cgi-bin/icelk/
executes /opt/cgi-bin/icelk/script.php
.
§Errors
Returns an error if working_directory
isn’t found on the FS.