{"id":394,"date":"2019-07-27T11:37:46","date_gmt":"2019-07-27T09:37:46","guid":{"rendered":"https:\/\/ubuntu.science\/?p=394"},"modified":"2022-04-03T23:42:52","modified_gmt":"2022-04-03T21:42:52","slug":"verifier-les-journaux-de-lhote-virtuel-apache","status":"publish","type":"post","link":"https:\/\/rootfan.com\/fr\/check-apache-virtual-host-logs\/","title":{"rendered":"V\u00e9rifier tous les journaux de l'h\u00f4te virtuel Apache sur Ubuntu"},"content":{"rendered":"<p>J'ai parfois besoin de v\u00e9rifier tous mes h\u00f4tes virtuels sur mon serveur Apache.<\/p>\n\n\n\n<p>La meilleure fa\u00e7on de le faire est d'utiliser la commande cat comme suit<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\/var\/log\/apache2# cat *.access.log<\/pre><\/pre>\n\n\n\n<p>Si je veux continuer \u00e0 observer le journal, j'utilise la commande tail comme suit<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\/var\/log\/apache2# tail -f *.access.log<\/pre><\/pre>\n\n\n\n<p>Mais si je veux v\u00e9rifier quelque chose de plus sp\u00e9cifique, je peux aussi utiliser un grep.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\/var\/log\/apache2# cat *.access.log | grep root<\/pre><\/pre>\n\n\n\n<p>C'est un moyen rapide de v\u00e9rifier mes journaux sans avoir \u00e0 les v\u00e9rifier un par un.<\/p>","protected":false},"excerpt":{"rendered":"<p>Parfois, j'ai besoin de v\u00e9rifier tous mes h\u00f4tes virtuels sur mon serveur Apache. La meilleure fa\u00e7on de le faire est d'utiliser la commande cat comme ceci \/var\/log\/apache2# cat *.access.log Si je veux continuer \u00e0 observer le journal, j'utilise la commande tail comme suit \/var\/log\/apache2# tail -f *.access.log Mais si je veux v\u00e9rifier quelque chose ... <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/rootfan.com\/fr\/check-apache-virtual-host-logs\/\" class=\"more-link\">Continuer la lecture<span class=\"screen-reader-text\"> de \" V\u00e9rifier tous les journaux de l'h\u00f4te virtuel Apache sur Ubuntu \"<\/span><\/a><\/p>","protected":false},"author":1,"featured_media":2891,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"rank_math_focus_keyword":"","rank_math_title":"","rank_math_description":"Easily check and analyze Apache virtual host logs on Ubuntu for better server management and troubleshooting.","rank_math_robots":null,"rank_math_og_title":"","rank_math_og_description":"","jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[11],"tags":[8,24,25,29],"class_list":["post-394","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-apache","tag-command","tag-debug","tag-logs","tag-ubuntu"],"jetpack_featured_media_url":"https:\/\/i0.wp.com\/rootfan.com\/wp-content\/uploads\/pexels-photo-3573555.jpeg?fit=1880%2C1058&ssl=1","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/rootfan.com\/fr\/wp-json\/wp\/v2\/posts\/394","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/rootfan.com\/fr\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/rootfan.com\/fr\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/rootfan.com\/fr\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/rootfan.com\/fr\/wp-json\/wp\/v2\/comments?post=394"}],"version-history":[{"count":3,"href":"https:\/\/rootfan.com\/fr\/wp-json\/wp\/v2\/posts\/394\/revisions"}],"predecessor-version":[{"id":2893,"href":"https:\/\/rootfan.com\/fr\/wp-json\/wp\/v2\/posts\/394\/revisions\/2893"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/rootfan.com\/fr\/wp-json\/wp\/v2\/media\/2891"}],"wp:attachment":[{"href":"https:\/\/rootfan.com\/fr\/wp-json\/wp\/v2\/media?parent=394"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/rootfan.com\/fr\/wp-json\/wp\/v2\/categories?post=394"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/rootfan.com\/fr\/wp-json\/wp\/v2\/tags?post=394"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}