{"id":2908,"date":"2018-07-17T07:30:40","date_gmt":"2018-07-17T04:00:40","guid":{"rendered":"http:\/\/webide.ir\/blog\/?p=2908"},"modified":"2018-07-16T12:52:48","modified_gmt":"2018-07-16T09:22:48","slug":"%da%86%da%af%d9%88%d9%86%d9%87-%d8%a2%d9%be%d8%a7%da%86%db%8c-%d9%88%db%8c%d8%b1%d8%a7%da%86%d9%88%d8%a7%d9%84-%d9%87%d8%a7%d8%b3%d8%aa-%d8%b1%d8%a7-%d8%a8%d8%b1-%d8%b1%d9%88%db%8c-%d8%af%d8%a8%db%8c","status":"publish","type":"post","link":"https:\/\/webide.ir\/blog\/%da%86%da%af%d9%88%d9%86%d9%87-%d8%a2%d9%be%d8%a7%da%86%db%8c-%d9%88%db%8c%d8%b1%d8%a7%da%86%d9%88%d8%a7%d9%84-%d9%87%d8%a7%d8%b3%d8%aa-%d8%b1%d8%a7-%d8%a8%d8%b1-%d8%b1%d9%88%db%8c-%d8%af%d8%a8%db%8c","title":{"rendered":"\u0686\u06af\u0648\u0646\u0647 \u0647\u0627\u0633\u062a \u0645\u062c\u0627\u0632\u06cc \u0622\u067e\u0627\u0686\u06cc \u0631\u0627 \u0628\u0631 \u0631\u0648\u06cc \u062f\u0628\u06cc\u0627\u0646 9 \u0646\u0635\u0628 \u06a9\u0646\u06cc\u0645\u061f"},"content":{"rendered":"<p>\u0622\u067e\u0627\u0686\u06cc \u0648\u0628 \u0633\u0631\u0648\u0631 \u0645\u062a\u0646 \u0628\u0627\u0632 \u0648 \u0631\u0627\u06cc\u06af\u0627\u0646\u06cc \u0627\u0633\u062a \u06a9\u0647 \u062f\u0631 \u0627\u062e\u062a\u06cc\u0627\u0631 \u0627\u0641\u0631\u0627\u062f \u0642\u0631\u0627\u0631 \u062f\u0627\u0631\u062f. \u0627\u06cc\u0646 \u0648\u0628 \u0633\u0631\u0648\u0631 \u06cc\u06a9\u06cc \u0627\u0632 \u0648\u0628 \u0633\u0631\u0648\u0631\u0647\u0627\u06cc \u0645\u062d\u0628\u0648\u0628 \u0648 \u067e\u0631\u06a9\u0627\u0631\u0628\u0631\u062f \u062f\u0631 \u0633\u0631\u062a\u0627\u0633\u0631 \u062c\u0647\u0627\u0646 \u0627\u0633\u062a \u0648 \u0639\u0645\u062f\u062a\u0627 \u062f\u0631 \u0633\u0631\u0648\u0631\u0647\u0627\u06cc \u0644\u06cc\u0646\u0648\u06a9\u0633\u06cc \u0628\u0647 \u06a9\u0627\u0631 \u0645\u06cc \u0631\u0648\u062f.\u00a0 \u062f\u0631 \u0627\u06cc\u0646 \u0645\u0642\u0627\u0644\u0647 \u0642\u0635\u062f \u062f\u0627\u0631\u06cc\u0645 \u0648\u06cc\u0631\u0686\u0648\u0627\u0644 \u0647\u0627\u0633\u062a \u0631\u0627 \u0628\u0631 \u0631\u0648\u06cc \u062f\u0628\u06cc\u0627\u0646 9 \u0646\u0635\u0628 \u06a9\u0646\u06cc\u0645. \u067e\u0633 \u0647\u0645\u0631\u0627\u0647 \u0648\u0628 \u0627\u06cc\u062f\u0647 \u0628\u0627\u0634\u06cc\u062f.<\/p>\n<p><!--more--><\/p>\n<p>\u0646\u06cc\u0627\u0632\u0645\u0646\u062f\u06cc \u0647\u0627:<\/p>\n<ul>\n<li>\u062f\u0633\u062a\u0631\u0633\u06cc SSH \u0628\u0627 \u0627\u0645\u062a\u06cc\u0627\u0632 Root \u0628\u0631 \u0631\u0648\u06cc \u0633\u0631\u0648\u0631 \u062f\u0628\u06cc\u0627\u0646<\/li>\n<li>\u0646\u0635\u0628 \u0648 \u067e\u06cc\u06a9\u0631\u0628\u0646\u062f\u06cc \u0648\u0628 \u0633\u0631\u0648\u0631 \u0622\u067e\u0627\u0686\u06cc<\/li>\n<\/ul>\n<p><strong>\u00a0 \u062f\u0631 \u0633\u0631\u0648\u0631 \u062e\u0648\u062f \u0644\u0627\u06af\u06cc\u0646 \u06a9\u0646\u06cc\u062f:<\/strong><\/p>\n<p>\u0627\u0628\u062a\u062f\u0627 \u0627\u0632 \u0637\u0631\u06cc\u0642 SSH \u0648\u0627\u0631\u062f \u0633\u0631\u0648\u0631 \u062e\u0648\u062f \u0634\u0648\u06cc\u062f:<\/p>\n<pre class=\"lang:default decode:true \">ssh root@server_ip<\/pre>\n<p>&nbsp;<\/p>\n<p><strong>\u0646\u0635\u0628 \u0622\u067e\u0627\u0686\u06cc \u0631\u0627 \u0645\u0648\u0631\u062f \u0628\u0631\u0631\u0633\u06cc \u0642\u0631\u0627\u0631 \u062f\u0647\u06cc\u062f:<\/strong><\/p>\n<p>\u0628\u0647 \u06a9\u0645\u06a9 \u062f\u0633\u062a\u0648\u0631 \u0632\u06cc\u0631 \u0645\u0637\u0645\u0626\u0646 \u0634\u0648\u06cc\u062f \u0622\u067e\u0627\u0686\u06cc \u0628\u0631 \u0631\u0648\u06cc \u0633\u0631\u0648\u0631 \u0646\u0635\u0628 \u0634\u062f\u0647 \u0648 \u0628\u0647 \u062f\u0631\u0633\u062a\u06cc \u06a9\u0627\u0631 \u0645\u06cc \u06a9\u0646\u062f:<\/p>\n<pre class=\"lang:default decode:true \">dpkg -l apache2<\/pre>\n<p>&nbsp;<\/p>\n<p>\u0627\u06af\u0631 \u0622\u067e\u0627\u0686\u06cc \u0628\u0631 \u0631\u0648\u06cc \u0633\u0631\u0648\u0631 \u0634\u0645\u0627 \u0646\u0635\u0628 \u0646\u0628\u0648\u062f \u0645\u06cc \u062a\u0648\u0627\u0646\u06cc\u062f \u0627\u06cc\u0646\u06a9\u0627\u0631 \u0631\u0627 \u0628\u0647 \u06a9\u0645\u06a9 \u062f\u0633\u062a\u0648\u0631 \u0632\u06cc\u0631 \u0627\u0646\u062c\u0627\u0645 \u062f\u0647\u06cc\u062f. \u062f\u0631 \u0627\u0628\u062a\u062f\u0627 \u0645\u0637\u0645\u0626\u0646 \u0634\u0648\u06cc\u062f \u0645\u062e\u0632\u0646 \u0633\u06cc\u0633\u062a\u0645 \u0628\u0647 \u0631\u0648\u0632 \u0627\u0633\u062a:<\/p>\n<pre class=\"lang:default decode:true \">apt-get update<\/pre>\n<p>&nbsp;<\/p>\n<p>\u0628\u0631\u0627\u06cc \u0646\u0635\u0628 \u0648\u0628 \u0633\u0631\u0648\u0631 \u0622\u067e\u0627\u0686\u06cc \u062f\u0633\u062a\u0648\u0631 \u0632\u06cc\u0631 \u0631\u0627 \u0627\u062c\u0631\u0627 \u06a9\u0646\u06cc\u062f:<\/p>\n<pre class=\"lang:default decode:true \">apt-get install apache2<\/pre>\n<p>&nbsp;<\/p>\n<p>\u0628\u0639\u062f \u0627\u0632 \u0627\u06cc\u0646\u06a9\u0647 \u0646\u0635\u0628 \u06a9\u0627\u0645\u0644 \u0634\u062f\u060c \u0628\u0627\u06cc\u062f \u0622\u067e\u0627\u0686\u06cc \u0631\u0627 \u0627\u0633\u062a\u0627\u0631\u062a \u06a9\u0646\u06cc\u062f \u062a\u0627 \u0628\u0647 \u0637\u0648\u0631 \u062e\u0648\u062f\u06a9\u0627\u0631 \u062f\u0631 \u0628\u0648\u062a \u0633\u0631\u0648\u0631 \u0627\u062c\u0631\u0627 \u0634\u0648\u062f:<\/p>\n<pre class=\"lang:default decode:true \">systemctl enable apache2<\/pre>\n<p>&nbsp;<\/p>\n<p>\u0628\u0647 \u06a9\u0645\u06a9 \u062f\u0633\u062a\u0648\u0631 \u0632\u06cc\u0631 \u0645\u06cc \u062a\u0648\u0627\u0646\u06cc\u062f \u0648\u0636\u0639\u06cc\u062a \u0633\u0631\u0648\u06cc\u0633 \u0622\u067e\u0627\u0686\u06cc \u0631\u0627 \u0645\u0648\u0631\u062f \u0628\u0631\u0631\u0633\u06cc \u0642\u0631\u0627\u0631 \u062f\u0647\u06cc\u062f:<\/p>\n<pre class=\"lang:default decode:true \">systemctl status apache2<\/pre>\n<p>&nbsp;<\/p>\n<p>\u062e\u0648\u0628 \u062d\u0627\u0644\u0627 \u06a9\u0647 \u0645\u0637\u0645\u0626\u0646 \u0634\u062f\u06cc\u0645 \u0622\u067e\u0627\u0686\u06cc \u0628\u0647 \u062f\u0631\u0633\u062a\u06cc \u0631\u0648\u06cc \u0633\u0631\u0648\u0631 \u0627\u062c\u0631\u0627 \u0648 \u0646\u0635\u0628 \u0634\u062f\u0647 \u0627\u0633\u062a \u0645\u06cc \u062a\u0648\u0627\u0646\u06cc\u0645 \u0628\u0647 \u0633\u0631\u0627\u063a \u0645\u0631\u0627\u062d\u0644 \u0628\u0639\u062f\u06cc \u0628\u0631\u0648\u06cc\u0645.<\/p>\n<h3>\u00a0\u0648\u06cc\u0631\u0686\u0648\u0627\u0644 \u0647\u0627\u0633\u062a \u0686\u06cc\u0633\u062a\u061f<\/h3>\n<p>\u0648\u06cc\u0631\u0686\u0648\u0627\u0644 \u0647\u0627\u0633\u062a \u0622\u067e\u0627\u0686\u06cc \u0645\u062c\u0645\u0648\u0639\u0647 \u0627\u06cc \u0627\u0632 directive \u0647\u0627\u06cc \u067e\u06cc\u06a9\u0631\u0628\u0646\u062f\u06cc \u0627\u0633\u062a \u06a9\u0647 \u0628\u0647 \u0634\u0645\u0627 \u0627\u062c\u0627\u0632\u0647 \u0645\u06cc \u062f\u0647\u062f \u0647\u0631 \u0686\u0646\u062f \u0633\u0627\u06cc\u062a \u06a9\u0647 \u062f\u0648\u0633\u062a \u062f\u0627\u0634\u062a\u06cc\u062f \u0628\u0647 \u06a9\u0645\u06a9 \u06cc\u06a9 \u0648\u0628 \u0633\u0631\u0648\u0631 \u0645\u06cc\u0632\u0628\u0627\u0646\u06cc \u06a9\u0646\u06cc\u062f.<\/p>\n<p>\u0648\u0628 \u0633\u0631\u0648\u0631 \u0622\u067e\u0627\u0686\u06cc \u0627\u0632 \u062f\u0648 \u0646\u0648\u0639 \u0648\u06cc\u0631\u0686\u0648\u0627\u0644 \u0647\u0627\u0633\u062a \u067e\u0634\u062a\u06cc\u0628\u0627\u0646\u06cc \u0645\u06cc \u06a9\u0646\u062f:<\/p>\n<ul>\n<li>\u0648\u06cc\u0631\u0686\u0648\u0627\u0644 \u0647\u0627\u0633\u062a Name-based<\/li>\n<li>\u0648\u06cc\u0631\u0686\u0648\u0627\u0644 \u0647\u0627\u0633\u062a \u0645\u0628\u062a\u0646\u06cc \u0628\u0631 \u0627\u06cc \u067e\u06cc<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<p>\u0648\u06cc\u0631\u0686\u0648\u0627\u0644 \u0647\u0627\u0633\u062a Name-based \u0645\u0639\u0645\u0648\u0644\u0627 \u0628\u0631\u0627\u06cc \u0645\u06cc\u0632\u0628\u0627\u0646\u06cc \u0633\u0627\u06cc\u062a \u0647\u0627\u06cc \u0645\u062a\u0639\u062f\u062f \u0628\u0631 \u0631\u0648\u06cc \u06cc\u06a9 \u0633\u0631\u0648\u0631 \u0645\u0648\u0631\u062f \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0642\u0631\u0627\u0631 \u0645\u06cc \u06af\u06cc\u0631\u062f \u0627\u0645\u0627 \u0648\u06cc\u0631\u0686\u0648\u0627\u0644 \u0647\u0627\u0633\u062a \u0645\u0628\u062a\u0646\u06cc \u0628\u0631 \u0627\u06cc \u067e\u06cc \u0631\u0627 \u0645\u06cc \u062a\u0648\u0627\u0646 \u0628\u0631\u0627\u06cc \u067e\u06cc\u06a9\u0631\u0628\u0646\u062f\u06cc \u06cc\u06a9 \u0633\u0627\u06cc\u062a \u0628\u0631 \u0631\u0648\u06cc \u06cc\u06a9 \u0622\u06cc \u067e\u06cc \u0622\u062f\u0631\u0633 \u067e\u06cc\u06a9\u0631\u0628\u0646\u062f\u06cc \u06a9\u0631\u062f.\u00a0 \u062f\u0631 \u0627\u06cc\u0646 \u0622\u0645\u0648\u0632\u0634 \u0645\u0627 \u0646\u062d\u0648\u0647 \u0646\u0635\u0628 \u0648\u06cc\u0631\u0686\u0648\u0627\u0644 \u0647\u0627\u0633\u062a Name-based \u0631\u0627 \u0645\u0648\u0631\u062f \u0628\u0631\u0631\u0633\u06cc \u0642\u0631\u0627\u0631 \u062e\u0648\u0627\u0647\u06cc\u0645 \u062f\u0627\u062f. \u0628\u0631\u0627\u06cc \u0627\u06cc\u0646 \u0645\u0646\u0638\u0648 \u062f\u0648 \u0633\u0627\u06cc\u062a \u0631\u0627 \u0646\u0627\u0645 \u062f\u0627\u0645\u0646\u0647 Domain1.com \u0648 Domain2.com \u0645\u06cc\u0632\u0628\u0627\u0646\u06cc \u062e\u0648\u0627\u0647\u06cc\u0645 \u0646\u0645\u0648\u062f. \u0634\u0645\u0627 \u0645\u06cc \u062a\u0648\u0627\u0646\u06cc\u062f \u0627\u06cc\u0646 \u0647\u0627 \u0631\u0627 \u0628\u0627 \u062f\u0627\u0645\u0646\u0647 \u0647\u0627\u06cc \u0648\u0627\u0642\u0639\u06cc \u062e\u0648\u062f \u062c\u0627\u06cc\u06af\u0632\u06cc\u0646 \u06a9\u0646\u06cc\u062f.<\/p>\n<p><strong>\u00a0\u062f\u0627\u06cc\u0631\u06a9\u062a\u0648\u0631\u06cc Webroot \u0631\u0627 \u0627\u06cc\u062c\u0627\u062f \u06a9\u0646\u06cc\u062f:<\/strong><\/p>\n<p>\u0642\u0628\u0644 \u0627\u0632 \u0627\u06cc\u0646\u06a9\u0647 \u0628\u062e\u0648\u0627\u0647\u06cc\u062f \u0648\u06cc\u0631\u0686\u0648\u0627\u0644 \u0647\u0627\u0633\u062a \u0631\u0627 \u062a\u0646\u0638\u06cc\u0645 \u06a9\u0646\u06cc\u062f \u0628\u0627\u06cc\u062f \u06cc\u06a9 \u062f\u0627\u06cc\u0631\u06a9\u062a\u0648\u0631\u06cc \u0631\u0648\u062a \u0628\u0631\u0627\u06cc \u0633\u0627\u06cc\u062a \u0647\u0627\u06cc \u062e\u0648\u062f \u0627\u06cc\u062c\u0627\u062f \u0646\u0645\u0627\u06cc\u06cc\u062f.\u00a0 \u0628\u0647 \u06a9\u0645\u06a9 \u062f\u0633\u062a\u0648\u0631 \u0632\u06cc\u0631 \u0645\u0627 \u062f\u0627\u06cc\u0631\u06a9\u062a\u0648\u0631\u06cc <strong>\/var\/www\/<\/strong>html \u0631\u0627 \u0627\u06cc\u062c\u0627\u062f \u0645\u06cc \u06a9\u0646\u06cc\u0645:<\/p>\n<pre class=\"lang:default decode:true \">mkdir -p \/var\/www\/html\/domain1.com\r\n\r\nmkdir -p \/var\/www\/html\/domain2.com<\/pre>\n<p>&nbsp;<\/p>\n<p>\u062d\u0627\u0644\u0627 \u06cc\u06a9 \u0635\u0641\u062d\u0647 \u062f\u0645\u0648\u06cc \u062a\u0633\u062a \u0628\u0631\u0627\u06cc \u0647\u0631 \u062f\u0627\u0645\u0646\u0647 \u0627\u06cc\u062c\u0627\u062f \u0645\u06cc \u06a9\u0646\u06cc\u0645 \u062a\u0627 \u00a0\u0628\u0639\u062f\u0627 \u0628\u062a\u0648\u0627\u0646\u06cc\u0645 \u067e\u06cc\u06a9\u0631\u0628\u0646\u062f\u06cc \u0647\u0627\u06cc \u062e\u0648\u062f \u0631\u0627 \u062a\u0633\u062a \u06a9\u0646\u06cc\u0645. \u0628\u0647 \u062f\u0627\u06cc\u0631\u06a9\u062a\u0648\u0631\u06cc \u0631\u0648\u062a domain1.com \u0645\u06cc \u0631\u0648\u06cc\u0645:<\/p>\n<pre class=\"lang:default decode:true \">cd \/var\/www\/domain1.com<\/pre>\n<p>&nbsp;<\/p>\n<p>\u0628\u0647 \u06a9\u0645\u06a9 \u062f\u0633\u062a\u0648\u0631 \u0632\u06cc\u0631 \u06cc\u06a9 \u0635\u0641\u062d\u0647 Index.html \u062c\u062f\u06cc\u062f \u0627\u06cc\u062c\u0627\u062f \u0645\u06cc \u06a9\u0646\u06cc\u0645:<\/p>\n<pre class=\"lang:default decode:true \">nano index.html<\/pre>\n<p>&nbsp;<\/p>\n<p>\u0645\u062d\u062a\u0648\u0627\u06cc \u0632\u06cc\u0631 \u0631\u0627 \u0628\u0647 \u0622\u0646 \u0627\u0636\u0627\u0641\u0647 \u0645\u06cc \u06a9\u0646\u06cc\u0645:<\/p>\n<pre class=\"lang:default decode:true \">&lt;html&gt;\r\n\r\n\u00a0&lt;body&gt;\r\n\r\n\u00a0 &lt;center&gt;&lt;h1&gt;This is domain1.com!&lt;\/h1&gt;&lt;\/center&gt;\r\n\r\n\u00a0&lt;\/body&gt;\r\n\r\n&lt;\/html&gt;<\/pre>\n<p>&nbsp;<\/p>\n<p>\u062d\u0627\u0644\u0627 \u0647\u0645\u06cc\u0646 \u06a9\u0627\u0631 \u0631\u0627 \u0628\u0631\u0627\u06cc \u062f\u0627\u0645\u0646\u0647 \u0628\u0639\u062f\u06cc \u062a\u06a9\u0631\u0627\u0631 \u0645\u06cc \u0646\u0645\u0627\u06cc\u06cc\u0645:<\/p>\n<pre class=\"lang:default decode:true \">cd \/var\/www\/domain2.com\r\n\r\nnano index.html<\/pre>\n<p>&nbsp;<\/p>\n<p>\u0645\u062d\u062a\u0648\u0627\u06cc \u0632\u06cc\u0631 \u0631\u0627 \u0628\u0647 \u0622\u0646 \u0627\u0636\u0627\u0641\u0647 \u0645\u06cc \u06a9\u0646\u06cc\u0645:<\/p>\n<pre class=\"lang:default decode:true \">&lt;html&gt;\r\n\r\n\u00a0&lt;body&gt;\r\n\r\n\u00a0 &lt;center&gt;&lt;h1&gt;This is domain2.com!&lt;\/h1&gt;&lt;\/center&gt;\r\n\r\n\u00a0&lt;\/body&gt;\r\n\r\n&lt;\/html&gt;<\/pre>\n<p>&nbsp;<\/p>\n<p>\u062e\u0648\u0628 \u062d\u0627\u0644\u0627 \u0628\u0627 \u0645\u0648\u0641\u0642\u06cc\u062a \u0635\u0641\u062d\u0627\u062a \u062a\u0633\u062a \u0631\u0627 \u0628\u0631\u0627\u06cc \u0647\u0631 \u062f\u0648 \u062f\u0627\u0645\u0646\u0647 \u0627\u06cc\u062c\u0627\u062f \u06a9\u0631\u062f\u06cc\u0645. \u0628\u0631\u0627\u06cc \u0627\u06cc\u0646\u06a9\u0647 \u0648\u0628 \u0633\u0631\u0648\u0631 \u0628\u0647 \u0627\u06cc\u0646 \u0641\u0627\u06cc\u0644 \u0647\u0627 \u062f\u0633\u062a\u0631\u0633\u06cc \u062f\u0627\u0634\u062a\u0647 \u0628\u0627\u0634\u062f \u0628\u0627\u06cc\u062f \u062f\u0633\u062a\u0631\u0633\u06cc \u0645\u0646\u0627\u0633\u0628 \u0628\u0647 \u0622\u0646 \u0647\u0627 \u0628\u062f\u0647\u06cc\u0645\u00a0 \u0648 \u06af\u0631\u0648\u0647 \u0648 \u06a9\u0627\u0631\u0628\u0631 \u0631\u0627 \u0628\u0647 www-data \u062a\u0646\u0638\u06cc\u0645 \u0646\u0645\u0627\u06cc\u06cc\u0645. \u062f\u0633\u062a\u0631\u0633\u06cc \u0647\u0627 \u0631\u0627 \u0628\u0647 \u0635\u0648\u0631\u062a \u0632\u06cc\u0631 \u0628\u0647 \u0631\u0648\u0632 \u0645\u06cc \u06a9\u0646\u06cc\u0645:<\/p>\n<pre class=\"lang:default decode:true \">chown -R www-data: \/var\/www\/html<\/pre>\n<p>&nbsp;<\/p>\n<p><strong>\u0641\u0627\u06cc\u0644 \u0647\u0627\u06cc \u0648\u06cc\u0631\u0686\u0648\u0627\u0644 \u0647\u0627\u0633\u062a \u0631\u0627 \u0627\u06cc\u062c\u0627\u062f \u06a9\u0646\u06cc\u062f:<\/strong><\/p>\n<p>\u062d\u0627\u0644\u0627 \u0645\u06cc \u062a\u0648\u0627\u0646\u06cc\u0645 \u0641\u0627\u06cc\u0644 \u0647\u0627\u06cc \u0648\u06cc\u0631\u0686\u0648\u0627\u0644 \u0647\u0627\u0633\u062a \u062e\u0648\u062f \u0631\u0627 \u0627\u06cc\u062c\u0627\u062f \u06a9\u0646\u06cc\u0645. \u0641\u0627\u06cc\u0644 \u067e\u06cc\u06a9\u0631\u0628\u0646\u062f\u06cc \u0648\u06cc\u0631\u0686\u0648\u0627\u0644 \u0647\u0627\u0633\u062a \u0628\u0647 .conf \u00a0\u062e\u062a\u0645 \u0645\u06cc \u0634\u0648\u062f. \u062f\u0633\u062a\u0648\u0631 \u0632\u06cc\u0631 \u0631\u0627 \u0628\u0631\u0627\u06cc \u0627\u06cc\u062c\u0627\u062f \u0641\u0627\u06cc\u0644 \u067e\u06cc\u06a9\u0631\u0628\u0646\u062f\u06cc \u0648\u06cc\u0631\u0686\u0648\u0627\u0644 \u0647\u0627\u0633\u062a \u0628\u0631\u0627\u06cc \u0627\u0648\u0644\u06cc\u0646 \u062f\u0627\u0645\u0646\u0647 \u06cc\u0639\u0646\u06cc domain1.com \u0645\u0648\u0631\u062f \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0642\u0631\u0627\u0631 \u0645\u06cc \u06af\u06cc\u0631\u062f:<\/p>\n<p>&nbsp;<\/p>\n<pre class=\"lang:default decode:true \">nano \/etc\/apache2\/sites-available\/domain1.com.conf<\/pre>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>\u0645\u062d\u062a\u0648\u0627\u06cc \u0632\u06cc\u0631 \u0631\u0627 \u0628\u0647 \u0641\u0627\u06cc\u0644 \u0627\u0636\u0627\u0641\u0647 \u06a9\u0646\u06cc\u062f:<\/p>\n<pre class=\"lang:default decode:true \">&lt;VirtualHost *:80&gt;\r\n\r\n\r\n\r\nServerAdmin admin@domain1.com\r\n\r\nServerName domain1.com\r\n\r\nServerAlias www.domain1.com\r\n\r\nDocumentRoot \/var\/www\/html\/domain1.com\r\n\r\n\r\n\r\nErrorLog ${APACHE_LOG_DIR}\/domain1.com_error.log\r\n\r\nCustomLog ${APACHE_LOG_DIR}\/domain2.com_access.log combined\r\n\r\n\r\n\r\n&lt;\/VirtualHost&gt;\r\n\r\n<\/pre>\n<p>&nbsp;<\/p>\n<p>\u062d\u0627\u0644\u0627 \u0647\u0645\u06cc\u0646 \u06a9\u0627\u0631 \u0631\u0627 \u0628\u0631\u0627\u06cc \u062f\u0627\u0645\u0646\u0647 \u062f\u0648\u0645 \u062a\u06a9\u0631\u0627\u0631 \u0645\u06cc \u06a9\u0646\u06cc\u0645:<\/p>\n<pre class=\"lang:default decode:true \">nano \/etc\/apache2\/sites-available\/domain2.com.conf<\/pre>\n<p>&nbsp;<\/p>\n<p>\u06a9\u062f \u0632\u06cc\u0631 \u0631\u0627 \u0628\u0647 \u0622\u0646 \u0627\u0636\u0627\u0641\u0647 \u06a9\u0646\u06cc\u062f:<\/p>\n<pre class=\"lang:default decode:true \">&lt;VirtualHost *:80&gt;\r\n\r\n\r\n\r\nServerAdmin admin@domain2.com\r\n\r\nServerName domain2.com\r\n\r\nServerAlias www.domain2.com\r\n\r\nDocumentRoot \/var\/www\/html\/domain2.com\r\n\r\n\r\n\r\nErrorLog ${APACHE_LOG_DIR}\/domain2.com_error.log\r\n\r\nCustomLog ${APACHE_LOG_DIR}\/domain2.com_access.log combined\r\n\r\n\r\n\r\n&lt;\/VirtualHost&gt;<\/pre>\n<p>&nbsp;<\/p>\n<p>\u062e\u0637\u0648\u0637 \u0632\u06cc\u0631 \u0646\u0634\u0627\u0646 \u0645\u06cc \u062f\u0647\u062f \u0648\u06cc\u0631\u0686\u0648\u0627\u0644 \u0647\u0627\u0633\u062a \u06a9\u0627\u0631 listening \u0631\u0627 \u062f\u0631 \u067e\u0648\u0631\u062a 80 \u0627\u0646\u062c\u0627\u0645 \u0645\u06cc \u062f\u0647\u062f:<\/p>\n<pre class=\"lang:default decode:true \">&lt;VirtualHost *:80&gt;<\/pre>\n<p>&nbsp;<\/p>\n<p>\u0639\u0628\u0627\u0631\u062a ServerAdmin \u0622\u062f\u0631\u0633 \u0627\u0631\u062a\u0628\u0627\u0637\u06cc \u0631\u0627 \u062a\u0646\u0638\u06cc\u0645 \u0645\u06cc \u06a9\u0646\u062f \u06a9\u0647 \u0633\u0631\u0648\u0631 \u0627\u0646 \u0631\u0627 \u062f\u0631 \u0647\u0631 \u067e\u06cc\u0627\u0645 \u062e\u0637\u0627\u06cc\u06cc \u06a9\u0647 \u0628\u0647 \u06a9\u0644\u0627\u06cc\u0646\u062a \u0628\u0627\u0632 \u0645\u06cc \u06af\u0631\u062f\u0627\u0646\u062f \u0642\u0631\u0627\u0631 \u0645\u06cc \u062f\u0647\u062f. \u0634\u0645\u0627 \u0628\u0627\u06cc\u062f \u0627\u0632 \u0622\u062f\u0631\u0633 \u0627\u06cc\u0645\u06cc\u0644 \u062e\u0648\u062f \u062f\u0631 \u0627\u06cc\u0646 \u0628\u062e\u0634 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u06a9\u0646\u06cc\u062f:<\/p>\n<pre class=\"lang:default decode:true \">ServerAdmin admin@domain1.com<\/pre>\n<p>&nbsp;<\/p>\n<p>\u0639\u0628\u0627\u0631\u062a ServerName \u062f\u0631 \u0627\u06cc\u0646 \u062f\u0633\u062a\u0648\u0631\u060c \u0646\u0627\u0645 \u062f\u0627\u0645\u0646\u0647 \u0648 ServerAlias \u0646\u0634\u0627\u0646 \u062f\u0647\u0646\u062f\u0647 \u0646\u0627\u0645 \u0647\u0627\u06cc \u0627\u0636\u0627\u0641\u06cc \u0627\u0633\u062a \u06a9\u0647 \u0628\u0627\u06cc\u062f \u0645\u0646\u0637\u0628\u0642 \u0628\u0627 \u062f\u0627\u0645\u0646\u0647 \u0627\u0635\u0644\u06cc \u0628\u0627\u0634\u062f:<\/p>\n<pre class=\"lang:default decode:true \">ServerName domain1.com\r\n\r\nServerAlias www.domain1.com<\/pre>\n<p>&nbsp;<\/p>\n<p>\u0639\u0628\u0627\u0631\u062a DocumentRoot \u0645\u0648\u0642\u0639\u06cc\u062a\u06cc \u0631\u0627 \u0645\u0634\u062e\u0635 \u0645\u06cc \u06a9\u0646\u062f \u06a9\u0647 \u0622\u067e\u0627\u0686\u06cc \u0628\u0647 \u0647\u0646\u06af\u0627\u0645 \u067e\u0631\u062f\u0627\u0632\u0634 \u062f\u0631\u062e\u0648\u0627\u0633\u062a \u0628\u0631\u0627\u06cc \u062f\u0627\u0645\u0646\u0647 \u062a\u0639\u0631\u06cc\u0641 \u0634\u062f\u0647 \u0628\u0627\u06cc\u062f \u0645\u0648\u0631\u062f \u0628\u0631\u0631\u0633\u06cc \u0642\u0631\u0627\u0631 \u062f\u0647\u062f:<\/p>\n<pre class=\"lang:default decode:true \">DocumentRoot \/var\/www\/html\/domain1.com<\/pre>\n<p>&nbsp;<\/p>\n<p>\u062f\u0648 \u062e\u0637\u0631 \u0622\u062e\u0631 \u0645\u0648\u0642\u0639\u06cc\u062a \u0641\u0627\u06cc\u0644 \u0644\u0627\u06af \u0631\u0627 \u062a\u0639\u06cc\u06cc\u0646 \u0645\u06cc \u06a9\u0646\u062f:<\/p>\n<pre class=\"lang:default decode:true \">ErrorLog ${APACHE_LOG_DIR}\/domain1.com_error.log\r\n\r\nCustomLog ${APACHE_LOG_DIR}\/domain1.com_access.log combined<\/pre>\n<p>&nbsp;<\/p>\n<p><strong>\u0641\u0639\u0627\u0644\u0633\u0627\u0632\u06cc \u0648\u06cc\u0631\u0686\u0648\u0627\u0644 \u0647\u0627\u0633\u062a:<\/strong><\/p>\n<p>\u0645\u0631\u062d\u0644\u0647 \u0628\u0639\u062f\u06cc \u0641\u0639\u0627\u0644 \u06a9\u0631\u062f\u0646 \u0648\u06cc\u0631\u0686\u0648\u0627\u0644 \u0647\u0627\u0633\u062a\u06cc \u0627\u0633\u062a \u06a9\u0647 \u0627\u06cc\u062c\u0627\u062f \u06a9\u0631\u062f\u0647 \u0627\u06cc\u0645. \u0634\u0645\u0627 \u0645\u06cc \u062a\u0648\u0627\u0646\u06cc\u062f \u0627\u06cc\u0646\u06a9\u0627\u0631 \u0631\u0627 \u0628\u0647 \u06a9\u0645\u06a9 \u062f\u0633\u062a\u0648\u0631\u0627\u062a \u0632\u06cc\u0631 \u0627\u0646\u062c\u0627\u0645 \u062f\u0647\u06cc\u062f:<\/p>\n<pre class=\"lang:default decode:true \">a2ensite domain1.com.conf\r\n\r\na2ensite domain2.com.conf<\/pre>\n<p>&nbsp;<\/p>\n<p>\u0631\u0648\u0634 \u062f\u06cc\u06af\u0631 \u0628\u0631\u0627\u06cc \u0627\u0646\u062c\u0627\u0645 \u0627\u06cc\u0646\u06a9\u0627\u0631 \u0627\u06cc\u062c\u0627\u062f \u0644\u06cc\u0646\u06a9 \u0628\u0631\u0627\u06cc \u0647\u0631 \u0648\u06cc\u0631\u0686\u0648\u0627\u0644 \u0647\u0627\u0633\u062a \u062f\u0631 \/etc\/apache2\/sites-enabled \u0627\u0633\u062a:<\/p>\n<pre class=\"lang:default decode:true \">ln -s \/etc\/apache2\/sites-available\/domain1.com.conf \/etc\/apache2\/sites-enabled\/\r\n\r\nln -s \/etc\/apache2\/sites-available\/domain2.com.conf \/etc\/apache2\/sites-enabled\/<\/pre>\n<p>&nbsp;<\/p>\n<p>\u0628\u0639\u062f \u0627\u0632 \u0627\u06cc\u0646\u06a9\u0647 \u0648\u06cc\u0631\u0686\u0648\u0627\u0644 \u0647\u0627\u0633\u062a \u0631\u0627 \u0641\u0639\u0627\u0644 \u06a9\u0631\u062f\u06cc\u062f\u060c \u0628\u0627\u06cc\u062f \u0648\u0628 \u0633\u0631\u0648\u0631 \u0622\u067e\u0627\u0686\u06cc \u0631\u0627 \u0631\u06cc\u0633\u062a\u0627\u0631\u062a \u06a9\u0646\u06cc\u062f:<\/p>\n<pre class=\"lang:default decode:true \">systemctl restart apache2<\/pre>\n<p>&nbsp;<\/p>\n<p>\u0627\u06af\u0631 \u0647\u0645\u0647 \u062f\u0633\u062a\u0648\u0631\u0627\u062a \u0631\u0627 \u062f\u0631\u0633\u062a \u062f\u0646\u0628\u0627\u0644 \u06a9\u0631\u062f\u0647 \u0628\u0627\u0634\u06cc\u062f \u0628\u0627\u06cc\u062f \u0628\u062a\u0648\u0627\u0646\u06cc\u062f \u0647\u0631 \u062f\u0627\u0645\u0646\u0647 \u0631\u0627 \u062f\u0631 \u0645\u0631\u0648\u0631\u06af\u0631 \u0628\u0627\u0632 \u06a9\u0646\u06cc\u062f \u0648 \u0646\u062a\u0627\u06cc\u062c \u0631\u0627 \u0628\u0628\u06cc\u0646\u06cc\u062f.<\/p>\n\n\n<div class=\"kk-star-ratings kksr-auto kksr-align-right kksr-valign-bottom\"\n    data-payload='{&quot;align&quot;:&quot;right&quot;,&quot;id&quot;:&quot;2908&quot;,&quot;slug&quot;:&quot;default&quot;,&quot;valign&quot;:&quot;bottom&quot;,&quot;ignore&quot;:&quot;&quot;,&quot;reference&quot;:&quot;auto&quot;,&quot;class&quot;:&quot;&quot;,&quot;count&quot;:&quot;0&quot;,&quot;legendonly&quot;:&quot;&quot;,&quot;readonly&quot;:&quot;&quot;,&quot;score&quot;:&quot;0&quot;,&quot;starsonly&quot;:&quot;&quot;,&quot;best&quot;:&quot;5&quot;,&quot;gap&quot;:&quot;5&quot;,&quot;greet&quot;:&quot;Rate this post&quot;,&quot;legend&quot;:&quot;0\\\/5 - (0 \u0627\u0645\u062a\u06cc\u0627\u0632)&quot;,&quot;size&quot;:&quot;24&quot;,&quot;title&quot;:&quot;\u0686\u06af\u0648\u0646\u0647 \u0647\u0627\u0633\u062a \u0645\u062c\u0627\u0632\u06cc \u0622\u067e\u0627\u0686\u06cc \u0631\u0627 \u0628\u0631 \u0631\u0648\u06cc \u062f\u0628\u06cc\u0627\u0646 9 \u0646\u0635\u0628 \u06a9\u0646\u06cc\u0645\u061f&quot;,&quot;width&quot;:&quot;0&quot;,&quot;_legend&quot;:&quot;{score}\\\/{best} - ({count} {votes})&quot;,&quot;font_factor&quot;:&quot;1.25&quot;}'>\n            \n<div class=\"kksr-stars\">\n    \n<div class=\"kksr-stars-inactive\">\n            <div class=\"kksr-star\" data-star=\"1\" style=\"padding-left: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" data-star=\"2\" style=\"padding-left: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" data-star=\"3\" style=\"padding-left: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" data-star=\"4\" style=\"padding-left: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" data-star=\"5\" style=\"padding-left: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n    <\/div>\n    \n<div class=\"kksr-stars-active\" style=\"width: 0px;\">\n            <div class=\"kksr-star\" style=\"padding-left: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" style=\"padding-left: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" style=\"padding-left: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" style=\"padding-left: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" style=\"padding-left: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n    <\/div>\n<\/div>\n                \n\n<div class=\"kksr-legend\" style=\"font-size: 19.2px;\">\n            <span class=\"kksr-muted\">Rate this post<\/span>\n    <\/div>\n    <\/div>\n","protected":false},"excerpt":{"rendered":"<p>\u0622\u067e\u0627\u0686\u06cc \u0648\u0628 \u0633\u0631\u0648\u0631 \u0645\u062a\u0646 \u0628\u0627\u0632 \u0648 \u0631\u0627\u06cc\u06af\u0627\u0646\u06cc \u0627\u0633\u062a \u06a9\u0647 \u062f\u0631 \u0627\u062e\u062a\u06cc\u0627\u0631 \u0627\u0641\u0631\u0627\u062f \u0642\u0631\u0627\u0631 \u062f\u0627\u0631\u062f. \u0627\u06cc\u0646 \u0648\u0628 \u0633\u0631\u0648\u0631 \u06cc\u06a9\u06cc \u0627\u0632 \u0648\u0628 \u0633\u0631\u0648\u0631\u0647\u0627\u06cc \u0645\u062d\u0628\u0648\u0628 \u0648 \u067e\u0631\u06a9\u0627\u0631\u0628\u0631\u062f \u062f\u0631 \u0633\u0631\u062a\u0627\u0633\u0631 \u062c\u0647\u0627\u0646 \u0627\u0633\u062a \u0648 \u0639\u0645\u062f\u062a\u0627 \u062f\u0631 \u0633\u0631\u0648\u0631\u0647\u0627\u06cc \u0644\u06cc\u0646\u0648\u06a9\u0633\u06cc \u0628\u0647 \u06a9\u0627\u0631 \u0645\u06cc \u0631\u0648\u062f.\u00a0 \u062f\u0631 \u0627\u06cc\u0646 \u0645\u0642\u0627\u0644\u0647 \u0642\u0635\u062f \u062f\u0627\u0631\u06cc\u0645 \u0648\u06cc\u0631\u0686\u0648\u0627\u0644 \u0647\u0627\u0633\u062a \u0631\u0627 \u0628\u0631 \u0631\u0648\u06cc \u062f\u0628\u06cc\u0627\u0646 9 \u0646\u0635\u0628 \u06a9\u0646\u06cc\u0645. \u067e\u0633 \u0647\u0645\u0631\u0627\u0647 \u0648\u0628 \u0627\u06cc\u062f\u0647 &hellip;<\/p>\n","protected":false},"author":8,"featured_media":2632,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[1372,1370,3],"tags":[1329,1538,2246,2009,2245],"class_list":["post-2908","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-debian","category-linux","category-web-articles","tag-1329","tag-1538","tag-2246","tag-2009","tag-2245"],"views":"329","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/parry3-KU","jetpack_featured_media_url":"https:\/\/webide.ir\/blog\/wp-content\/uploads\/2018\/04\/apache-web-server-htaccess.png","_links":{"self":[{"href":"https:\/\/webide.ir\/blog\/wp-json\/wp\/v2\/posts\/2908","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/webide.ir\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/webide.ir\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/webide.ir\/blog\/wp-json\/wp\/v2\/users\/8"}],"replies":[{"embeddable":true,"href":"https:\/\/webide.ir\/blog\/wp-json\/wp\/v2\/comments?post=2908"}],"version-history":[{"count":0,"href":"https:\/\/webide.ir\/blog\/wp-json\/wp\/v2\/posts\/2908\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/webide.ir\/blog\/wp-json\/wp\/v2\/media\/2632"}],"wp:attachment":[{"href":"https:\/\/webide.ir\/blog\/wp-json\/wp\/v2\/media?parent=2908"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/webide.ir\/blog\/wp-json\/wp\/v2\/categories?post=2908"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/webide.ir\/blog\/wp-json\/wp\/v2\/tags?post=2908"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}