一 、URL重写作用
实现伪静态
图片防盗链
自定义404错误页面
二、重写模块开启
apache的配置文件httpd.conf文件中开启:
LoadModule rewrite_module modules/mod_rewrite.so
三、在哪儿配置重写规则?作用范围有何不同
1) 可以使用在Apache主配置文件httpd.conf中(服务器级...
分类:
Web程序 时间:
2016-07-19 13:57:00
阅读次数:
171
网上找了一下原因,是因为express在4.0以后把命令工具单独分出来了,所以安装完express后,还得再安装express-generator; 如果不是采用的全局安装,则需要把 "安装路径\node_modules\.bin"放到环境变量中才能运行 安装express-generator: - ...
分类:
其他好文 时间:
2016-07-19 13:29:23
阅读次数:
117
1.安装模块[root@localhostyum.repos.d]#yum-yinstallmod_ssl[root@localhostyum.repos.d]#rpm-qlmod_ssl/etc/httpd/conf.d/ssl.conf配置文件/usr/lib/httpd/modules/mod_ssl.so/var/cache/mod_ssl/var/cache/mod_ssl/scache.dir/var/cache/mod_ssl/scache.pag/var/cache/mod_s..
分类:
Web程序 时间:
2016-07-15 17:42:17
阅读次数:
198
http://www.angularjsapi.cn/#/bootstrap 2016.7.4 ng.function: 1.angular.bind(self,fn,args ); 2.angular.bootstrap(element, [modules], [config]);(手动加载应用, ...
#./configure--prefix=/usr/local/apache2\--enable-modules=most\--enable-mods-shared=all\可以去掉all表示全用静态不去掉表示所有模块为动态。--enable-so\用此编译启动Apachehttpd服务时,报错:Invalidcommand‘Order‘,perhapsmisspelledordefinedbyamodulenotincludedinth..
分类:
Web程序 时间:
2016-07-14 19:47:25
阅读次数:
235
#./configure--prefix=/usr/local/apache2\--enable-modules=most\--enable-mods-shared=all\可以去掉all表示全用静态不去掉表示所有模块为动态。--enable-so\用此编译启动Apachehttpd服务时,报错:Invalidcommand‘Order‘,perhapsmisspelledordefinedbyamodulenotincludedinth..
分类:
Web程序 时间:
2016-07-14 16:02:30
阅读次数:
292
加载Rewrite模块: 在conf目录下httpd.conf中找到 LoadModule rewrite_module modules/mod_rewrite.so 这句,去掉前边的注释符号“#”,或添加这句。 允许在任何目录中使用“.htaccess”文件,将“AllowOverride”改成“ ...
puppet基础学习
一、 Installation(模块安装)
模块安装地址:/etc/puppetlabs/puppet/modules/
模块下载地址:https://forge.puppetlabs.com/puppetlabs?utf-8=?&supported=yes
安装模块命令:puppet module install puppetlabs-apache...
分类:
其他好文 时间:
2016-07-13 17:47:17
阅读次数:
427
httpd重要文件/etc/httpd/etc/httpd/conf/etc/httpd/conf.d/etc/httpd/conf.d/README/etc/httpd/conf.d/welcome.conf/etc/httpd/conf/httpd.conf/etc/httpd/conf/magic/etc/httpd/logs/etc/httpd/modules/etc/httpd/run/etc/logrotate.d/httpd/etc/rc.d/init.d/htcacheclean/et..
分类:
Web程序 时间:
2016-07-12 23:32:24
阅读次数:
248
声明:配置域名需要用到 httpd.conf httpd_vhosts.conf (apache) 中两个文件 和 hosts (C:\Windows\System32\drivers\etc) ****** 一 LoadModule rewrite_module modules/mod_rewri ...
分类:
Web程序 时间:
2016-07-12 19:35:21
阅读次数:
179