{"id":31,"date":"2014-05-24T02:54:04","date_gmt":"2014-05-24T02:54:04","guid":{"rendered":"http:\/\/107.170.191.119\/?p=31"},"modified":"2014-05-24T02:54:04","modified_gmt":"2014-05-24T02:54:04","slug":"lpic-2-web-service-208","status":"publish","type":"post","link":"https:\/\/arripio.com.br\/?p=31","title":{"rendered":"LPIC-2 Web Service 208"},"content":{"rendered":"<p>Arquivo de configura\u00e7ao:<\/p>\n<p><strong>\u00a0\/etc\/apache2\/apache2.conf<\/strong><\/p>\n<p>&nbsp;<\/p>\n<h6><strong>ServerRoot<\/strong> &#8220;\/etc\/apache2&#8221;<\/h6>\n<h6>caminho de configura\u00e7\u00e3o dos arquivos do apache<br \/>\n<strong>Timeout<\/strong> 300<\/h6>\n<h6>Tempo m\u00e1ximo em segundos que o apache aguarda por resposta do cliente<\/h6>\n<h6><strong>KeepAlive<\/strong> On<\/h6>\n<h6>Uso de diversas requisi\u00e7\u00f5es dentro da mesma conex\u00e3o<\/h6>\n<h6><strong>MaxKeepAliveRequests<\/strong> 100<\/h6>\n<h6>Numero m\u00e1ximo que o usu\u00e1rio poder\u00e1 fazer dentro da mesma conex\u00e3o<\/h6>\n<h6><strong>KeepAliveTimeout<\/strong> 5<br \/>\nTempo m\u00e1ximo em segundo que o servidor aguardara por requisi\u00e7\u00f5es antes de terminar a conex\u00e3o<\/h6>\n<h6><strong>MinSpareServers<\/strong> 5<\/h6>\n<h6>Quantidade de minima\u00a0de processo filho ocioso em execu\u00e7\u00e3o no servidor aguardando conex\u00e3o<\/h6>\n<h6><\/h6>\n<h6><strong>MaxSpareServers<\/strong> 10<\/h6>\n<h6>Quantidade de m\u00e1xima de processo ocioso em execu\u00e7\u00e3o no servidor<\/h6>\n<h6><strong>StartServers<\/strong> 5<\/h6>\n<h6>Quantidade de processos filhos iniciado com processo inicial<\/h6>\n<h6><strong>MaxClientes<\/strong> 150<\/h6>\n<h6>M\u00e1xima de conex\u00f5es simult\u00e2neas<\/h6>\n<h6><strong>MaxRequestsPerChild<\/strong> 30<\/h6>\n<h6>numero m\u00e1ximo de threads ociosas aguardando requisi\u00e7\u00f5es<\/h6>\n<h6><\/h6>\n<h6>Restricao de acesso<\/h6>\n<h6>htpasswd -s -c \/var\/www\/crock.norang.ca\/.htpasswd-private usuario<\/h6>\n<h6><strong>-s<\/strong> \u00a0Algoritimo SHA1<\/h6>\n<h6><strong>-c<\/strong> Indica o caminho que armazena as senhas<\/h6>\n<h6>&lt;Directory &#8220;\/var\/www\/site\/&#8221;&gt;<br \/>\nDirectoryIndex index.py<br \/>\nAddHandler cgi-script .py<br \/>\nOptions Indexes FollowSymLinks MultiViews ExecCGI<br \/>\n<strong>AuthType Basic<\/strong><br \/>\n<strong>AuthName<\/strong> &#8220;Documentacao&#8221;<br \/>\n<strong>AuthUserFile<\/strong> \/var\/www\/crock.norang.ca\/.htpasswd-private<br \/>\n<strong>Require valid-user<\/strong><br \/>\nAllowOverride None<br \/>\nOrder allow,deny<br \/>\nallow from all<br \/>\n&lt;\/Directory&gt;<\/h6>\n<h6>Comando de controle do apache: <strong>apache2ctl{start,stop, restart, graceful,<span style=\"color: #ff0000;\">configtest<\/span><\/strong><\/h6>\n<h6>Arquivos personalizado de log<strong><em> LogFormat<\/em><\/strong> e<em><strong> CustomLog<\/strong><\/em><\/h6>\n<h6>Apache Seguro<\/h6>\n<h6><strong>openssl<\/strong><\/h6>\n<h6>a2enmod ssl<br \/>\n\/etc\/init.d\/apache2 restart<br \/>\nmkdir \/etc\/apache2\/ssl<br \/>\ncd \/etc\/apache2\/ssl<br \/>\nopenssl genrsa -des3 -out server.key 1024<br \/>\nopenssl req -new -key server.key -out server.csr<br \/>\nopenssl x509 -req -days 365 -in server.csr -signkey server.key -out server.crt<br \/>\nchmod 0400 \/etc\/apache2\/ssl\/server.key<br \/>\nchmod 0400 \/etc\/apache2\/ssl\/server.crt<br \/>\ncp \/etc\/apache2\/ssl\/server.key server.key.orig<br \/>\nchmod 400 \/etc\/apache2\/ssl\/*<br \/>\nvim \/etc\/apache2\/sites-available\/default-ssl:<\/h6>\n<h6>SSLEngine<br \/>\nSSLCertificateFile \/etc\/ssl\/certs\/ssl-cert-snakeoil.pem<br \/>\nSSLCertificateKeyFile \/etc\/ssl\/private\/ssl-cert-snakeoil.key<br \/>\nSSLCertificateFile \/etc\/apache2\/ssl\/server.crt<br \/>\nSSLCertificateKeyFile \/etc\/apache2\/ssl\/server.key<\/h6>\n<h6><\/h6>\n<h6>SQUID como servidor de proxy<\/h6>\n<h6>squid.conf<\/h6>\n<h6>ACL &#8211; e a definicao de uma regra de acesso<\/h6>\n<h6>Op\u00e7oes \u00a0fundamentais<\/h6>\n<h6>http_port -&gt;define poras utilizadas pelo squid<\/h6>\n<h6>cache_mrg email do administrador<\/h6>\n<h6>cache_effective_use usuario que executara o deamon<\/h6>\n<h6>cache_effective_group grupo\u00a0que executara o deamon<\/h6>\n<h6><\/h6>\n<h6>NGINX<\/h6>\n<h6>\/etc\/nginx\/nginx.conf<\/h6>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Arquivo de configura\u00e7ao: \u00a0\/etc\/apache2\/apache2.conf &nbsp; ServerRoot &#8220;\/etc\/apache2&#8221; caminho de configura\u00e7\u00e3o dos arquivos do apache Timeout 300 Tempo m\u00e1ximo em segundos que o apache aguarda por resposta do cliente KeepAlive On Uso de diversas requisi\u00e7\u00f5es dentro da mesma conex\u00e3o MaxKeepAliveRequests 100&hellip; <br \/><a class=\"read-more-button\" href=\"https:\/\/arripio.com.br\/?p=31\">Read more<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_exactmetrics_skip_tracking":false,"_exactmetrics_sitenote_active":false,"_exactmetrics_sitenote_note":"","_exactmetrics_sitenote_category":0,"spay_email":"","jetpack_publicize_message":"","jetpack_is_tweetstorm":false},"categories":[3],"tags":[],"jetpack_featured_media_url":"","jetpack_publicize_connections":[],"jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/pazGcY-v","jetpack-related-posts":[{"id":28,"url":"https:\/\/arripio.com.br\/?p=28","url_meta":{"origin":31,"position":0},"title":"LPIC-2 DNS -Domain Name Server 207","date":"24 Maio, 2014","format":false,"excerpt":"Principal arquivo de configura\u00e7\u00e3o \/etc\/named.conf ou \/etc\/bind\/named.conf Comando para for\u00e7a leitura de novas configura\u00e7oes rndc type hint $TTL 1D@\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 SOA \u00a0 \u00a0 linux.dominio.com. \u00a0 \u00a0 \u00a0admin.linux.dominio.com. (\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a02008260401 ;Serial\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a024h \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 ;Refresh ->\u2026","rel":"","context":"In &quot;Cerifica\u00e7\u00e3o LPIC-2 202&quot;","img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":97,"url":"https:\/\/arripio.com.br\/?p=97","url_meta":{"origin":31,"position":1},"title":"LPIC-2 202 PAM Authentication","date":"29 Junho, 2014","format":false,"excerpt":"Arquivos de configura\u00e7\u00e3o O prop\u00f3sito do do projeto PAM \u00e9 separar a concess\u00e3o de privil\u00e9gios nos aplicativos do desenvolvimento de esquemas de autentica\u00e7\u00e3o apropriados e seguros. Isto \u00e9 realizado fornecendo-se uma biblioteca de fun\u00e7\u00f5es utilizada pelas aplica\u00e7\u00f5es para solicitar a autentica\u00e7\u00e3o de usu\u00e1rios.\u00a0 As bibliotecas PAM s\u00e3o configuradas no arquivo\u00a0\/etc\/pam.conf\u00a0ou\u2026","rel":"","context":"In &quot;Automa\u00e7\u00e3o&quot;","img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":42,"url":"https:\/\/arripio.com.br\/?p=42","url_meta":{"origin":31,"position":2},"title":"LPIC-2 Compartilhamento de arquivo 209","date":"24 Maio, 2014","format":false,"excerpt":"Configura\u00e7\u00e3o do Servidor SAMBA: [global] netbios name = servidor workgroup =\u00a0ArripioLinux security = user obey pam restrictions = yes encrypt passwords = no os level = 10 guest account = nobody server string = servidor da rede local master = true domain master = false [homes] comment = Diret\u00f3rios de\u2026","rel":"","context":"In &quot;Cerifica\u00e7\u00e3o LPIC-2 202&quot;","img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":73,"url":"https:\/\/arripio.com.br\/?p=73","url_meta":{"origin":31,"position":3},"title":"Administra\u00e7\u00e3o de Rede 210","date":"9 Junho, 2014","format":false,"excerpt":"DHCP host ArripioLinux{ hardware ethernet 00:00:00:00:00:00; fix-address 10.1.0.3; } option domain-name-servers option domain-name \"Arripio.net\"; Tipo de de autentica\u00e7\u00e3o PAM account auth password session Controle do PAM requisite -> autentica\u00e7\u00e3o \u00e9 imediata negada, no caso de negativa do m\u00f3dulo required ->autentica\u00e7\u00e3o recusada no caso de negativa do m\u00f3dulo , mas consultar\u00e1\u2026","rel":"","context":"In &quot;Automa\u00e7\u00e3o&quot;","img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":529,"url":"https:\/\/arripio.com.br\/?p=529","url_meta":{"origin":31,"position":4},"title":"O que \u00e9 Keepalived?","date":"26 Abril, 2017","format":false,"excerpt":"O que \u00e9 Keepalived? Keepalived \u00e9 um software de roteamento escrito em C. O principal objetivo deste projeto \u00e9 fornecer instala\u00e7\u00f5es simples e robustas para loadbalancing e alta disponibilidade para o sistema Linux e infra-estruturas baseadas em Linux. A estrutura de balanceamento de carga baseia-se no conhecido e amplamente utilizado\u2026","rel":"","context":"In &quot;Sem categoria&quot;","img":{"alt_text":"keepalived","src":"https:\/\/i2.wp.com\/arripio.com.br\/wp-content\/uploads\/2017\/04\/keepalived-640x480.png?resize=350%2C200","width":350,"height":200},"classes":[]},{"id":84,"url":"https:\/\/arripio.com.br\/?p=84","url_meta":{"origin":31,"position":5},"title":"Servi\u00e7o de E-mail 211","date":"9 Junho, 2014","format":false,"excerpt":"SMTP- MTA -\u00a0Postfix, Sedmail, qmail, Exim POP e IMAP - MDA Currier Dovecot MUA - Thunderbird Evolution SendMail aquivos de configura\u00e7\u00e3o \/etc\/mail Servidor Exim arquivos de configura\u00e7\u00e3o \/etc\/default\/exim4 Alias no postfix e sendmail \u00a0 \u00a0\/etc\/aliases \u00a0 usu\u00e1rio: usu\u00e1rios_a_ser_encaminhados \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0\u2026","rel":"","context":"In &quot;Automa\u00e7\u00e3o&quot;","img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"_links":{"self":[{"href":"https:\/\/arripio.com.br\/index.php?rest_route=\/wp\/v2\/posts\/31"}],"collection":[{"href":"https:\/\/arripio.com.br\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/arripio.com.br\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/arripio.com.br\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/arripio.com.br\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=31"}],"version-history":[{"count":0,"href":"https:\/\/arripio.com.br\/index.php?rest_route=\/wp\/v2\/posts\/31\/revisions"}],"wp:attachment":[{"href":"https:\/\/arripio.com.br\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=31"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/arripio.com.br\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=31"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/arripio.com.br\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=31"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}