服务器配置
(视频教程推荐:java视频教程)
1、虚拟目录配置
<VirtualHost _default_:80> #设置根目录 DocumentRoot "G:\\phpStudy\\PHPTutorial\\phpMyAdmin" #设置域名 ServerName www.phpmyadmin.com #目录权限 <Directory "G:\\phpStudy\\PHPTutorial\\phpMyAdmin"> #允许将目录结构用索引的方式展示 Options +Indexes +FollowSymLinks +ExecCGI #允许覆盖;,用来做分布式部署 AllowOverride All #执行顺序,先允许,后拒绝 Order allow,deny #允许所有请求 Allow from all Require all granted </Directory> </VirtualHost>
更改默认首页
<IfModule dir_module> DirectoryIndex index.html index.php index.htm l.php </IfModule>
更改监听端口
Listen 80
2、虚拟主机配置
<VirtualHost _default_:80> DocumentRoot "C:\\web1" #指定虚拟目录路径 ServerName www.baidu.com # 虚拟目录绑定的域名 DirectoryIndex aa.php # 默认首页 <Directory "C:\\web1"> Options -Indexes -FollowSymLinks +ExecCGI AllowOverride All Order allow,deny Allow from all Require all granted </Directory> </VirtualHost>
Copyright © 2019- 517ttc.cn 版权所有 赣ICP备2024042791号-8
违法及侵权请联系:TEL:199 18 7713 E-MAIL:2724546146@qq.com
本站由北京市万商天勤律师事务所王兴未律师提供法律服务