Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> mod_ftp - wybiera zly virtualny host
kufalo
post 9.03.2010, 12:55:10
Post #1





Grupa: Zarejestrowani
Postów: 251
Pomógł: 2
Dołączył: 24.08.2005

Ostrzeżenie: (0%)
-----


Witam, mam pewien problem z wirtualnymi hostami ftp.

Gdy loguje sie na
login: test
password: test@
...Apache wybiera pierwszy z gory wirtualny host, dlaczego?

## ftpd.conf
Kod
<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 lunter@127.0.0.1
DocumentRoot "c:/ftpdocs/lunter"
<Directory "c:/ftpdocs/lunter">
     AuthType basic
     AuthUserFile "conf/htpasswd_lunter.users"
     AuthName "FTP Authentication"
     require valid-user
     Allow from all
</Directory>
</VirtualHost>
<VirtualHost *:21>
FTP On
ServerName test@127.0.0.1
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_lunter.users
Kod
lunter:lunter@


##htpasswd_test.users:
Kod
test:test@

Go to the top of the page
+Quote Post

Posty w temacie
- kufalo   mod_ftp - wybiera zly virtualny host   9.03.2010, 12:55:10


Reply to this topicStart new topic
1 Użytkowników czyta ten temat (1 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Wersja Lo-Fi Aktualny czas: 19.07.2025 - 18:42