Advertisement
Sergio_Istea

correcion

Nov 7th, 2023
45
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.75 KB | None | 0 0
  1. SSHFS SERVER
  2.  
  3. Crear particion
  4.  
  5. Formatear particion
  6.  
  7. montar directorio '/mnt/webserver'
  8.  
  9. Crear usuario 'sshfsuser'
  10.  
  11. useradd -s /bin/bash -d /mnt/webserver -m sshfsuser
  12.  
  13. configuar el montaje automatico.
  14.  
  15.  
  16. Servidor web.
  17.  
  18. Punto de montaje entre el directorio remoto y el directorio que tendra la pagina, por ejemplo 'sshfsserver /mnt/webserver > Servidor web /var/www/pagina'.
  19.  
  20. Configurar el montaje automatico.
  21.  
  22. Configurar el virtual host de apache teniendo encuenta el DocumentRoot y el ServerName.
  23.  
  24.  
  25. Balanceador de cargas
  26.  
  27. upstream backend {
  28.  
  29. servidores;
  30. }
  31.  
  32. server {
  33. listen 80;
  34.  
  35. server_name _;
  36.  
  37. location / {
  38. proxy_set_header Host $host;
  39. proxy_set_header X-Real-IP $remote_addr;
  40. proxy_pass http://backend;
  41. }
  42.  
  43. }
  44.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement