{"id":78,"date":"2023-11-27T12:12:22","date_gmt":"2023-11-27T11:12:22","guid":{"rendered":"https:\/\/artheodoc.fr\/?page_id=78"},"modified":"2023-11-27T13:13:31","modified_gmt":"2023-11-27T12:13:31","slug":"installation-et-configuration-du-reverse-proxy-apache-pour-le-port80-http","status":"publish","type":"page","link":"https:\/\/artheodoc.fr\/index.php\/installation-et-configuration-du-reverse-proxy-apache-pour-le-port80-http\/","title":{"rendered":"Installation et configuration du Reverse Proxy Apache pour le port80 (HTTP)"},"content":{"rendered":"\n<p>Exemple pour le nom de domaine exemple.memoirevive79.mooo.com vers l\u2019IP 192.168.2.79.<\/p>\n\n\n\n<p>On transfert vers la machine Reverse proxy toutes les requ\u00eates destin\u00e9es au port 80 (HTTP).<\/p>\n\n\n\n<p>Installation du Reverse Proxy Apache<\/p>\n\n\n\n<p>Se connecter en SSH avec Putty sur Reverse Proxy (voir le port utilis\u00e9, 22 s\u2019il n\u2019a pas \u00e9t\u00e9 modifi\u00e9).<\/p>\n\n\n\n<p>Se connecter en administrateur root :<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><strong>su<\/strong><\/pre>\n\n\n\n<p>Activer le proxy_http sur le serveur :<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><strong>a2enmod proxy_http<\/strong><\/pre>\n\n\n\n<p>Puis red\u00e9marrer le serveur :<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><strong>systemctl reload apache2<\/strong><\/pre>\n\n\n\n<p>Avec nano, cr\u00e9er le fichier sites.conf sur \/etc\/apache2\/sites-available, il peut contenir plusieurs sections VirtualHost pour desservir plusieurs serveurs WEB.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><strong>cd \/etc\/apache2\/sites-available<\/strong><\/pre>\n\n\n\n<pre class=\"wp-block-preformatted\"><strong>nano exemple.conf<\/strong><\/pre>\n\n\n\n<pre class=\"wp-block-preformatted\">&lt;VirtualHost *:80&gt;\nServerName <strong>exemple.memoirevive79.mooo.com<\/strong>\nProxyPreserveHost On\nProxyRequests On\nProxyPass \/ http:\/\/<strong>192.168.2.79<\/strong>\/\nProxyPassReverse \/ http:\/\/<strong>192.168.2.79<\/strong>\n&lt;\/VirtualHost&gt;<\/pre>\n\n\n\n<p>Pour quitter nano et enregistrer les modifications <strong>[CRTL]<\/strong> + <strong>[X]<\/strong> ==&gt; <strong>[O]<\/strong> ==&gt; <strong>[Entr\u00e9e]<\/strong><\/p>\n\n\n\n<p>Puis l\u2019activer (une seule fois suffit) :<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><strong>a2ensite exemple.conf<\/strong><\/pre>\n\n\n\n<p>Puis relancer Apache :<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><strong>systemctl reload apache2<\/strong><\/pre>\n\n\n\n<p>V\u00e9rifier que l\u2019URL r\u00e9pond bien en http :<\/p>\n\n\n\n<p>http:\/\/exemple.memoirevive79.mooo.com\/<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Exemple pour le nom de domaine exemple.memoirevive79.mooo.com vers l\u2019IP 192.168.2.79. On transfert vers la machine Reverse proxy toutes les requ\u00eates destin\u00e9es au port 80 (HTTP). Installation du Reverse Proxy Apache Se connecter en SSH avec Putty sur Reverse Proxy (voir le port utilis\u00e9, 22 s\u2019il n\u2019a pas \u00e9t\u00e9 modifi\u00e9). Se connecter en administrateur root : [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"class_list":["post-78","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/artheodoc.fr\/index.php\/wp-json\/wp\/v2\/pages\/78","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/artheodoc.fr\/index.php\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/artheodoc.fr\/index.php\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/artheodoc.fr\/index.php\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/artheodoc.fr\/index.php\/wp-json\/wp\/v2\/comments?post=78"}],"version-history":[{"count":5,"href":"https:\/\/artheodoc.fr\/index.php\/wp-json\/wp\/v2\/pages\/78\/revisions"}],"predecessor-version":[{"id":91,"href":"https:\/\/artheodoc.fr\/index.php\/wp-json\/wp\/v2\/pages\/78\/revisions\/91"}],"wp:attachment":[{"href":"https:\/\/artheodoc.fr\/index.php\/wp-json\/wp\/v2\/media?parent=78"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}