Entradas

Mostrando entradas de diciembre, 2024

.htpasswd

sudo htpasswd -c /etc/apache2/.htpasswd usuario1 New password: clave1 Re-type new password:  clave1 sudo htpasswd /etc/apache2/.htpasswd usuario2 New password:  clave2 Re-type new password:  clave2 sudo mkdir -p /var/www/html/directorio_ protegido111 sudo chown -R $USER:$USER /var/www/html/directorio_ protegido111 sudo gedit /var/www/html/directorio_ protegido111/index.html <html>   <head>     <title>Bienvenido al directorio_protegido111!</ title>   </head>   <body>     <h1>directorio_protegido está trabajando111!</h1>   </body> </html> sudo chmod -R 755 /var/www/html/ sudo nano /etc/apache2/apache2.conf Cambiar el valor de la directiva  AllowOverride  None  a  All : . . . <Directory /var/www/> Options Indexes FollowSymLinks AllowOverride All Require all granted </Directory> . . . sudo nano /var/www/html/.htaccess AuthType Basic ...

HTTP Webmin

Imagen
   virtual111a.local virtual111b.local

HTTP SERVER

Imagen
  Creamos 2 usuarios en el sistema Lunes y otro Martes con contraseña Alumno32I. los creamos entrando a lusrmgr.msc. Creamos los sitios. Configuramos el archivo host: 192.168.32.111        lunes.local 192.168.32.111        martes.local

HTTP Ubuntu

  Crear el directorio para alojar el virtual host: sudo mkdir -p /var/www/html/sol111virtual.lo cal/public_html sudo mkdir -p /var/www/html/luna111virtual.l ocal/public_html Propietario el usuario root: sudo ls -al /var/www/html/*.local /var/www/html/luna111virtual. local: total 12 drwxr-xr-x 3 root root 4096 nov 25 00:51 . drwxr-xr-x 5 root root 4096 nov 25 00:51 .. drwxr-xr-x 2 root root 4096 nov 25 00:51 public_html /var/www/html/sol111virtual. local: total 12 drwxr-xr-x 3 root root 4096 nov 25 00:50 . drwxr-xr-x 5 root root 4096 nov 25 00:51 .. drwxr-xr-x 2 root root 4096 nov 25 00:50 public_html Cambio de propietario de los directorios public_html: sudo chown -R $USER:$USER /var/www/html/sol111virtual.lo cal/public_html sudo chown -R $USER:$USER /var/www/html/luna111virtual.l ocal/public_html sudo ls -al /var/www/html/*.local/var/www/ html/luna111virtual.local: total 12 drwxr-xr-x 3 root   root   4096 nov 25 00:51 . drwxr-xr-x 5 root   root ...