LAMP搭建之二:apache配置文件详解(中英文对照版) # This is the main Apache server configuration file. It contains the # configuration directives that give the server its instructions. # See <URL:http://httpd.apache.org/docs/2.2/> for detailed information. # In particu…
apache配置文件详解与优化 一.总结 一句话总结:结合apache配置文件中的英文说明和配置详解一起看 1.apache模块配置用的什么标签? IfModule 例如: <IfModule dir_module> DirectoryIndex index.html 索引文件 首页文件(首页文件可以有多个,可以用空格匹配多个,) </IfModule> 2.apache的目录配置用什么标签? Directory 例如: <Directory /> 根目录(以下是对根目…
深入浅出MyBatis技术原理与实践-第八章 MyBatis-Spring(二) ------配置文件详解 8.2 MyBatis-Spring应用 8.2.1 概述 本文主要讲述通过注解配置MyBatis-Spring. 配置分为几个部分: 配置数据源 配置SqlSessionFactory 配置SqlSessionTemplate 配置Mapper 事务处理 mybatis中,使用SqlSessionFactory来产生SqlSession. mybatis-spring中,使用SqlSes…
0x01 禁止目录列表访问 () 备份httpd.conf配置文件,修改内容: <Directory "/web"> Options FollowSymLinks AllowOverride None Order allow,deny Allow from all </Directory> 将Options Indexes FollowSymLinks 中的Indexes 去掉,就可以禁止 Apache 显示该目录结构. ()设置 Apache 的默认页面: &…
1.404跳转: <IfModule dir_module>    DirectoryIndex index.php index.html /error.php</IfModule> #/error.php是apache的根目录 2.apache配置段: (1)目录权限限制 Alias /dir/ "/var/www/html"    #虚拟目录即访问dir的时候跳转到/var/www/html目录 <Directory /var/www/html/>…
1.1 ServerRoot 配置 [ServerRoot "" 主要用于指定Apache的安装路径,此选项参数值在安装Apache时系统会自动把Apache的路径写入.Windows安装时,该选项的值为Windows安装的路径,Linux安装时该选项值为编译时选择的路径] 1.2 Mutex default:logs 互斥:允许你为多个不同的互斥对象设置互斥机制[mutex mechanism]和互斥文件目录,或者修改全局默认值 如果互斥对象是基于文件的以及默认的互斥文件目录不在本地…
这节来说说全局配置文件的东西,非常简单.看一遍就懂了. --WH 一.全部配置内容 SqlMapConfig.xml的配置内容和顺序如下,顺序不能乱.现在来对这些属性的意思一一进行讲解. 二.properties 作用:引用java属性文件中的配置信息,比如,加载连接数据库的各种属性的配置文件. db.properties <!-- properties:引用java属性文件中的配置信息 比如加载连接数据库的帐号密码等信息的properties配置文件. 使用${}可以引用已经加载的java配置…
修改php配置文件,但有时候我们并不知道 php.ini 所在路径,这时候就需要通过命令来查一查在哪里. /usr/local/php/bin/php -i |head 看那一行 Loaded Configuration File -> /usr/local/php/etc/php.ini.如果这里为 None,那么就说明没有加载到具体的 php.ini.找到 php.ini 后,用 vim 打开它,发现很多行都是以;开头的,这个符号在 php.ini 中作为注释符号,也就是说只要是以;开头的行…
# This is the main Apache server configuration file. It contains the # configuration directives that give the server its instructions. # See <URL:http://httpd.apache.org/docs/2.2/> for detailed information. # In particular, see # <URL:http://http…
本文会详细介绍MyBatis的常用配置 1.properties节点 <properties resource="mybatis-config.properties"> <property name="username" value="dev_user"/> <property name="password" value="123456"/> </propertie…