欢迎各位兄弟 发布技术文章

这里的技术是共享的

You are here

apache

shiping1 的头像

西部数码 挂载 只能挂载数据盘是吗

普通分类: 
shiping1 的头像

xampp 各种版本下载

shiping1 的头像

两个ok的 apache的 httpd.conf 文件 有大用

第一个 httpd.conf 

#

普通分类: 
shiping1 的头像

苏州人的htaccess文件

RewriteEngine On
 
#家居首页
RewriteRule ^$ /index.php?act=jj_index&task=index
 
#案例首页
RewriteRule anli/?$ /index.php?act=jj_anli&task=index
 
#3D案例展示页
RewriteRule anli/3d/([1-9]+[0-9]*).html$ /index.php?act=jj_anli&task=detial3d&id=$1
#3D列表页
RewriteRule anli/3d/(.*)/?$ /index.php?act=jj_anli&task=list3d&_getstr=$1
 
#图片案例详细页
RewriteRule anli/pic/([1-9]+[0-9]*).html$ /inde
普通分类: 
shiping1 的头像

一个ok的 htaccess文件

RewriteEngine On
RewriteRule ^index.html$ index.php
RewriteRule ^([0-9]+).html$ ?ct=question&askaid=$1
RewriteRule ^([0-9]+)$ ?ct=browser&tid=$1
RewriteRule ^t([0-9]+)$ ?ct=browser&tid2=$1
#这个是提问伪静态
RewriteRule ^ask.html$ ?ct=question&ac=ask_complete
#这个是提问伪静态
RewriteRule ^ask([0-9]+).html$ ?ct=question&ac=ask_complete&tid=$1
#这个是保存伪静态
RewriteRule ^ask-save.html$ ?ct=question&ac=ask_save
 
普通分类: 
shiping1 的头像

关于htaccess httpd.ini httpd.conf 等文件的在线生成

百度 或者 谷歌  
httpd.ini在线生成 httpd.conf 在线生成 .htaccess 在线生成
普通分类: 
shiping1 的头像

htaccess R NC L 等特殊字符的作用 有大用

 

 

普通分类: 
shiping1 的头像

XAMPP配置Mercury 邮件服务器教程

shiping1 的头像

Order allow,deny 顺序 有大用 有大大用 有大大大用

普通分类: 
shiping1 的头像

一个ok的htaccess order allow,deny

AddDefaultCharset GBK
ErrorDocument 404 /error/404.html

<IfModule mod_rewrite.c>

RewriteEngine On
RewriteCond %{HTTP_HOST} ^4000512126.com$ [NC]
RewriteRule ^(.*)$ http://www.4000512126.com/$1 [R=301,L]

RewriteCond %{HTTP_HOST} ^szfzxx.com$ [NC]
RewriteRule ^(.*)$ http://www.szfzxx.com/$1 [R=301,L]


RewriteCond %{HTTP_USER_AGENT} "android|blackberry|googlebot-mobile|iemobile|iphone|ipod|opera mobile|palmos|webos" [NC]
普通分类: 
shiping1 的头像

http://www.aaa.com 和 http://www.bbb.com 都绑到同一个空间 请问 .htaccess如何设置 使得 httpw.bbb.com/mmm 却不可以访问://www.aaa.com/mmm 可以访问 但是 http://ww

史平忠自己的方法 在 mmm 下建一.htaccess文件 文件内容如下
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{HTTP_HOST} !^www.meirongx.com
RewriteRule .* – [F]  
</IfModule>


 



【冒泡】史文远(958186957)  9:29:15

普通分类: 
shiping1 的头像

apache 中文手册 有大用 有大大用 有大大大用

见中文手册  ApacheMenu_zh_CN.chm

普通分类: 
shiping1 的头像

怎样设置Apache访问限制

设置Apache访问限制,针对6种不同情况设置。

步骤/方法

  1. 禁止访问某些文件/目录
    增加Files选项来控制,比如要不允许访问 .inc 扩展名的文件,保护php类库:
    复制内容到剪贴板
普通分类: 
shiping1 的头像

apache 配置访问某个路径(设置访问的路径) 别名 conf httpd.conf

Alias /squirrelmail /usr/share/squirrelmail
#Alias /mail /usr/share/squirrelmail   #好像不可以添加多个别名
<Directory /usr/share/squirrelmail>
    Options Indexes FollowSymLinks
    RewriteEngine On
    AllowOverride All
    DirectoryIndex index.php
    Order allow,deny
    Allow from all
</Directory>
普通分类: 
shiping1 的头像

一聚教程网 >Php教程>>Php入门 > error_reporting() php.ini和http.conf配置错误信息

error_reporting() 

普通分类: 
shiping1 的头像

一个ok的 htaccess 有大用

AddDefaultCharset UTF-8
ErrorDocument 404 /error/404.html

<IfModule mod_rewrite.c>

RewriteEngine On

RewriteCond %{HTTP_HOST} ^aaaaa.com$ [NC]
RewriteRule ^(.*)$ http://www.aaaaa.com/$1 [R=301,L]


RewriteCond %{HTTP_USER_AGENT} "android|blackberry|googlebot-mobile|iemobile|iphone|ipod|opera mobile|palmos|webos" [NC]
RewriteRule ^(.*)$ http://m.aaaaa.com/ [NC,R=301]



RewriteRule ^ask/index.html$ /ask/index.php
普通分类: 
shiping1 的头像

一个ok的httpd.conf的例子

#
# This is the main Apache HTTP 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://httpd.apache.org/docs/2.2/mod/directives.html>
# for a discussion of each configuration directive.
#
# Do NOT simply read the instructions in here without understanding

普通分类: 
shiping1 的头像

生成密码文件

http://tools.dynamicdrive.com/password/ (好像不对,好像不是md5加密的,好像CRYPT加密)  这是生成密码文件.htpasswd  和.htaccess
http://www.sudone.com/htpasswd.php  (好像是对的 md5加密才是对的)
http://www.4webhelp.net/us/password.php  (好像不对,好像不是md5md5加密的,好像CRYPT加密)

也可以用命令行来执行 htaccess


用户名/密码 admin / admin
记住 虽然每次生成的结果不一样,但是总能验证正确(它不是直接比较相等,是据算法来比较的)


第一步 .htaccess
AuthName "Restricted Area"
AuthType Basic
普通分类: 
shiping1 的头像

陈的 htaccess

htaccess文件(分布式配置文件)介绍
一、.htaccess文件用来对apache服务器进行配置,其所能实现的功能在主配置文件(http.conf)中均可实现
.htaccess文件(分布式配置文件)介绍
二、优点:
1、可针对不同的项目进行不同的配置
2、无需重启服务器即可进行配置
三、缺点、.htaccess文件会降低服务器的运行性能。
四、.htaccess运行条件
 在http.conf中AllowOverride不能为None
五、拒绝或允许用户访问:
1、拒绝所以用户访问:
order allow,deny
deny from all
2、允许所有人访问:
Allow from All
3、拒绝单个IP访问    deny from 192.168.105.201
4、拒绝整个IP段访问    
deny from 192.168.105.   
六、密码验证:
AuthName "please input password"    验证提示
AuthType Basic
普通分类: 
shiping1 的头像

禁止指定目录执行php文件

普通分类: 
shiping1 的头像

反向绑定域名的方法 反向代理

反向绑定域名,即用户A访问到B,B将A的请求转向C,最后实现A访问C的过程。反向绑定域名最初应该是应用在站点负载均衡和域名内网转发上,利用反向绑定域名的方法可以将用户的不同请求分发到不同的服务器上,从而实现性能均衡和减轻主服务器负担的目的。

普通分类: 
shiping1 的头像

htaccess 研究的好地方

shiping1 的头像

access日志分析脚本 有大用 有大大用 有大大大用

log日志分析,Nginx 0.8.5版本access.log日志分析shell命令  大 | 中 | 小   [ 2011-6-4 16:48 | by jed ]
Nginx 版本信息:
nginx version: nginx/0.8.53Nginx日志配置项:
access_log /data0/logs/access.log combined;Nginx日志格式:
$remote_addr – $remote_user [$time_local] $request $status $apache_bytes_sent $http_referer $http_user_agent127.0.0.1 - - [24/Mar/2011:12:45:07 +0800] "GET /fcgi_bin/xxx.fcgi?id=xxx HTTP/1.0" 200 160 "-" "Mozilla/4.0"通过日志查看当天访问页面排前10的url:
#>cat access.log | grep "24/Mar/2011" | awk '{print $7}' | sort | uniq -c | sort -nr | head -n 10
通过日志查看当天ip连接数,统计ip地址的总连接数

普通分类: 
shiping1 的头像

Apache 访问日志(Access_log)记录分析

访问日志中会记录服务器所处理的所有请求,其文件名和位置取决于

普通分类: 
shiping1 的头像

wdcp 控制面板 apache 的日志文件

/www/wdlinux/wdapache/logs/error_log
/www/wdlinux/wdapache/logs/access_log
普通分类: 
shiping1 的头像

htaccess deny 多上ip 拒绝多个ip访问

普通分类: 
shiping1 的头像

apache配置:禁止访问网站根目录外的文件

普通分类: 
shiping1 的头像

Apache配置禁止访问目录403

普通分类: 
shiping1 的头像

解决apache服务器本地可以访问 同局域网内他人不能访问的有关问题

 

普通分类: 
shiping1 的头像

htaccess防盗链方法 有大用

普通分类: 

页面

Subscribe to RSS - apache