Forum Moderators: phranque
- all files in /var/www/domain such as index.html
- a var directory (leading itself into www/domain, essentially drilling down to the bottom folder results in a /var/www/domain/var/www/domain path on the ftp server!)
- a file called simply "-c"
If I try to create folders or upload or delete from the root directory (path /var/www/domain) permission is denied.
If I drill down into /var/www/domain/var/www/domain I DO indeed have permission to add, edit, delete at will - but, again there is strange things going on. Example: I create the folder "tester" in /var/www/domain/var/www/domain ... my webserver is set up to serve pages from the 'domain' folder, so if I go to www.mydomain.com/tester I should see my folder, right? Well, I don't - the "tester" directory is not found (404 error).
This is most strange, and the most frustrating this is that I can't see a thing wrong with my FTP config setup.
Does anyone have any clue as to what on earth is happening on my machine? It seems to have a mind of its own! :)
ServerType standalone
DefaultServer on
Umask 022
ServerName "my.external.ip.address"
ServerIdent on "The FTP Server"
Bind "my.external.ip.address"
ServerAdmin webmaster@adomain.com
IdentLookups off
UseReverseDNS off
Port 1980
PassivePorts 49142 65535
MasqueradeAddress ftp.adomain.com
TimesGMT off
MaxInstances 30
MaxLoginAttempts 3
TimeoutLogin 300
TimeoutNoTransfer 120
TimeoutIdle 120
User userftp
Group userftp
DirFakeUser off nobody
DirFakeGroup off nobody
DefaultTransferMode ascii
AllowForeignAddress on
AllowRetrieveRestart on
AllowStoreRestart on
DeleteAbortedStores off
TransferRate RETR 30
TransferRate STOR 40
TransferRate STOU 40
TransferRate APPE 40
SystemLog /var/log/secure
<IfModule mod_tls.c>
TLSEngine off
TLSRequired off
TLSVerifyClient off
TLSProtocol TLSv1
TLSLog /var/log/proftpd_tls.log
TLSRSACertificateFile /etc/gproftpd/gproftpd.pem
</IfModule>
<VirtualHost my.internal.ip.address>
DefaultRoot ~
ServerName "Virtual Server"
<Limit LOGIN>
AllowUser au
DenyALL
</Limit>
<Anonymous /var/www/domain>
User au
Group au
AnonRequirePassword on
AllowOverwrite on
<Limit LOGIN>
Allow from all
Deny from all
</Limit>
<Limit ROOT_DIR_ALLOW RETR LIST NLST MDTM SIZE STAT CWD XCWD PWD XPWD CDUP XCUP>
AllowAll
</Limit>
<Limit ROOT_DIR_DENY DELE APPE STOR STOU SITE_CHMOD SITE_CHGRP RNFR RNTO MKD XMKD RMD XRMD>
AllowAll
</Limit>
</Anonymous>
</VirtualHost>