Home > php教程 > php手册 > body text

linux 学习(三) php相关

WBOY
Release: 2016-06-06 19:50:53
Original
1020 people have browsed it

五 php相关 配置文件位置 /etc/apache2/apache2.conf 1禁止列举目录 sudo vi /etc/apache2/sites-enabled/000-default 删除 Options Indexes FollowSymLinks中的 Indexes 2 配置默认主页 grep -iR DirectoryIndex /etc/apache2 查看默认首页配置 /etc/apache

五 php相关

配置文件位置

/etc/apache2/apache2.conf

1禁止列举目录

 sudo vi /etc/apache2/sites-enabled/000-default

删除Options Indexes FollowSymLinks中的Indexes 

2 配置默认主页

grep -iR DirectoryIndex /etc/apache2 查看默认首页配置

/etc/apache2/mods-enabled/dir.conf:修改里面的配置就行了

3配置不同域名与对应目录

source:php.cn
Statement of this Website
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
Popular Recommendations
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template