Herramientas de usuario

Herramientas del sitio


manuales:urlshortener

Diferencias

Muestra las diferencias entre dos versiones de la página.

Enlace a la vista de comparación

Ambos lados, revisión anteriorRevisión previa
Próxima revisión
Revisión previa
manuales:urlshortener [2020/01/26 19:32] manuel.floresvmanuales:urlshortener [2020/01/26 19:40] (actual) manuel.floresv
Línea 1: Línea 1:
 ====== Sistemas Acortar URLs ====== ====== Sistemas Acortar URLs ======
 Los que se han probado de la [[https://github.com/awesome-selfhosted/awesome-selfhosted#url-shorteners|lista encontrada]] son: Los que se han probado de la [[https://github.com/awesome-selfhosted/awesome-selfhosted#url-shorteners|lista encontrada]] son:
- 
- 
  
   -[[https://github.com/sapioit/URL-shortener|URL-shortener]]    -[[https://github.com/sapioit/URL-shortener|URL-shortener]] 
   -[[http://yourls.org/|YOURLS]]   -[[http://yourls.org/|YOURLS]]
   -[[https://github.com/thedevs-network/kutt|Kutt]]   -[[https://github.com/thedevs-network/kutt|Kutt]]
 +Cabe destacar que para que el acortador de URL fucione, necesita:
 +  - Tener un servidor GNU/Linux con una IP publica
 +  - Tener un dominio asociado con la ip publica, que para efectos del ejemplo se ha dejado como ''localhost'' o ''domain''.
  
 ====== URL-shortener ====== ====== URL-shortener ======
Línea 75: Línea 76:
         Require all granted         Require all granted
     </Directory>     </Directory>
 +    
 chown -R www-data:www-data /var/www/     chown -R www-data:www-data /var/www/    
 a2enmod  rewrite a2enmod  rewrite
Línea 131: Línea 133:
   CONTACT_EMAIL=root@localhost   CONTACT_EMAIL=root@localhost
   ...   ...
 +
 +a2enmod proxy
 +a2enmod proxy_http
 +a2enmod proxy_ajp
 +a2enmod rewrite
 +a2enmod deflate
 +a2enmod headers
 +a2enmod proxy_balancer
 +a2enmod proxy_connect
 +a2enmod proxy_html
 +nano /etc/apache2/sites-enabled/000-default.conf
 +        DocumentRoot /var/www/html/
 +
 +        ProxyPreserveHost On
 + ProxyPass / http://0.0.0.0:3000/
 + ProxyPassReverse / http://0.0.0.0:3000/
 +
 +systemctl restart apache2
  
 npm install npm install
manuales/urlshortener.1580067124.txt.gz · Última modificación: por manuel.floresv