Para solicitar un certificado, necesitamos crear la peticion y al mismo tiempo la llave que tendra nuestro certificado.
Creamos unas variables para el dominio
DOMAIN=midominio.comI hereby claim:
To claim this, I am signing this object:
| # Para cambiar URL en wordpress, con agregar dos variables en wp-config.php es suficiente | |
| define('WP_HOME','http://example.com'); | |
| define('WP_SITEURL','http://example.com'); | |
| # y en base de datos hacemos lo siguiente: | |
| UPDATE wp_options SET option_value = replace(option_value, 'http://old-domain.com', 'http://new-domain.com') WHERE option_name = 'home' OR option_name = 'siteurl'; | |
| UPDATE wp_posts SET guid = replace(guid, 'http://old-domain.com', 'http://new-domain.com'); |
| #!bash | |
| #!/bin/bash | |
| # | |
| # Script to backup all mysql databases as separate files | |
| # | |
| # $BACKUP_PATH/<date>/<db_name>-<date>.gz | |
| # set env variables for this script | |
| DATESTAMP=$(date +%Y-%m-%d) | |
| USER="backup" |
| # iptables config file | |
| *nat | |
| :PREROUTING ACCEPT [0:0] | |
| :INPUT ACCEPT [0:0] | |
| :OUTPUT ACCEPT [0:0] | |
| :POSTROUTING ACCEPT [0:0] | |
| -A PREROUTING -p tcp -s 10.0.0.30 --dport 22 -j DNAT --to 10.0.0.10:22 | |
| -A POSTROUTING -p tcp -s 10.0.0.30 --dport 22 -j MASQUERADE |
| <?xml version="1.0" encoding="UTF-8"?> | |
| <jmeterTestPlan version="1.2" properties="2.1"> | |
| <hashTree> | |
| <TestPlan guiclass="TestPlanGui" testclass="TestPlan" testname="Test Plan" enabled="true"> | |
| <stringProp name="TestPlan.comments"></stringProp> | |
| <boolProp name="TestPlan.functional_mode">false</boolProp> | |
| <boolProp name="TestPlan.serialize_threadgroups">false</boolProp> | |
| <elementProp name="TestPlan.user_defined_variables" elementType="Arguments" guiclass="ArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true"> | |
| <collectionProp name="Arguments.arguments"/> | |
| </elementProp> |
| use vmail | |
| INSERT INTO alias (address, goto, domain) values ('[email protected]', '[email protected],[email protected]', 'domain.ltd'); |
Cuando tenemos uwsgi + nginx + https e intentamos hacer el siguiente request:
https://dominio.com/admin
(notar que no tiene slash al final)
Nos hace un redirect hacia http
http://dominio.com/admin/