User Tools

Site Tools


como_crear_otro_espacio_web_por_los_vps

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
como_crear_otro_espacio_web_por_los_vps [2018/07/26 21:47]
admin
como_crear_otro_espacio_web_por_los_vps [2018/07/26 21:50] (current)
admin
Line 12: Line 12:
     * Ejecutar el comando: mkdir [ubicación del sitio web] donde [la dirección del sitio web] es la dirección absoluta del sitio web, algo así: /​var/​www/​site2,​ encontes seria: **mkdir /​var/​www/​site2**     * Ejecutar el comando: mkdir [ubicación del sitio web] donde [la dirección del sitio web] es la dirección absoluta del sitio web, algo así: /​var/​www/​site2,​ encontes seria: **mkdir /​var/​www/​site2**
   * Ejecutar el comando: **ftpasswd –hash**, colocar su contraseña por el FTP, copiar el hash es algo asi: $1$Ufw0WwR3$5T9PW6.HAnmVF52ZhROaq.   * Ejecutar el comando: **ftpasswd –hash**, colocar su contraseña por el FTP, copiar el hash es algo asi: $1$Ufw0WwR3$5T9PW6.HAnmVF52ZhROaq.
-  * Editar el archivo /​etc/​proftpd/​user.conf (via SFTP o el comando: nano /​etc/​proftpd/​user.conf) y añadir la línea reemplazando los términos en [] con sus valores:+  * Editar el archivo ​**/​etc/​proftpd/​user.conf** (via SFTP o el comando: nano /​etc/​proftpd/​user.conf) y añadir la línea reemplazando los términos en [] con sus valores:
 **[login]:​[hash generado en el punto anterior]:​33:​33::​[dirección del sitio web]:/​bin/​bash** **[login]:​[hash generado en el punto anterior]:​33:​33::​[dirección del sitio web]:/​bin/​bash**
  
Line 18: Line 18:
   login:​$1$Ufw0WwR3$5T9PW6.HAnmVF52ZhROaq.:​33:​33::/​var/​www/​site2:/​bin/​bash   login:​$1$Ufw0WwR3$5T9PW6.HAnmVF52ZhROaq.:​33:​33::/​var/​www/​site2:/​bin/​bash
  
-  * Editar el archivo /​etc/​proftpd/​proftpd.conf (via SFTP o el comando: nano /​etc/​proftpd/​proftpd.conf),​ agregar ahí el nuevo login:+  * Editar el archivo ​**/​etc/​proftpd/​proftpd.conf** (via SFTP o el comando: nano /​etc/​proftpd/​proftpd.conf),​ agregar ahí el nuevo login:
  
   <Limit LOGIN>   <Limit LOGIN>
Line 28: Line 28:
  
   <Limit LOGIN>   <Limit LOGIN>
-        AllowUser site site2+        AllowUser site login
         DenyAll         DenyAll
   </​Limit>​   </​Limit>​
Line 37: Line 37:
   <Limit ALL>   <Limit ALL>
           AllowUser [login]           AllowUser [login]
 +          DenyAll
 +  </​Limit>​
 +  <Limit SITE_CHMOD>​
 +          DenyAll
 +  </​Limit>​
 +  </​Directory>​
 +
 +    * Exemplo:
 +
 +  <​Directory /​var/​www/​site2>​
 +  <Limit ALL>
 +          AllowUser login
           DenyAll           DenyAll
   </​Limit>​   </​Limit>​
como_crear_otro_espacio_web_por_los_vps.1532641675.txt.gz · Last modified: 2018/07/26 21:47 by admin