首页 技术 正文
技术 2022年11月14日
0 收藏 437 点赞 4,227 浏览 1534 个字

1. wondows xp + apmserv 5.2.6 端口8088

2.httpd.config文件

  1. ServerRoot       “D:/APMServ/APMServ5.2.6/Apache”

    Listen          8088

    ServerName     127.0.0.1:8088

    DocumentRoot   ”D:/APMServ/APMServ5.2.6/www/”

    (原文未变)

  2.要么将几台<virtualhost>标签全放在 D:\APMServ\APMServ5.2.6\Apache\conf\apmserv\vhost.conf 文件中(谁在前谁是默认的虚拟主机)

    被httpd.config包含 ,要么将他们全部写在httpd.config中 (若有更多台虚拟主机可按原样改动后添加)

NameVirtualHost *:8088
<VirtualHost *:8088>
ServerName www.test.com
ServerAlias *.test.com
DocumentRoot "D:/APMServ/APMServ5.2.6/www/test"
<Directory "D:/APMServ/APMServ5.2.6/www/test">
Options FollowSymLinks IncludesNOEXEC Indexes
DirectoryIndex index.html index.htm default.htm index.php default.php index.cgi default.cgi index.pl default.pl index.shtml
AllowOverride None
Order Deny,Allow
Allow from all
</Directory>
</VirtualHost>NameVirtualHost *:8088
<VirtualHost *:8088>
ServerName www.testone.com
ServerAlias *.testone.com
DocumentRoot "D:/APMServ/APMServ5.2.6/www/testone"
<Directory "D:/APMServ/APMServ5.2.6/www/testone">
Options FollowSymLinks IncludesNOEXEC Indexes
DirectoryIndex index.html index.htm default.htm index.php default.php index.cgi default.cgi index.pl default.pl index.shtml
AllowOverride None
Order Deny,Allow
Allow from all
</Directory>
</VirtualHost>

3.C:\WINDOWS\system32\drivers\etc\hosts 文件用文本编辑器打开添加下边内容(若有更多台虚拟主机可按原样改动后添加)

    127.0.0.1 localhost
    127.0.0.1 testone.com
    127.0.0.1 www.testone.com
    127.0.0.1 testtwo.com
    127.0.0.1 www.testtwo.com

4.本机打开任意浏览器 输入URL www.test.com 或者 www.testone.com 会显示出 D:/APMServ/APMServ5.2.6/www/test 或者 “D:/APMServ/APMServ5.2.6/www/testone 中的  默认页(index.php 或index.html……)

相关推荐
python开发_常用的python模块及安装方法
adodb:我们领导推荐的数据库连接组件bsddb3:BerkeleyDB的连接组件Cheetah-1.0:我比较喜欢这个版本的cheeta…
日期:2022-11-24 点赞:878 阅读:9,022
Educational Codeforces Round 11 C. Hard Process 二分
C. Hard Process题目连接:http://www.codeforces.com/contest/660/problem/CDes…
日期:2022-11-24 点赞:807 阅读:5,513
下载Ubuntn 17.04 内核源代码
zengkefu@server1:/usr/src$ uname -aLinux server1 4.10.0-19-generic #21…
日期:2022-11-24 点赞:569 阅读:6,359
可用Active Desktop Calendar V7.86 注册码序列号
可用Active Desktop Calendar V7.86 注册码序列号Name: www.greendown.cn Code: &nb…
日期:2022-11-24 点赞:733 阅读:6,142
Android调用系统相机、自定义相机、处理大图片
Android调用系统相机和自定义相机实例本博文主要是介绍了android上使用相机进行拍照并显示的两种方式,并且由于涉及到要把拍到的照片显…
日期:2022-11-24 点赞:512 阅读:7,773
Struts的使用
一、Struts2的获取  Struts的官方网站为:http://struts.apache.org/  下载完Struts2的jar包,…
日期:2022-11-24 点赞:671 阅读:4,851