{"id":1571,"date":"2019-09-16T16:02:29","date_gmt":"2019-09-16T22:02:29","guid":{"rendered":"https:\/\/ugit.siua.ac.cr\/?p=1571"},"modified":"2019-09-25T15:39:50","modified_gmt":"2019-09-25T21:39:50","slug":"apache-crear-login-por-apache","status":"publish","type":"post","link":"https:\/\/sada.services\/?p=1571","title":{"rendered":"APACHE: crear login por apache"},"content":{"rendered":"\n<ul class=\"wp-block-list\"><li>Agregamos al host virtual<\/li><\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>#************************************************************************\n#************************** DATOS DEL SITIO WEB *************************\n#************************************************************************\nDocumentRoot \/var\/www\/html\/Sistemas\/sigetic\n\n&lt;Directory \/var\/www\/html\/Sistemas\/sigetic\/ >\n      AuthName \"Lo siento. ACCESO RESTRINGIDO.\"\n      AuthUserFile \/var\/www\/html\/Sistemas\/sigetic\/.htpasswd\n      AuthType Basic\n      require valid-user\n&lt;\/Directory><\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\"><li>Reiniciamos apache<\/li><\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>service apache2 restart<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\"><li>Creamos un archivo .htpasswd<\/li><\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>nano .htpasswd<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\"><li>Creamos al usuario<\/li><\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>htpasswd .htpasswd ugit<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\"><li>RESULTADO:<\/li><\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>New password: \nRe-type new password: \nAdding password for user ugit<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>APACHE: crear login por apache<\/p>\n","protected":false},"author":2,"featured_media":2163,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[109],"tags":[110,17],"class_list":["post-1571","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-apache","tag-apache","tag-ubuntu"],"blocksy_meta":{"styles_descriptor":{"styles":{"desktop":"","tablet":"","mobile":""},"google_fonts":[],"version":6}},"_links":{"self":[{"href":"https:\/\/sada.services\/index.php?rest_route=\/wp\/v2\/posts\/1571","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/sada.services\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/sada.services\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/sada.services\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/sada.services\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1571"}],"version-history":[{"count":2,"href":"https:\/\/sada.services\/index.php?rest_route=\/wp\/v2\/posts\/1571\/revisions"}],"predecessor-version":[{"id":2164,"href":"https:\/\/sada.services\/index.php?rest_route=\/wp\/v2\/posts\/1571\/revisions\/2164"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/sada.services\/index.php?rest_route=\/wp\/v2\/media\/2163"}],"wp:attachment":[{"href":"https:\/\/sada.services\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1571"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/sada.services\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1571"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/sada.services\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1571"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}