Apache多端口多web开发配置

适合自己搭建的环境,启用apache下httpd-vhosts.conf文件,修改为:


DocumentRoot "磁盘:/WebServ/项目1/public"
    ServerName localhost:80
ServerAlias 127.0.0.1
    ErrorLog logs/localhost-error.log
CustomLog logs/localhost-access.log comonvhost
   #php_admin_value "D:\Server"

AllowOverride All
Require all granted




listen 81

DocumentRoot "磁盘:/WebServ/项目2"
    ServerName localhost:80
ServerAlias 127.0.0.1
    ErrorLog logs/localhost-error.log
CustomLog logs/localhost-access.log comonvhost
   #php_admin_value "D:\Server"

AllowOverride All
Require all granted


你可能感兴趣的:(apache,php)