All pastes #144571 Raw Edit

ftp-virtualhost.conf

public text v1 · immutable
#144571 ·published 2006-08-22 16:08 UTC
rendered paste body
<VirtualHost 88.191.26.199>

ServerName "FTP Dedibox Berserk-Crew Admin" # Nom du FTP pour l'administrateur

Port 2121 # Port sur lequel ce serveur sera accessible
PassivePorts 50000 60000

TransferLog /var/log/proftpd/proftpd-admin.log # On logue les actions
ListOptions -A # On affiche les fichiers cachés
MaxLoginAttempts 2 # Pas trop d'erreurs de login, on évite les attaques Brute Force

RequireValidShell on

<Limit LOGIN>
Order Allow,Deny
AllowUser adminftp # On accepte exclusivement adminftp à se connecter.
Deny from all # les autres restent à la porte
</Limit>

DefaultRoot /var/www # dossier contenant votre site web, ici (/var/www/)

<Directory /> # On limite les commandes que peut réaliser l'utilisateur dans le dossier /
HideNoAccess on
<Limit CWD DIRS PASV PORTS>
AllowAll
</Limit>
<Limit ALL>
DenyAll
</Limit>
</Directory>

<Directory /var/www/*>
<Limit ALL>
AllowAll
</Limit>
AllowRetrieveRestart on
AllowStoreRestart on
AllowOverwrite on
</Directory>

<Directory ~>
<Limit ALL>
AllowAll
</Limit>
</Directory>
</VirtualHost>