{"id":1662,"date":"2026-06-17T07:02:07","date_gmt":"2026-06-17T07:02:07","guid":{"rendered":"https:\/\/www.hostx.ro\/kb\/cum-integrez-node-js-cu-apache\/"},"modified":"2026-07-25T14:51:16","modified_gmt":"2026-07-25T12:51:16","password":"","slug":"cum-integrez-node-js-cu-apache","status":"publish","type":"docs","link":"https:\/\/www.hostx.ro\/kb\/cum-integrez-node-js-cu-apache\/","title":{"rendered":"Cum integrez Node.js cu Apache?"},"content":{"rendered":"<p>Pentru a accesa o aplica\u021bie Node.js dintr-un browser prin Apache, folose\u0219te un fi\u0219ier <code>.htaccess<\/code> cu regulile de mai jos:<\/p>\n<pre>RewriteEngine On\nRewriteRule ^$ http:\/\/127.0.0.1:xxxx\/ [P,L]\nRewriteCond %{REQUEST_FILENAME} !-f\nRewriteCond %{REQUEST_FILENAME} !-d\nRewriteRule ^(.*)$ http:\/\/127.0.0.1:xxxx\/$1 [P,L]<\/pre>\n<p>\u00cenlocuie\u0219te <code>xxxx<\/code> cu portul pe care ruleaz\u0103 aplica\u021bia ta. Dac\u0103 aplica\u021bia nu porne\u0219te, verific\u0103 logurile pentru coduri de eroare (ex. <strong>EADDRINUSE<\/strong>) \u0219i \u00eencearc\u0103 alt port.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Pentru a accesa o aplica\u021bie Node.js dintr-un browser prin Apache, folose\u0219te un fi\u0219ier .htaccess cu regulile de mai jos: RewriteEngine On RewriteRule ^$ http:\/\/127.0.0.1:xxxx\/ [P,L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ http:\/\/127.0.0.1:xxxx\/$1 [P,L] \u00cenlocuie\u0219te xxxx cu portul pe care ruleaz\u0103 aplica\u021bia ta. Dac\u0103 aplica\u021bia nu porne\u0219te, verific\u0103 logurile pentru coduri de eroare (ex. &#8230; <a title=\"Cum integrez Node.js cu Apache?\" class=\"read-more\" href=\"https:\/\/www.hostx.ro\/kb\/cum-integrez-node-js-cu-apache\/\" aria-label=\"Cite\u0219te mai multe despre Cum integrez Node.js cu Apache?\">Cite\u0219te mai mult<\/a><\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"inline_featured_image":false,"whmcs_kb_id":475,"footnotes":""},"doc_category":[166],"doc_tag":[267,242,227,421],"class_list":["post-1662","docs","type-docs","status-publish","hentry","doc_category-node-js","doc_tag-htaccess","doc_tag-apache","doc_tag-configurare","doc_tag-node-js"],"year_month":"2026-08","word_count":72,"total_views":"19","reactions":{"happy":"0","normal":"0","sad":"0"},"author_info":{"name":"Adrian Firican","author_nicename":"techeditor1","author_url":"https:\/\/www.hostx.ro\/kb\/author\/techeditor1\/"},"doc_category_info":[{"term_name":"Node.js","term_url":"https:\/\/www.hostx.ro\/kb\/docs-category\/node-js\/"}],"doc_tag_info":[{"term_name":".htaccess","term_url":"https:\/\/www.hostx.ro\/kb\/docs-tag\/htaccess\/"},{"term_name":"Apache","term_url":"https:\/\/www.hostx.ro\/kb\/docs-tag\/apache\/"},{"term_name":"configurare","term_url":"https:\/\/www.hostx.ro\/kb\/docs-tag\/configurare\/"},{"term_name":"Node.js","term_url":"https:\/\/www.hostx.ro\/kb\/docs-tag\/node-js\/"}],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.3 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Cum integrez Node.js cu Apache - Ghid Complet - Centrul de suport HostX<\/title>\n<meta name=\"description\" content=\"Ghid complet pentru integrarea Node.js cu Apache folosind .htaccess. Configurare RewriteRule, proxy \u0219i troubleshooting pentru aplica\u021bii Node.js.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.hostx.ro\/kb\/cum-integrez-node-js-cu-apache\/\" \/>\n<meta property=\"og:locale\" content=\"ro_RO\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Cum integrez Node.js cu Apache - Ghid Complet - Centrul de suport HostX\" \/>\n<meta property=\"og:description\" content=\"Ghid complet pentru integrarea Node.js cu Apache folosind .htaccess. Configurare RewriteRule, proxy \u0219i troubleshooting pentru aplica\u021bii Node.js.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.hostx.ro\/kb\/cum-integrez-node-js-cu-apache\/\" \/>\n<meta property=\"og:site_name\" content=\"Centrul de suport HostX\" \/>\n<meta property=\"article:modified_time\" content=\"2026-07-25T12:51:16+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.hostx.ro\\\/kb\\\/cum-integrez-node-js-cu-apache\\\/\",\"url\":\"https:\\\/\\\/www.hostx.ro\\\/kb\\\/cum-integrez-node-js-cu-apache\\\/\",\"name\":\"Cum integrez Node.js cu Apache - Ghid Complet - Centrul de suport HostX\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.hostx.ro\\\/kb\\\/#website\"},\"datePublished\":\"2026-06-17T07:02:07+00:00\",\"dateModified\":\"2026-07-25T12:51:16+00:00\",\"description\":\"Ghid complet pentru integrarea Node.js cu Apache folosind .htaccess. Configurare RewriteRule, proxy \u0219i troubleshooting pentru aplica\u021bii Node.js.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.hostx.ro\\\/kb\\\/cum-integrez-node-js-cu-apache\\\/#breadcrumb\"},\"inLanguage\":\"ro-RO\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.hostx.ro\\\/kb\\\/cum-integrez-node-js-cu-apache\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.hostx.ro\\\/kb\\\/cum-integrez-node-js-cu-apache\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Prima pagin\u0103\",\"item\":\"https:\\\/\\\/www.hostx.ro\\\/kb\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"InfoCentru\",\"item\":\"https:\\\/\\\/www.hostx.ro\\\/kb\\\/docs\\\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Cum integrez Node.js cu Apache?\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.hostx.ro\\\/kb\\\/#website\",\"url\":\"https:\\\/\\\/www.hostx.ro\\\/kb\\\/\",\"name\":\"Centrul de suport HostX\",\"description\":\"tutoriale gazduire web, domenii web \u0219i servere\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.hostx.ro\\\/kb\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"ro-RO\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Cum integrez Node.js cu Apache - Ghid Complet - Centrul de suport HostX","description":"Ghid complet pentru integrarea Node.js cu Apache folosind .htaccess. Configurare RewriteRule, proxy \u0219i troubleshooting pentru aplica\u021bii Node.js.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.hostx.ro\/kb\/cum-integrez-node-js-cu-apache\/","og_locale":"ro_RO","og_type":"article","og_title":"Cum integrez Node.js cu Apache - Ghid Complet - Centrul de suport HostX","og_description":"Ghid complet pentru integrarea Node.js cu Apache folosind .htaccess. Configurare RewriteRule, proxy \u0219i troubleshooting pentru aplica\u021bii Node.js.","og_url":"https:\/\/www.hostx.ro\/kb\/cum-integrez-node-js-cu-apache\/","og_site_name":"Centrul de suport HostX","article_modified_time":"2026-07-25T12:51:16+00:00","twitter_card":"summary_large_image","schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.hostx.ro\/kb\/cum-integrez-node-js-cu-apache\/","url":"https:\/\/www.hostx.ro\/kb\/cum-integrez-node-js-cu-apache\/","name":"Cum integrez Node.js cu Apache - Ghid Complet - Centrul de suport HostX","isPartOf":{"@id":"https:\/\/www.hostx.ro\/kb\/#website"},"datePublished":"2026-06-17T07:02:07+00:00","dateModified":"2026-07-25T12:51:16+00:00","description":"Ghid complet pentru integrarea Node.js cu Apache folosind .htaccess. Configurare RewriteRule, proxy \u0219i troubleshooting pentru aplica\u021bii Node.js.","breadcrumb":{"@id":"https:\/\/www.hostx.ro\/kb\/cum-integrez-node-js-cu-apache\/#breadcrumb"},"inLanguage":"ro-RO","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.hostx.ro\/kb\/cum-integrez-node-js-cu-apache\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.hostx.ro\/kb\/cum-integrez-node-js-cu-apache\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Prima pagin\u0103","item":"https:\/\/www.hostx.ro\/kb\/"},{"@type":"ListItem","position":2,"name":"InfoCentru","item":"https:\/\/www.hostx.ro\/kb\/docs\/"},{"@type":"ListItem","position":3,"name":"Cum integrez Node.js cu Apache?"}]},{"@type":"WebSite","@id":"https:\/\/www.hostx.ro\/kb\/#website","url":"https:\/\/www.hostx.ro\/kb\/","name":"Centrul de suport HostX","description":"tutoriale gazduire web, domenii web \u0219i servere","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.hostx.ro\/kb\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"ro-RO"}]}},"knowledge_base_info":[],"knowledge_base_slug":[],"_links":{"self":[{"href":"https:\/\/www.hostx.ro\/kb\/wp-json\/wp\/v2\/docs\/1662","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hostx.ro\/kb\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/www.hostx.ro\/kb\/wp-json\/wp\/v2\/types\/docs"}],"author":[{"embeddable":true,"href":"https:\/\/www.hostx.ro\/kb\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hostx.ro\/kb\/wp-json\/wp\/v2\/comments?post=1662"}],"version-history":[{"count":2,"href":"https:\/\/www.hostx.ro\/kb\/wp-json\/wp\/v2\/docs\/1662\/revisions"}],"predecessor-version":[{"id":5031,"href":"https:\/\/www.hostx.ro\/kb\/wp-json\/wp\/v2\/docs\/1662\/revisions\/5031"}],"wp:attachment":[{"href":"https:\/\/www.hostx.ro\/kb\/wp-json\/wp\/v2\/media?parent=1662"}],"wp:term":[{"taxonomy":"doc_category","embeddable":true,"href":"https:\/\/www.hostx.ro\/kb\/wp-json\/wp\/v2\/doc_category?post=1662"},{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/www.hostx.ro\/kb\/wp-json\/wp\/v2\/doc_tag?post=1662"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}