Re: [Proftpd-user] Problem with mod_rewrite / backreferences.
"TJ Saunders" <[email protected]> Mon, 09 Aug 2021 19:06:37 -0700
| Newsgroups | gmane.network.proftpd.user |
|---|---|
| Message-ID | <[email protected]> |
> What is the exact error logged, for these failed SFTP publickey > authentication attempts? Is it because of the REWRITE_HOME rule, > specifically? I ask because my local attempt to reproduce this > behavior, using SFTP and mod_rewrite on USER commands, for both > password and publickey SFTP authentications, succeeds as expected. So > now I'm curious what your logs say is the actual cause of the > authentication failure. Just a reminder that, in order for the following configuration to work: RewriteCondition %m REWRITE_HOME RewriteRule (.*\/)?(.*) /opt/data/test/$2 You _also_ need to use "RewriteHome on" in your configuration; see: http://www.proftpd.org/docs/modules/mod_auth.html#RewriteHome Hope this helps, TJ _______________________________________________ ProFTPD Users List <[email protected]> Unsubscribe problems? http://www.proftpd.org/list-unsub.html