时间:2023-07-01 18:48:01 | 来源:网站运营
时间:2023-07-01 18:48:01 来源:网站运营
apache2.4虚拟主机设置:1.首先找到apache根目录下的conf目录,打开httpd.conf配置文件,找到# Virtual hosts,启用Include conf/extra/httpd-vhosts.conf虚拟主机配置文件<VirtualHost 127.0.0.1:80> DocumentRoot "e:/php/skyphp" DirectoryIndex index.html index.htm index.php/skyphp <Directory /> AllowOverride None Require all granted </Directory></VirtualHost>
注意:Require all granted是2.4及以上的新配置,否则无法正常启动。关键词:设置,主机,虚拟