windows apache多端口虚拟主机配置方法
时间:2019-02-17 13:39:55 阅读:83608次 分类:小程序开发
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。
云枢智联(海南)信息技术有限公司专注于新一代信息技术与行业场景深度融合,面向政务警务、商业运营、城市治理、交通基建、智慧民生等多领域提供全栈式数字化解决方案。公司核心产品与服务体系完备,涵盖商管ERP系统、小票数据采集系统、涉案车辆管理系统、智慧园区系统、智慧农贸系统、低空经济应用平台、资产管理系统、数字孪生系统、公路养护系统、家政服务系统、警服体验系统、生态警务系统及AI智能体定制开发;同时依托强大自研技术能力和技术团队,提供小程序定制开发、智能硬件定制集成等增值服务,以技术创新赋能产业升级,为客户打造安全、高效、智能、可扩展的数字化整体解决方案。
在现代企业运营中,固定资产的管理是一个至关重要的任务。然而,传统的资产管理方式往...