https://issues.apache.org/bugzilla/show_bug.cgi?id=48875
Summary: VirtualHostByUser problem
Product: Apache httpd-2
Version: 2.2.15
Platform: PC
OS/Version: Windows NT
Status: NEW
Severity: normal
Priority: P2
Component: mod_ftp
AssignedTo: [email protected]
ReportedBy: [email protected]
When you login as
login: test
pass: test@
...apache selects first VirtualHost but is should select second VirtualHost by
user (test).
## ftpd.conf
<IfModule mod_log_config.c>
LogFormat "%u [%a] %r" command_log_fmt
LogFormat "%{%b %e %H:%M:%S %Y}t %T %a %B %U %M %F %d %W %u %S %Z %Y"
transfer_log_fmt
</IfModule>
Listen 21
FTPOptions NoUTF8Feature VirtualHostByUser
NameVirtualHost *:21
<VirtualHost *:21>
FTP On
ServerName [email protected]
DocumentRoot "c:/ftpdocs/goorol"
<Directory "c:/ftpdocs/goorol">
AuthType basic
AuthUserFile "conf/htpasswd_goorol.users"
AuthName "FTP Authentication"
require valid-user
Allow from all
</Directory>
</VirtualHost>
<VirtualHost *:21>
FTP On
ServerName [email protected]
DocumentRoot "c:/ftpdocs/test"
<Directory "c:/ftpdocs/test">
AuthType basic
AuthUserFile "conf/htpasswd_test.users"
AuthName "FTP Authentication"
require valid-user
Allow from all
</Directory>
</VirtualHost>
##htpasswd_goorol.users
goorol:goorol@
##htpasswd_test.users
test:test@
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]