ITeye博客

apache

共 5 篇文章

centos6 yum安装nginx

我的系统是centos6.4 #rpm -Uvh http://nginx.org/packages/centos/6/noarch/RPMS/nginx-release-centos-6-0.el6.ngx.noarch.rpm #yum install nginx

2014-01-04 16:15 · apache

apache自启动

1:copy apache的启动文件到linux的启动目录下 cp /usr/local/apache2/bin/apachectl /etc/init.d/httpd 2:然后vi !$或者vi /etc/init.d/httpd 再第3行加入 # chkconfig: 345 85 15 # description: This is apache Web Server 3:加入自启动 chkconfig --add httpd 4:chkconfig httpd off

2013-12-04 11:47 · apache · Apache

apache 用rewrite实现二级域名解

实现动态二级域名解析的一个关键就是,把特有的名字怎么能够提出来,因为RewriteRule中的匹配,是不包括域名的匹配的, 所以把域名先重写放到“路径”中,再对“路径”重写一次就可以了 实例:动态解析*.i-css.cn。 1: 前提首先你的使用的域名解析器是提供二级域名解析的功能的。一般正规的域名服务器都可以做到这点的; ping XXXX.i-css.cn 如果你发现和 ping www.i-css.cn 结果一样可以解析到你的ip的话,那就说明你的域名服务器支持这个功能。 2:Apache中相关配置如下: <VirtualHost _default_:80> ServerAdmin y…

2013-05-24 16:35 · apache

Apache的rewrite做URL重写

本文主要介绍Apache环境下,如何使用mod_rewrite模块完成URL重写功能。 开启mod_rewrite模块 使用URL重写功能,需要安装mod_rewrite模块。使用phpinfo()函数,找到Apache Modules section部分,可以看到当前apache加载模块。 如果没有开启mod_rewrite, 就需要配置mod_rewrite.so的路径: LoadModule rewrite_module modules/mod_rewrite.so 打开http.conf,一般只要去掉之前的#号即可,重启Apache服务(所有对http.conf做的操作都需要对Apa…

2013-05-22 15:50 · apache

apache的安装及相关的错误解决方案

apache的安装: 1: 下载apache sever wget http://mirror.bit.edu.cn/apache//httpd/httpd-2.4.4.tar.gz 2: 解压缩: cd /usr/local/ tar -zvxf httpd-2.4.4.tar.gz 3:编译安装 cd /usr/local/httpd-2.4.4 ./configure --prefix=/usr/local/apache --enable-module=so --enable-mods-shared=all --enable-so --enable-cache --enable-fil…

2013-04-29 13:42 · apache