windows apache多端口虚拟主机配置方法
时间:2019-02-17 13:39:55 阅读:82777次 分类:小程序开发
1、安装wampserver2.2d_x32_zol.zip,默认目录;
2、新建数据库,修改数据库默认密码;
3、php.ini修改警告级别,error_reporting=E_ALL & ~E_NOTICE
4、httpd.conf修改
Include conf/extra/httpd-vhosts.conf删除前面的#
<Directory />
Options FollowSymLinks
AllowOverride None
Order deny,allow
#Deny from all
Allow from all
</Directory>
# onlineoffline tag - don't remove
Order Allow,Deny
Allow from all
</Directory>
修改端口
Listen 8000
ServerName localhost:8000
5、C:wampwampwampmanager.tpl,3个地方修改http://localhost:8000,设置端口;
6、打开C:wampinapacheApache2.2.21confextra目录httpd-vhosts.conf文件
NameVirtualHost *:8000
<VirtualHost *:8000>
ServerAdmin root@exmaple.com
ServerName www1.youfish.net
DocumentRoot C:/wamp/www/YOUYU/m.youfish.net
DirectoryIndex index.php index.html index.htm
</VirtualHost>
<VirtualHost *:8000>
ServerAdmin root@exmaple.com
ServerName img1.youfish.net
DocumentRoot C:/wamp/www/YOUYU/imana.youfish.net/imgs
DirectoryIndex index.php index.html index.htm
</VirtualHost>
<VirtualHost *:8000>
ServerAdmin root@exmaple.com
ServerName imana1.youfish.net
DocumentRoot C:/wamp/www/YOUYU/imana.youfish.net/root
DirectoryIndex index.php index.html index.htm
</VirtualHost>
<VirtualHost *:8000>
ServerAdmin root@exmaple.com
ServerName m1.youfish.net
DocumentRoot C:/wamp/www/YOUYU/m.youfish.net
DirectoryIndex index.php index.html index.htm
</VirtualHost>
<VirtualHost *:8000>
ServerAdmin root@exmaple.com
ServerName s1.youfish.net
DocumentRoot C:/wamp/www/YOUYU/s.youfish.net/root
DirectoryIndex index.php index.html index.htm
</VirtualHost>
<VirtualHost *:8000>
ServerAdmin root@exmaple.com
ServerName t1.youfish.net
DocumentRoot C:/wamp/www/YOUYU/t.youfish.net
DirectoryIndex index.php index.html index.htm
</VirtualHost>
7、打开C:wampaliasphpmyadmin.conf,修改phpmyadmin访问权限
<Directory "c:/wamp/apps/phpmyadmin3.4.10.1/">
Options Indexes FollowSymLinks MultiViews
AllowOverride all
Order Deny,Allow
Allow from all
Allow from 127.0.0.1
</Directory>
8、打开C:WindowsSystem32driversetchosts,修改绑定网址
127.0.0.1 www1.youfish.net
127.0.0.1 m1.youfish.net
127.0.0.1 s1.youfish.net
127.0.0.1 t1.youfish.net
127.0.0.1 img1.youfish.net
127.0.0.1 imana1.youfish.net
127.0.0.1 localhost
9、打开C:wampappsphpmyadmin3.4.10.1config.inc.php,修改$cfg['Servers'][$i]['password'] = '123123a';数据库密码
10、wampserver,PHP->PHP extensions,选中php_curl选项;
11、重启wampserver。
芜湖广丰软件有限公司(原中江网络),成立于2005年,经过10多年定制开发经验,积累了大量技术储备和定制开发经验,是一家集软件研发、互联网应用为一体的综合信息技术服务提供商。公司拥有核心的策划团队和专业的技术研发团队,致力于采用领先的信息技术,长期为涉及智慧园区/厂区/校园领域的各个企业提供快速、高效、安全的信息技术支持。公司立足智慧园区和智慧教育行业,通过软硬件的研发和互联网应用,疏通各企业间“端到端”的信息传输,灵活满足智慧园区和智慧教育企业间不同用户的需求,为其提供完善的信息化解决方案。
园区管理系统,提供智慧园区综合管理系统,智慧园区设计方案咨询,智慧园区管理系统、...