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
Last revision Both sides next revision
como_crear_otro_espacio_web_por_los_vps [2018/05/10 23:50]
ferpol
como_crear_otro_espacio_web_por_los_vps [2018/07/26 21:50]
admin
Line 8: Line 8:
  
   * Iniciar sesión vía un cliente SSH (putty para windows)   * Iniciar sesión vía un cliente SSH (putty para windows)
-  * 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 +  ​* Crear la carpeta del sitio web 
-  * Ejecutar el comando: ftpasswd –hash, colocar su contraseña,​ copiar el hash, por ejemplo: $1$Ufw0WwR3$5T9PW6.HAnmVF52ZhROaq. +    * Crear via SFTP la carpeta /​var/​www/​site2 
-  * 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: +    ​* 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** 
-[login]:​[hash generado en el punto anterior]:​33:​33::​[dirección del sitio web]:/​bin/​bash +  * 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/​proftpd.conf (via SFTP o el comando: nano /​etc/​proftpd/​proftpd.conf),​ agregar ahí el nuevo login:+  * 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** 
 + 
 +Exemplo: 
 +  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:
  
   <Limit LOGIN>   <Limit LOGIN>
Line 22: Line 28:
  
   <Limit LOGIN>   <Limit LOGIN>
-        AllowUser site site2+        AllowUser site login
         DenyAll         DenyAll
   </​Limit>​   </​Limit>​
Line 31: 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.txt · Last modified: 2018/07/26 21:50 by admin