{"id":1069,"date":"2020-12-23T18:18:09","date_gmt":"2020-12-23T18:18:09","guid":{"rendered":"http:\/\/feellikelearning.com\/?p=1069"},"modified":"2020-12-23T18:20:22","modified_gmt":"2020-12-23T18:20:22","slug":"cn-how-to-set-up-multiple-websites-using-apache2","status":"publish","type":"post","link":"https:\/\/feellikelearning.com\/index.php\/2020\/12\/23\/cn-how-to-set-up-multiple-websites-using-apache2\/","title":{"rendered":"\u600e\u6837\u7528apache2\u8bbe\u7f6e\u591a\u4e2a\u7f51\u7ad9? | How to set up multiple websites using apache2?"},"content":{"rendered":"\n<h2>\u6dfb\u52a0\u7f51\u7ad9\u5185\u5bb9<\/h2>\n\n\n\n<p>Ubuntu\u91ccapache2\u7684\u7f51\u7ad9\u5185\u5bb9\u5728<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\/var\/www\/html\/<\/code><\/pre>\n\n\n\n<p>\u6211\u4eec\u53ef\u4ee5\u628a\u7f51\u7ad9\u5185\u5bb9(php, html files)\u653e\u5728\u4e0a\u9762\u8def\u5f84\u7684\u5b50\u8def\u5f84\u4e2d, \u6bd4\u5982<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\/var\/www\/html\/site1\n\/var\/www\/html\/site2<\/code><\/pre>\n\n\n\n<h2>\u8bbe\u7f6eApache2<\/h2>\n\n\n\n<p>\u672c\u6587\u4ee5Ubuntu\u4e3a\u4f8b\u5b50. \u6211\u4eec\u9700\u8981\u8bbe\u7f6e\u7684\u6587\u4ef6\u5728<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\/etc\/apache2<\/code><\/pre>\n\n\n\n<p>\u9996\u5148\u8981\u5728sites-available\u91cc\u6dfb\u52a0\u65b0\u7684\u7f51\u7ad9, \u6bd4\u5982\u53ebsite1<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>cd \/etc\/apache2\/sites-available\nvim site1.conf<\/code><\/pre>\n\n\n\n<p>\u6dfb\u52a0\u6587\u4ef6\u5185\u5bb9\u5982\u4e0b<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;VirtualHost *:80&gt;\n\t# The ServerName directive sets the request scheme, hostname and port that\n\t# the server uses to identify itself. This is used when creating\n\t# redirection URLs. In the context of virtual hosts, the ServerName\n\t# specifies what hostname must appear in the request's Host: header to\n\t# match this virtual host. For the default virtual host (this file) this\n\t# value is not decisive as it is used as a last resort host regardless.\n\t# However, you must set it for any further virtual host explicitly.\n\t#ServerName www.example.com\n\n\tServerAdmin webmaster@localhost\n\tServerName site1.com\n\tServerAlias www.site1.com\n\tDocumentRoot \/var\/www\/html\/site1\n\n\t# Available loglevels: trace8, ..., trace1, debug, info, notice, warn,\n\t# error, crit, alert, emerg.\n\t# It is also possible to configure the loglevel for particular\n\t# modules, e.g.\n\t#LogLevel info ssl:warn\n\n\tErrorLog ${APACHE_LOG_DIR}\/error.log\n\tCustomLog ${APACHE_LOG_DIR}\/access.log combined\n\n\t# For most configuration files from conf-available\/, which are\n\t# enabled or disabled at a global level, it is possible to\n\t# include a line for only one particular virtual host. For example the\n\t# following line enables the CGI configuration for this host only\n\t# after it has been globally disabled with \"a2disconf\".\n\t#Include conf-available\/serve-cgi-bin.conf\n&lt;\/VirtualHost&gt;<\/code><\/pre>\n\n\n\n<p>\u7136\u540e\u6dfb\u52a0\u7b2c\u4e8c\u4e2a\u7f51\u7ad9, \u6bd4\u5982\u53ebsite2<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>cd \/etc\/apache2\/sites-available\nvim site2.conf<\/code><\/pre>\n\n\n\n<p>\u7ed9site2\u6dfb\u52a0\u5185\u5bb9<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;VirtualHost *:80&gt;\n\t# The ServerName directive sets the request scheme, hostname and port that\n\t# the server uses to identify itself. This is used when creating\n\t# redirection URLs. In the context of virtual hosts, the ServerName\n\t# specifies what hostname must appear in the request's Host: header to\n\t# match this virtual host. For the default virtual host (this file) this\n\t# value is not decisive as it is used as a last resort host regardless.\n\t# However, you must set it for any further virtual host explicitly.\n\t#ServerName www.example.com\n\n\tServerAdmin webmaster@localhost\n\tServerName site2.com\n\tServerAlias www.site2.com\n\tDocumentRoot \/var\/www\/html\/site2\n\n\t# Available loglevels: trace8, ..., trace1, debug, info, notice, warn,\n\t# error, crit, alert, emerg.\n\t# It is also possible to configure the loglevel for particular\n\t# modules, e.g.\n\t#LogLevel info ssl:warn\n\n\tErrorLog ${APACHE_LOG_DIR}\/error.log\n\tCustomLog ${APACHE_LOG_DIR}\/access.log combined\n\n\t# For most configuration files from conf-available\/, which are\n\t# enabled or disabled at a global level, it is possible to\n\t# include a line for only one particular virtual host. For example the\n\t# following line enables the CGI configuration for this host only\n\t# after it has been globally disabled with \"a2disconf\".\n\t#Include conf-available\/serve-cgi-bin.conf\n&lt;\/VirtualHost&gt;<\/code><\/pre>\n\n\n\n<p>\u6700\u540e\u9700\u8981\u7ed9\u4ee5\u4e0a\u4e24\u4e2asite\u7684conf file\u521b\u5efasymbolic link, \u653e\u5728sites-enabled\u91cc<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>ln -s \/etc\/apache2\/sites-available\/site1.conf \/etc\/apache2\/sites-enabled\/site1.conf\nln -s \/etc\/apache2\/sites-available\/site2.conf \/etc\/apache2\/sites-enabled\/site2.conf<\/code><\/pre>\n\n\n\n<p>\u53ef\u80fd\u9700\u8981\u91cd\u542fapache2<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo service apache2 restart<\/code><\/pre>\n\n\n\n<h2>\u66f4\u65b0\u57df\u540d\u6307\u5411<\/h2>\n\n\n\n<p>\u4ee5Namecheap\u4e3a\u4f8b\u5b50, \u5230\u6240\u9009\u57df\u540d, \u6bd4\u5982site1.com\u91cc, \u70b9\u51fbManage, \u7136\u540e\u5728Advanced DNS\u91cc, \u5982\u4e0b\u8bbe\u7f6e<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" width=\"1920\" height=\"1080\" src=\"http:\/\/feellikelearning.com\/wp-content\/uploads\/2020\/12\/blog-covers.021-1.jpeg\" alt=\"\" class=\"wp-image-1075\"\/><figcaption>Namecheap Advanced DNS setup<\/figcaption><\/figure>\n\n\n\n<p>\u7ed9site2\u4e5f\u505a\u7c7b\u4f3c\u7684\u914d\u7f6e, \u56e0\u4e3a\u90fd\u5728\u540c\u4e00\u53f0\u670d\u52a1\u5668\u4e0a, host ip\u662f\u4e00\u6837\u7684, \u628asite1.com\u6362\u6210site2.com\u5c31\u53ef\u4ee5<\/p>\n\n\n\n<p>\u6700\u540e\u5728\u6d4f\u89c8\u5668\u6253\u5f00site1.com\u548csite2.com\u770b\u770b\u662f\u5426\u6b63\u5e38\u5de5\u4f5c. <\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6dfb\u52a0\u7f51\u7ad9\u5185\u5bb9 Ubuntu\u91ccapache2\u7684\u7f51\u7ad9\u5185\u5bb9\u5728 \u6211\u4eec\u53ef\u4ee5\u628a\u7f51\u7ad9\u5185\u5bb9(php, html files)\u653e\u5728\u4e0a\u9762\u8def\u5f84\u7684\u5b50\u8def\u5f84\u4e2d, \u6bd4\u5982 \u8bbe\u7f6eApache2 \u672c\u6587\u4ee5Ubuntu\u4e3a\u4f8b\u5b50. \u6211\u4eec\u9700\u8981\u8bbe\u7f6e\u7684\u6587\u4ef6\u5728 \u9996\u5148\u8981\u5728sites-available\u91cc\u6dfb\u52a0\u65b0\u7684\u7f51\u7ad9, \u6bd4\u5982\u53ebsite1 \u6dfb\u52a0\u6587\u4ef6\u5185\u5bb9\u5982\u4e0b \u7136\u540e\u6dfb\u52a0\u7b2c\u4e8c\u4e2a\u7f51\u7ad9, \u6bd4\u5982\u53ebsite2 \u7ed9site2\u6dfb\u52a0\u5185\u5bb9 \u6700\u540e\u9700\u8981\u7ed9\u4ee5\u4e0a\u4e24\u4e2asite\u7684conf file\u521b\u5efasymbolic link, \u653e\u5728sites-enabled\u91cc \u53ef\u80fd\u9700\u8981\u91cd\u542fapache2 \u66f4\u65b0\u57df\u540d\u6307\u5411 \u4ee5Namecheap\u4e3a\u4f8b\u5b50, \u5230\u6240\u9009\u57df\u540d, \u6bd4\u5982site1.com\u91cc, \u70b9\u51fbManage, \u7136\u540e\u5728Advanced DNS\u91cc, \u5982\u4e0b\u8bbe\u7f6e \u7ed9site2\u4e5f\u505a\u7c7b\u4f3c\u7684\u914d\u7f6e, \u56e0\u4e3a\u90fd\u5728\u540c\u4e00\u53f0\u670d\u52a1\u5668\u4e0a, host ip\u662f\u4e00\u6837\u7684, \u628asite1.com\u6362\u6210site2.com\u5c31\u53ef\u4ee5 \u6700\u540e\u5728\u6d4f\u89c8\u5668\u6253\u5f00site1.com\u548csite2.com\u770b\u770b\u662f\u5426\u6b63\u5e38\u5de5\u4f5c.<\/p>\n","protected":false},"author":1,"featured_media":1076,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_mi_skip_tracking":false},"categories":[1],"tags":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v19.10 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u600e\u6837\u7528apache2\u8bbe\u7f6e\u591a\u4e2a\u7f51\u7ad9? | How to set up multiple websites using apache2? | Feel Like Learning<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/feellikelearning.com\/index.php\/2020\/12\/23\/cn-how-to-set-up-multiple-websites-using-apache2\/?variant=zh-hant\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u600e\u6837\u7528apache2\u8bbe\u7f6e\u591a\u4e2a\u7f51\u7ad9? | How to set up multiple websites using apache2? | Feel Like Learning\" \/>\n<meta property=\"og:description\" content=\"\u6dfb\u52a0\u7f51\u7ad9\u5185\u5bb9 Ubuntu\u91ccapache2\u7684\u7f51\u7ad9\u5185\u5bb9\u5728 \u6211\u4eec\u53ef\u4ee5\u628a\u7f51\u7ad9\u5185\u5bb9(php, html files)\u653e\u5728\u4e0a\u9762\u8def\u5f84\u7684\u5b50\u8def\u5f84\u4e2d, \u6bd4\u5982 \u8bbe\u7f6eApache2 \u672c\u6587\u4ee5Ubuntu\u4e3a\u4f8b\u5b50. \u6211\u4eec\u9700\u8981\u8bbe\u7f6e\u7684\u6587\u4ef6\u5728 \u9996\u5148\u8981\u5728sites-available\u91cc\u6dfb\u52a0\u65b0\u7684\u7f51\u7ad9, \u6bd4\u5982\u53ebsite1 \u6dfb\u52a0\u6587\u4ef6\u5185\u5bb9\u5982\u4e0b \u7136\u540e\u6dfb\u52a0\u7b2c\u4e8c\u4e2a\u7f51\u7ad9, \u6bd4\u5982\u53ebsite2 \u7ed9site2\u6dfb\u52a0\u5185\u5bb9 \u6700\u540e\u9700\u8981\u7ed9\u4ee5\u4e0a\u4e24\u4e2asite\u7684conf file\u521b\u5efasymbolic link, \u653e\u5728sites-enabled\u91cc \u53ef\u80fd\u9700\u8981\u91cd\u542fapache2 \u66f4\u65b0\u57df\u540d\u6307\u5411 \u4ee5Namecheap\u4e3a\u4f8b\u5b50, \u5230\u6240\u9009\u57df\u540d, \u6bd4\u5982site1.com\u91cc, \u70b9\u51fbManage, \u7136\u540e\u5728Advanced DNS\u91cc, \u5982\u4e0b\u8bbe\u7f6e \u7ed9site2\u4e5f\u505a\u7c7b\u4f3c\u7684\u914d\u7f6e, \u56e0\u4e3a\u90fd\u5728\u540c\u4e00\u53f0\u670d\u52a1\u5668\u4e0a, host ip\u662f\u4e00\u6837\u7684, \u628asite1.com\u6362\u6210site2.com\u5c31\u53ef\u4ee5 \u6700\u540e\u5728\u6d4f\u89c8\u5668\u6253\u5f00site1.com\u548csite2.com\u770b\u770b\u662f\u5426\u6b63\u5e38\u5de5\u4f5c.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/feellikelearning.com\/index.php\/2020\/12\/23\/cn-how-to-set-up-multiple-websites-using-apache2\/?variant=zh-hant\" \/>\n<meta property=\"og:site_name\" content=\"Feel Like Learning\" \/>\n<meta property=\"article:published_time\" content=\"2020-12-23T18:18:09+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2020-12-23T18:20:22+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/feellikelearning.com\/wp-content\/uploads\/2020\/12\/blog-covers.022.jpeg\" \/>\n\t<meta property=\"og:image:width\" content=\"1920\" \/>\n\t<meta property=\"og:image:height\" content=\"1080\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"feellikelearning\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"feellikelearning\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/feellikelearning.com\/index.php\/2020\/12\/23\/cn-how-to-set-up-multiple-websites-using-apache2\/?variant=zh-hant#article\",\"isPartOf\":{\"@id\":\"https:\/\/feellikelearning.com\/index.php\/2020\/12\/23\/cn-how-to-set-up-multiple-websites-using-apache2\/?variant=zh-hant\"},\"author\":{\"name\":\"feellikelearning\",\"@id\":\"https:\/\/feellikelearning.com\/#\/schema\/person\/91fb815bebebf166c217b5e3764d437a\"},\"headline\":\"\u600e\u6837\u7528apache2\u8bbe\u7f6e\u591a\u4e2a\u7f51\u7ad9? | How to set up multiple websites using apache2?\",\"datePublished\":\"2020-12-23T18:18:09+00:00\",\"dateModified\":\"2020-12-23T18:20:22+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/feellikelearning.com\/index.php\/2020\/12\/23\/cn-how-to-set-up-multiple-websites-using-apache2\/?variant=zh-hant\"},\"wordCount\":48,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/feellikelearning.com\/#\/schema\/person\/91fb815bebebf166c217b5e3764d437a\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/feellikelearning.com\/index.php\/2020\/12\/23\/cn-how-to-set-up-multiple-websites-using-apache2\/?variant=zh-hant#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/feellikelearning.com\/index.php\/2020\/12\/23\/cn-how-to-set-up-multiple-websites-using-apache2\/?variant=zh-hant\",\"url\":\"https:\/\/feellikelearning.com\/index.php\/2020\/12\/23\/cn-how-to-set-up-multiple-websites-using-apache2\/?variant=zh-hant\",\"name\":\"\u600e\u6837\u7528apache2\u8bbe\u7f6e\u591a\u4e2a\u7f51\u7ad9? | How to set up multiple websites using apache2? | Feel Like Learning\",\"isPartOf\":{\"@id\":\"https:\/\/feellikelearning.com\/#website\"},\"datePublished\":\"2020-12-23T18:18:09+00:00\",\"dateModified\":\"2020-12-23T18:20:22+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/feellikelearning.com\/index.php\/2020\/12\/23\/cn-how-to-set-up-multiple-websites-using-apache2\/?variant=zh-hant#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/feellikelearning.com\/index.php\/2020\/12\/23\/cn-how-to-set-up-multiple-websites-using-apache2\/?variant=zh-hant\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/feellikelearning.com\/index.php\/2020\/12\/23\/cn-how-to-set-up-multiple-websites-using-apache2\/?variant=zh-hant#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/feellikelearning.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u600e\u6837\u7528apache2\u8bbe\u7f6e\u591a\u4e2a\u7f51\u7ad9? | How to set up multiple websites using apache2?\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/feellikelearning.com\/#website\",\"url\":\"https:\/\/feellikelearning.com\/\",\"name\":\"Feel Like Learning\",\"description\":\"\u7a0b\u5e8f\uff5c\u751f\u6d3b\uff5c\u5b66\u5230\u5c31\u662f\u8d5a\u5230\",\"publisher\":{\"@id\":\"https:\/\/feellikelearning.com\/#\/schema\/person\/91fb815bebebf166c217b5e3764d437a\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/feellikelearning.com\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\/\/feellikelearning.com\/#\/schema\/person\/91fb815bebebf166c217b5e3764d437a\",\"name\":\"feellikelearning\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/feellikelearning.com\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/72a1e86e9dcb0332e88bd7d54fd36c28?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/72a1e86e9dcb0332e88bd7d54fd36c28?s=96&d=mm&r=g\",\"caption\":\"feellikelearning\"},\"logo\":{\"@id\":\"https:\/\/feellikelearning.com\/#\/schema\/person\/image\/\"},\"url\":\"https:\/\/feellikelearning.com\/index.php\/author\/feellikelearning\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\u600e\u6837\u7528apache2\u8bbe\u7f6e\u591a\u4e2a\u7f51\u7ad9? | How to set up multiple websites using apache2? | Feel Like Learning","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:\/\/feellikelearning.com\/index.php\/2020\/12\/23\/cn-how-to-set-up-multiple-websites-using-apache2\/?variant=zh-hant","og_locale":"en_US","og_type":"article","og_title":"\u600e\u6837\u7528apache2\u8bbe\u7f6e\u591a\u4e2a\u7f51\u7ad9? | How to set up multiple websites using apache2? | Feel Like Learning","og_description":"\u6dfb\u52a0\u7f51\u7ad9\u5185\u5bb9 Ubuntu\u91ccapache2\u7684\u7f51\u7ad9\u5185\u5bb9\u5728 \u6211\u4eec\u53ef\u4ee5\u628a\u7f51\u7ad9\u5185\u5bb9(php, html files)\u653e\u5728\u4e0a\u9762\u8def\u5f84\u7684\u5b50\u8def\u5f84\u4e2d, \u6bd4\u5982 \u8bbe\u7f6eApache2 \u672c\u6587\u4ee5Ubuntu\u4e3a\u4f8b\u5b50. \u6211\u4eec\u9700\u8981\u8bbe\u7f6e\u7684\u6587\u4ef6\u5728 \u9996\u5148\u8981\u5728sites-available\u91cc\u6dfb\u52a0\u65b0\u7684\u7f51\u7ad9, \u6bd4\u5982\u53ebsite1 \u6dfb\u52a0\u6587\u4ef6\u5185\u5bb9\u5982\u4e0b \u7136\u540e\u6dfb\u52a0\u7b2c\u4e8c\u4e2a\u7f51\u7ad9, \u6bd4\u5982\u53ebsite2 \u7ed9site2\u6dfb\u52a0\u5185\u5bb9 \u6700\u540e\u9700\u8981\u7ed9\u4ee5\u4e0a\u4e24\u4e2asite\u7684conf file\u521b\u5efasymbolic link, \u653e\u5728sites-enabled\u91cc \u53ef\u80fd\u9700\u8981\u91cd\u542fapache2 \u66f4\u65b0\u57df\u540d\u6307\u5411 \u4ee5Namecheap\u4e3a\u4f8b\u5b50, \u5230\u6240\u9009\u57df\u540d, \u6bd4\u5982site1.com\u91cc, \u70b9\u51fbManage, \u7136\u540e\u5728Advanced DNS\u91cc, \u5982\u4e0b\u8bbe\u7f6e \u7ed9site2\u4e5f\u505a\u7c7b\u4f3c\u7684\u914d\u7f6e, \u56e0\u4e3a\u90fd\u5728\u540c\u4e00\u53f0\u670d\u52a1\u5668\u4e0a, host ip\u662f\u4e00\u6837\u7684, \u628asite1.com\u6362\u6210site2.com\u5c31\u53ef\u4ee5 \u6700\u540e\u5728\u6d4f\u89c8\u5668\u6253\u5f00site1.com\u548csite2.com\u770b\u770b\u662f\u5426\u6b63\u5e38\u5de5\u4f5c.","og_url":"https:\/\/feellikelearning.com\/index.php\/2020\/12\/23\/cn-how-to-set-up-multiple-websites-using-apache2\/?variant=zh-hant","og_site_name":"Feel Like Learning","article_published_time":"2020-12-23T18:18:09+00:00","article_modified_time":"2020-12-23T18:20:22+00:00","og_image":[{"width":1920,"height":1080,"url":"https:\/\/feellikelearning.com\/wp-content\/uploads\/2020\/12\/blog-covers.022.jpeg","type":"image\/jpeg"}],"author":"feellikelearning","twitter_card":"summary_large_image","twitter_misc":{"Written by":"feellikelearning","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/feellikelearning.com\/index.php\/2020\/12\/23\/cn-how-to-set-up-multiple-websites-using-apache2\/?variant=zh-hant#article","isPartOf":{"@id":"https:\/\/feellikelearning.com\/index.php\/2020\/12\/23\/cn-how-to-set-up-multiple-websites-using-apache2\/?variant=zh-hant"},"author":{"name":"feellikelearning","@id":"https:\/\/feellikelearning.com\/#\/schema\/person\/91fb815bebebf166c217b5e3764d437a"},"headline":"\u600e\u6837\u7528apache2\u8bbe\u7f6e\u591a\u4e2a\u7f51\u7ad9? | How to set up multiple websites using apache2?","datePublished":"2020-12-23T18:18:09+00:00","dateModified":"2020-12-23T18:20:22+00:00","mainEntityOfPage":{"@id":"https:\/\/feellikelearning.com\/index.php\/2020\/12\/23\/cn-how-to-set-up-multiple-websites-using-apache2\/?variant=zh-hant"},"wordCount":48,"commentCount":0,"publisher":{"@id":"https:\/\/feellikelearning.com\/#\/schema\/person\/91fb815bebebf166c217b5e3764d437a"},"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/feellikelearning.com\/index.php\/2020\/12\/23\/cn-how-to-set-up-multiple-websites-using-apache2\/?variant=zh-hant#respond"]}]},{"@type":"WebPage","@id":"https:\/\/feellikelearning.com\/index.php\/2020\/12\/23\/cn-how-to-set-up-multiple-websites-using-apache2\/?variant=zh-hant","url":"https:\/\/feellikelearning.com\/index.php\/2020\/12\/23\/cn-how-to-set-up-multiple-websites-using-apache2\/?variant=zh-hant","name":"\u600e\u6837\u7528apache2\u8bbe\u7f6e\u591a\u4e2a\u7f51\u7ad9? | How to set up multiple websites using apache2? | Feel Like Learning","isPartOf":{"@id":"https:\/\/feellikelearning.com\/#website"},"datePublished":"2020-12-23T18:18:09+00:00","dateModified":"2020-12-23T18:20:22+00:00","breadcrumb":{"@id":"https:\/\/feellikelearning.com\/index.php\/2020\/12\/23\/cn-how-to-set-up-multiple-websites-using-apache2\/?variant=zh-hant#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/feellikelearning.com\/index.php\/2020\/12\/23\/cn-how-to-set-up-multiple-websites-using-apache2\/?variant=zh-hant"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/feellikelearning.com\/index.php\/2020\/12\/23\/cn-how-to-set-up-multiple-websites-using-apache2\/?variant=zh-hant#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/feellikelearning.com\/"},{"@type":"ListItem","position":2,"name":"\u600e\u6837\u7528apache2\u8bbe\u7f6e\u591a\u4e2a\u7f51\u7ad9? | How to set up multiple websites using apache2?"}]},{"@type":"WebSite","@id":"https:\/\/feellikelearning.com\/#website","url":"https:\/\/feellikelearning.com\/","name":"Feel Like Learning","description":"\u7a0b\u5e8f\uff5c\u751f\u6d3b\uff5c\u5b66\u5230\u5c31\u662f\u8d5a\u5230","publisher":{"@id":"https:\/\/feellikelearning.com\/#\/schema\/person\/91fb815bebebf166c217b5e3764d437a"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/feellikelearning.com\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":["Person","Organization"],"@id":"https:\/\/feellikelearning.com\/#\/schema\/person\/91fb815bebebf166c217b5e3764d437a","name":"feellikelearning","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/feellikelearning.com\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/72a1e86e9dcb0332e88bd7d54fd36c28?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/72a1e86e9dcb0332e88bd7d54fd36c28?s=96&d=mm&r=g","caption":"feellikelearning"},"logo":{"@id":"https:\/\/feellikelearning.com\/#\/schema\/person\/image\/"},"url":"https:\/\/feellikelearning.com\/index.php\/author\/feellikelearning\/"}]}},"_links":{"self":[{"href":"https:\/\/feellikelearning.com\/index.php\/wp-json\/wp\/v2\/posts\/1069"}],"collection":[{"href":"https:\/\/feellikelearning.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/feellikelearning.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/feellikelearning.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/feellikelearning.com\/index.php\/wp-json\/wp\/v2\/comments?post=1069"}],"version-history":[{"count":7,"href":"https:\/\/feellikelearning.com\/index.php\/wp-json\/wp\/v2\/posts\/1069\/revisions"}],"predecessor-version":[{"id":1079,"href":"https:\/\/feellikelearning.com\/index.php\/wp-json\/wp\/v2\/posts\/1069\/revisions\/1079"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/feellikelearning.com\/index.php\/wp-json\/wp\/v2\/media\/1076"}],"wp:attachment":[{"href":"https:\/\/feellikelearning.com\/index.php\/wp-json\/wp\/v2\/media?parent=1069"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/feellikelearning.com\/index.php\/wp-json\/wp\/v2\/categories?post=1069"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/feellikelearning.com\/index.php\/wp-json\/wp\/v2\/tags?post=1069"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}