{"id":721,"date":"2014-05-02T02:38:07","date_gmt":"2014-05-02T00:38:07","guid":{"rendered":"https:\/\/www.fanjoe.be\/?p=721"},"modified":"2014-06-16T15:51:20","modified_gmt":"2014-06-16T13:51:20","slug":"proxy-pass-nginx-pour-transmission-web-interface","status":"publish","type":"post","link":"https:\/\/www.fanjoe.be\/?p=721","title":{"rendered":"Proxy-pass nginx pour Transmission Web Interface"},"content":{"rendered":"<p><a href=\"https:\/\/www.fanjoe.be\/wp-content\/uploads\/2014\/05\/Nginx-logo.png\"><img loading=\"lazy\" decoding=\"async\" data-attachment-id=\"722\" data-permalink=\"https:\/\/www.fanjoe.be\/?attachment_id=722\" data-orig-file=\"https:\/\/www.fanjoe.be\/wp-content\/uploads\/2014\/05\/Nginx-logo.png\" data-orig-size=\"3397,812\" data-comments-opened=\"1\" data-image-title=\"Nginx-logo\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/www.fanjoe.be\/wp-content\/uploads\/2014\/05\/Nginx-logo-1024x244.png\" class=\"alignnone size-large wp-image-722\" src=\"https:\/\/www.fanjoe.be\/wp-content\/uploads\/2014\/05\/Nginx-logo-1024x244.png\" alt=\"Nginx-logo\" width=\"980\" height=\"233\" srcset=\"https:\/\/www.fanjoe.be\/wp-content\/uploads\/2014\/05\/Nginx-logo-1024x244.png 1024w, https:\/\/www.fanjoe.be\/wp-content\/uploads\/2014\/05\/Nginx-logo-175x41.png 175w, https:\/\/www.fanjoe.be\/wp-content\/uploads\/2014\/05\/Nginx-logo-300x71.png 300w\" sizes=\"auto, (max-width: 980px) 100vw, 980px\" \/><\/a><\/p>\n<p>On l&rsquo;a vu dans un <a title=\"Installation de Transmission-daemon sur un Raspberry Pi\" href=\"https:\/\/www.fanjoe.be\/?p=668\" target=\"_blank\">billet pr\u00e9c\u00e9dent<\/a>, par d\u00e9faut, le serveur qui g\u00e8re l&rsquo;interface web de transmission-daemon \u00e9coute le port 9091.<\/p>\n<p>Difficile de le mettre sur le port 80, car nginx occupe d\u00e9j\u00e0 ce port pour mon blog et d&rsquo;autres sous-domaines.<\/p>\n<p>On va donc utiliser nginx pour faire du proxy-pass.<br \/>\n<!--more--><br \/>\nOn \u00e9tite le fichier de configuration de nginx :<\/p>\n<pre>sudo nano \/etc\/nginx\/sites-available\/default<\/pre>\n<p>Et on ajoute ces lignes :<\/p>\n<pre>\r\nserver {\r\n        listen 80;\r\n        server_name  sous_domaine.domaine.tld;\r\n\r\n        location \/ {\r\n            proxy_pass  http:\/\/localhost:9091;\r\n        }\r\n}\r\n<\/pre>\n<p>Voil\u00e0 ! Quand vous vous connecterez \u00e0 : <code>sous_domain.domaine.tld<\/code>, vous arriverez directement sur l&rsquo;interface web de transmission-daemon avec cette URL affich\u00e9e dans le navigateur :<\/p>\n<pre>http:\/\/sous_domaine.domaine.tld\/transmission\/web\/<\/pre>\n","protected":false},"excerpt":{"rendered":"<p><a href=\"https:\/\/www.fanjoe.be\/wp-content\/uploads\/2014\/05\/Nginx-logo.png\"><\/a><\/p>\n<p>On l&rsquo;a vu dans un <a title=\"Installation de Transmission-daemon sur un Raspberry Pi\" href=\"https:\/\/www.fanjoe.be\/?p=668\" target=\"_blank\">billet pr\u00e9c\u00e9dent<\/a>, par d\u00e9faut,&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":"","jetpack_post_was_ever_published":false},"categories":[10,3,12],"tags":[55,20,62,54],"class_list":["post-721","post","type-post","status-publish","format-standard","hentry","category-geek","category-informatique","category-raspberrypi","tag-daemon","tag-interface","tag-proxy-pass","tag-transmission","end"],"jetpack_sharing_enabled":true,"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/www.fanjoe.be\/index.php?rest_route=\/wp\/v2\/posts\/721","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.fanjoe.be\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.fanjoe.be\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.fanjoe.be\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.fanjoe.be\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=721"}],"version-history":[{"count":0,"href":"https:\/\/www.fanjoe.be\/index.php?rest_route=\/wp\/v2\/posts\/721\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.fanjoe.be\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=721"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.fanjoe.be\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=721"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.fanjoe.be\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=721"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}