---
title: "Apache本机配置多个域名"
author: "quqtalk"
date: "2018-02-23T09:18:35Z"
tags: ["Apache", "PHP"]
categories: ["企业架构"]
slug: "apache"
draft: false
lastmod: "2018-02-23T09:18:35Z"
id: 2411236
url: "https://quqtalk.iteye.com/blog/2411236"
---

关键是注释掉httpd.conf中的两行配置

LoadModule vhost\_alias\_module modules/mod\_vhost\_alias.so

Include conf/extra/httpd-vhosts.conf

否则，Apache会把所有本地的域名请求解析到第一个VirtualHost配置上。