{"id":936,"date":"2019-01-18T16:58:41","date_gmt":"2019-01-18T13:58:41","guid":{"rendered":"https:\/\/artem.services\/?p=509"},"modified":"2019-03-17T17:36:13","modified_gmt":"2019-03-17T14:36:13","slug":"backuppc-nginx-2","status":"publish","type":"post","link":"https:\/\/artem.services\/?p=936&lang=en","title":{"rendered":"BackupPC 3 &#8212; Nginx"},"content":{"rendered":"<p><img loading=\"lazy\" class=\"size-full wp-image-219 aligncenter\" src=\"https:\/\/artem.services\/wp-content\/uploads\/2018\/11\/Config-Examples-Logo.png\" alt=\"\" width=\"937\" height=\"145\" srcset=\"https:\/\/artem.services\/wp-content\/uploads\/2018\/11\/Config-Examples-Logo.png 937w, https:\/\/artem.services\/wp-content\/uploads\/2018\/11\/Config-Examples-Logo-300x46.png 300w, https:\/\/artem.services\/wp-content\/uploads\/2018\/11\/Config-Examples-Logo-768x119.png 768w\" sizes=\"(max-width: 937px) 100vw, 937px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p>Install &quot;<strong>fcgiwrap<\/strong>&quot;<\/p>\n<h5>Deb system:<\/h5>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\napt install fcgiwrap\r\n<\/pre>\n<p>CentOS:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\nyum install fcgiwrap\r\n<\/pre>\n<p>&nbsp;<\/p>\n<p><span class=\"tlid-translation translation\" lang=\"en\"><span class=\"\" title=\"\">Add to autorun and run:<\/span><\/span><\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\nsystemctl enable fcgiwrap\r\nsystemctl start fcgiwrap\r\n<\/pre>\n<h5>backuppc.conf<\/h5>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\nserver {\r\n    listen 80;\r\n    server_name backuppc.artem.services;\r\n    root  \/usr\/share\/backuppc;\r\n \r\n    index cgi-bin\/index.cgi;\r\n \r\n    access_log  \/var\/log\/nginx\/backuppc.access.log;\r\n    error_log   \/var\/log\/nginx\/backuppc.error.log;\r\n \r\n    location \/ {\r\n        location \/backuppc {\r\n            alias \/usr\/share\/backuppc;\r\n        }\r\n\r\n        auth_basic &quot;Backup&quot;;\r\n        auth_basic_user_file \/etc\/backuppc\/htpasswd;\r\n \r\n        location ~ \\.cgi$ {\r\n            include fastcgi_params;\r\n            fastcgi_pass unix:\/run\/fcgiwrap.socket;\r\n \r\n            fastcgi_param REMOTE_ADDR     $remote_addr;\r\n            fastcgi_param REMOTE_USER     $remote_user;\r\n            fastcgi_param SCRIPT_FILENAME \/usr\/share\/backuppc\/cgi-bin\/index.cgi;\r\n        }\r\n    }\r\n}\r\n<\/pre>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>&nbsp; Install &quot;fcgiwrap&quot; Deb system: CentOS: &nbsp; Add to autorun and run: backuppc.conf &nbsp;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[467],"tags":[503,685,345],"_links":{"self":[{"href":"https:\/\/artem.services\/index.php?rest_route=\/wp\/v2\/posts\/936"}],"collection":[{"href":"https:\/\/artem.services\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/artem.services\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/artem.services\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/artem.services\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=936"}],"version-history":[{"count":2,"href":"https:\/\/artem.services\/index.php?rest_route=\/wp\/v2\/posts\/936\/revisions"}],"predecessor-version":[{"id":941,"href":"https:\/\/artem.services\/index.php?rest_route=\/wp\/v2\/posts\/936\/revisions\/941"}],"wp:attachment":[{"href":"https:\/\/artem.services\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=936"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/artem.services\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=936"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/artem.services\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=936"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}