{"id":332,"date":"2023-03-12T12:10:05","date_gmt":"2023-03-12T11:10:05","guid":{"rendered":"https:\/\/morc.solutions\/hu\/?p=332"},"modified":"2023-03-12T12:10:06","modified_gmt":"2023-03-12T11:10:06","slug":"nginx-alias-vs-roundcube","status":"publish","type":"post","link":"https:\/\/morc.solutions\/hu\/nginx-alias-vs-roundcube\/","title":{"rendered":"Nginx alias vs Roundcube"},"content":{"rendered":"\n<p>Amikor a Roundcube-ot OS csomagb\u00f3l teszed fel (pl. .deb csomagb\u00f3l Ubuntu-n), akkor a file-okat a \/usr\/share\/roundcube\/ al\u00e1 rakja. Ha azt szeretn\u00e9d, hogy a Roundcube URI-je m\u00e1s legyen, mint \/roundcube\/, akkor k\u00e9t lehet\u0151s\u00e9ged van (lehet van t\u00f6bb is):<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Csin\u00e1lsz egy softlink-et a document root mapp\u00e1ban a roundcube mapp\u00e1ra<\/li>\n\n\n\n<li>Az Nginx alias direkt\u00edv\u00e1j\u00e1t haszn\u00e1lod<\/li>\n<\/ol>\n\n\n\n<p>A m\u00e1sodik lehet\u0151s\u00e9ggel az a probl\u00e9ma, hogy az Nginx csomag \u00e1ltal adott fastcgi.conf rossz \u00e9rt\u00e9ket \u00e1ll\u00edt be a SCRIPT_FILENAME param\u00e9terbe, ez\u00e9rt a PHP nem tal\u00e1lja meg a file-okat. A megold\u00e1s, hogy fel\u00fcl\u00edrjuk ennek a param\u00e9ternek az \u00e9rt\u00e9k\u00e9t a helyessel:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>location \/mail\/ {\r\n  alias \/usr\/share\/roundcube\/;\r\n  try_files $uri $uri\/ \/index.php?$args;\r\n  location ~ .php$ {\r\n    include snippets\/fastcgi-php.conf;\r\n    fastcgi_param SCRIPT_FILENAME $request_filename;\r\n    fastcgi_pass unix:\/run\/php\/php-fpm.sock;\r\n  }\r\n}<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Amikor a Roundcube-ot OS csomagb\u00f3l teszed fel (pl. .deb csomagb\u00f3l Ubuntu-n), akkor a file-okat a \/usr\/share\/roundcube\/ al\u00e1 rakja. Ha azt szeretn\u00e9d, hogy a Roundcube URI-je m\u00e1s legyen, mint \/roundcube\/, akkor k\u00e9t lehet\u0151s\u00e9ged van (lehet van t\u00f6bb is): A m\u00e1sodik lehet\u0151s\u00e9ggel &hellip; <a href=\"https:\/\/morc.solutions\/hu\/nginx-alias-vs-roundcube\/\">Egy kattint\u00e1s ide a folytat\u00e1shoz&#8230;. <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-332","post","type-post","status-publish","format-standard","hentry","category-nincs-kategorizalva"],"_links":{"self":[{"href":"https:\/\/morc.solutions\/hu\/wp-json\/wp\/v2\/posts\/332","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/morc.solutions\/hu\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/morc.solutions\/hu\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/morc.solutions\/hu\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/morc.solutions\/hu\/wp-json\/wp\/v2\/comments?post=332"}],"version-history":[{"count":1,"href":"https:\/\/morc.solutions\/hu\/wp-json\/wp\/v2\/posts\/332\/revisions"}],"predecessor-version":[{"id":333,"href":"https:\/\/morc.solutions\/hu\/wp-json\/wp\/v2\/posts\/332\/revisions\/333"}],"wp:attachment":[{"href":"https:\/\/morc.solutions\/hu\/wp-json\/wp\/v2\/media?parent=332"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/morc.solutions\/hu\/wp-json\/wp\/v2\/categories?post=332"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/morc.solutions\/hu\/wp-json\/wp\/v2\/tags?post=332"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}