manuales:urlshortener
Diferencias
Muestra las diferencias entre dos versiones de la página.
Próxima revisión | Revisión previa | ||
manuales:urlshortener [2020/01/26 19:27] – creado manuel.floresv | manuales:urlshortener [2020/01/26 19:40] (actual) – manuel.floresv | ||
---|---|---|---|
Línea 1: | Línea 1: | ||
- | ====== [[https:// | + | ====== |
+ | Los que se han probado de la [[https:// | ||
+ | |||
+ | -[[https:// | ||
+ | -[[http:// | ||
+ | -[[https:// | ||
+ | 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 '' | ||
+ | |||
+ | ====== URL-shortener | ||
<code bash> | <code bash> | ||
apt install git apache2 mariadb-server php libapache2-mod-php php7.0-mysql | apt install git apache2 mariadb-server php libapache2-mod-php php7.0-mysql | ||
Línea 26: | Línea 36: | ||
- | ====== | + | ====== |
<code bash> | <code bash> | ||
apt install git apache2 mariadb-server php libapache2-mod-php php7.0-mysql | apt install git apache2 mariadb-server php libapache2-mod-php php7.0-mysql | ||
Línea 66: | Línea 76: | ||
Require all granted | Require all granted | ||
</ | </ | ||
+ | | ||
chown -R www-data: | chown -R www-data: | ||
a2enmod | a2enmod | ||
Línea 79: | Línea 90: | ||
</ | </ | ||
- | ====== | + | ====== Kutt ====== |
<code bash> | <code bash> | ||
apt install git apache2 postgresql redis-server exim4 | apt install git apache2 postgresql redis-server exim4 | ||
Línea 122: | 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 / | ||
+ | DocumentRoot / | ||
+ | |||
+ | ProxyPreserveHost On | ||
+ | ProxyPass / http:// | ||
+ | ProxyPassReverse / http:// | ||
+ | |||
+ | systemctl restart apache2 | ||
npm install | npm install | ||
Línea 143: | Línea 172: | ||
* https:// | * https:// | ||
* https:// | * https:// | ||
+ | * https:// |
manuales/urlshortener.1580066860.txt.gz · Última modificación: por manuel.floresv