phpstudy 配置虚拟主机
2016-03-10 11:35
591 查看
vhosts-conf 文件
# sxec
<VirtualHost *:80>
DocumentRoot "F:/code/sxectp"
ServerName sxec.com
ServerAlias www.sxec.com
</VirtualHost>
hosts文件
# Copyright (c) 1993-2009 Microsoft Corp.
#
# This is a sample HOSTS file used by Microsoft TCP/IP for Windows.
#
# This file contains the mappings of IP addresses to host names. Each
# entry should be kept on an individual line. The IP address should
# be placed in the first column followed by the corresponding host name.
# The IP address and the host name should be separated by at least one
# space.
#
# Additionally, comments (such as these) may be inserted on individual
# lines or following the machine name denoted by a '#' symbol.
#
# For example:
#
# 102.54.94.97 rhino.acme.com # source server
# 38.25.63.10 x.acme.com # x client host
# localhost name resolution is handled within DNS itself.
# 127.0.0.1 localhost
# ::1 localhost
127.0.0.1 sxec.com
http.conf 文件
引入(默认已引入)
Include conf/vhosts.conf
# sxec
<VirtualHost *:80>
DocumentRoot "F:/code/sxectp"
ServerName sxec.com
ServerAlias www.sxec.com
</VirtualHost>
hosts文件
# Copyright (c) 1993-2009 Microsoft Corp.
#
# This is a sample HOSTS file used by Microsoft TCP/IP for Windows.
#
# This file contains the mappings of IP addresses to host names. Each
# entry should be kept on an individual line. The IP address should
# be placed in the first column followed by the corresponding host name.
# The IP address and the host name should be separated by at least one
# space.
#
# Additionally, comments (such as these) may be inserted on individual
# lines or following the machine name denoted by a '#' symbol.
#
# For example:
#
# 102.54.94.97 rhino.acme.com # source server
# 38.25.63.10 x.acme.com # x client host
# localhost name resolution is handled within DNS itself.
# 127.0.0.1 localhost
# ::1 localhost
127.0.0.1 sxec.com
http.conf 文件
引入(默认已引入)
Include conf/vhosts.conf
相关文章推荐
- [PHP]GD库生成图像无法在浏览器正常显示的问题(更新:使用GD图像生成类发现错误必须及时清理缓存!)
- 使用php simple html dom parser解析html标签
- 基于GD库的php验证码类(支持中英文字体、背景、干扰点线、扭曲…….)
- php导出CSV时,超长数字精度丢失问题与前导0的字符串丢失0的问题解决
- Erlang SMTP发送邮件
- PHP汉字验证码
- 比较全面的一个PHP缓存类解析
- PHP验证码文件类
- PHP图片压缩
- Matplotlib 画柱状图等
- PHP-Zend引擎剖析之CV变量
- wampserver的php.ini文件
- PHP弹出提示框并跳转到新页面即重定向到新页面
- PhpStorm_10.0.1 端口、编码、字体、路径设置
- PHP浮点数的一个常见问题
- 利用PHP执行SQL文件,将SQL文件导入到数据库
- PHP扩展迁移为PHP7扩展兼容性问题记录
- PHP 7 来了,PHP 6 去哪儿了?
- PHP中设置时区方法小结
- php伪静态