当前位置:Gxlcms > PHP教程 > PHP配置文件应用(配置pdo与虚拟主机)

PHP配置文件应用(配置pdo与虚拟主机)

时间:2021-07-01 10:21:17 帮助过:3人阅读

  1. # Virtural hosts启动虚拟主机的配置
  2. Include conf/extra/httpd-vhosts.conf
  3. ServerAdmin kongdaoxian@gmail.com
  4. DocumentRoot "E:/skydao/apache2/htdocs/zendTest/public"
  5. ServerName zendTest.com
  6. ServerAlias www.zendTest.com
  7. DirectoryIndex index.php
  8. Options FollowSymLinks
  9. AllowOverride None
  10. Order allow,deny
  11. Allow from all

在hosts文件中加dns

  1. 127.0.0.1 zendTest
  2. 127.0.0.1 www.zendTest.com

4,重启Apache

人气教程排行