Apache虚拟主机配置
增加监听端口(修改conf/httpd.conf文件)
Listen 127.0.0.1:8092
修改主站点权限(修改conf/httpd.conf文件)
<Directory />
AllowOverride none
# Require all denied
</Directory>
允许虚拟主机配置(修改conf/httpd.conf文件)
# Virtual hosts
Include conf/extra/httpd-vhosts.conf
增加虚拟主机配置(修改conf/extra/httpd-vhosts.conf文件)
<VirtualHost *:8092>
ServerAdmin [email protected]
DocumentRoot "D:/Work/SourceCode"
ServerName localhost
<Directory "D:/Work/SourceCode">
Options Indexes FollowSymLinks
AllowOverride all
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
增加别名配置
<IfModule alias_module>
Alias /eft "D:/Work/myspace"
</IfModule>
需要注意打开如下项目
LoadModule rewrite_module modules/mod_rewrite.so
在php.ini文件中
short_open_tag = On
开启xdebug(开发环境需要)
xdebug.remote_enable = on
时间: 2024-10-17 17:23:27