Home  >  Article  >  Backend Development  >  PHP configuration file application (configure pdo and virtual host)

PHP configuration file application (configure pdo and virtual host)

WBOY
WBOYOriginal
2016-07-25 08:54:17778browse
  1. # Virtual hosts starts the virtual host configuration
  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
Copy the code

Add dns to the hosts file

  1. 127.0.0.1 zendTest
  2. 127.0.0.1 www.zendTest.com
Copy the code

4, restart Apache



Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn