1. 确认服务器 开放8088端口
https://www.apachefriends.org/download.html 下载XAMPP for Windows,安装
2. 修改apache主配置文件
e:/opt/xampp/apache/conf/httpd.conf
默认有Listen 80这一行,找到这里在下一行添加Listen 8088
3. 创建目录 E:upload, mkdir E:upload
4. 修改apache vhost 配置文件 e:/opt/xampp/apache/conf/extra/httpd-vhosts.conf
添加以下配置
<VirtualHost *:8088> ServerAdmin Administrator@www.mediamix.cn DocumentRoot "E:/upload" ServerName www.mediamix.cn ServerAlias www.mediamix.cn ErrorLog "logs/mediamix.cn-error.log" CustomLog "logs/mediamix.cn.log" common <Directory "E:/upload"> Options Indexes FollowSymLinks Includes ExecCGI AllowOverride All Require all granted </Directory> </VirtualHost>
apache, httpd, vhost