Maison  >  Article  >  développement back-end  >  PHP配置文件应用(配置pdo与虚拟主机)

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

WBOY
WBOYoriginal
2016-07-25 08:54:17780parcourir
  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



Déclaration:
Le contenu de cet article est volontairement contribué par les internautes et les droits d'auteur appartiennent à l'auteur original. Ce site n'assume aucune responsabilité légale correspondante. Si vous trouvez un contenu suspecté de plagiat ou de contrefaçon, veuillez contacter admin@php.cn