---
title: "对于应用服务器中的虚拟主机设置别名后，使用别名访问应用"
author: "chainhou"
date: "2013-01-21T17:36:47Z"
tags: []
categories: ["开源软件"]
slug: "untitled"
draft: false
lastmod: "2013-01-21T17:36:47Z"
id: 1773345
url: "https://chainhou.iteye.com/blog/1773345"
---

对于应用服务器中的虚拟主机设置别名后，使用http://别名+相应的通道端口/应用名 访问应用时会提示域名无法找到，所以需要在操作系统中配置hosts文件，来设置相应的域名到IP的映射，设置后可以正常访问。设置方式可参考：

[http://qixiaopeng.iteye.com/blog/343771](http://qixiaopeng.iteye.com/blog/343771)