Chinaunix首页 | 论坛 | 博客
  • 博客访问: 2917543
  • 博文数量: 454
  • 博客积分: 4860
  • 博客等级: 上校
  • 技术积分: 6375
  • 用 户 组: 普通用户
  • 注册时间: 2011-03-13 10:08
个人简介

10年工作经验,专研网站运维。

文章分类

全部博文(454)

文章存档

2017年(11)

2016年(13)

2015年(47)

2014年(36)

2013年(147)

2012年(64)

2011年(136)

发布时间:2011-11-16 17:08:49

1、编辑apache配置文件vim /usr/local/apache2/conf/extra/httpd-vhosts.conf添加一段:<VirtualHost *:80>    ServerAdmin liuyi@315zhaopin.com    DocumentRoot "/data/home/aaaaa"    ServerName  aaa.ddddd.com    ServerAlias dddddd.com&.........【阅读全文】

阅读(1314) | 评论(0) | 转发(0)

发布时间:2011-11-15 15:31:09

cd /data/home/zhaopinvim .htaccess在文件的最下方,添加如下内容:# 404 pageErrorDocument 404 /./404.php保存退出。在此目录下(网站根目录)放一个错误页面文件,文件名:404.php404.php内容如下:<?php/** 网站首页* ============================================================================*/.........【阅读全文】

阅读(1356) | 评论(0) | 转发(0)

发布时间:2011-11-15 09:33:34

http://localhost:8080/如果你的文件根目录里有 index.html,浏览器就会显示 index.html的内容,如果没有 index.html,浏览器就会显示文件根目录的目录列表,目录列表包括文件根目录下的文件和子目录。如何禁止 Apache 显示目录列表呢?要禁止 Apache 显示目录结构列表,只需将 Option 中的 Indexes 去掉即可。比如我.........【阅读全文】

阅读(2823) | 评论(0) | 转发(0)

发布时间:2011-11-09 17:18:45

......【阅读全文】

阅读(1203) | 评论(0) | 转发(0)

发布时间:2011-11-08 17:00:52

1、cd  /usr/local/src/httpd-2.2.9/modules/cache/usr/local/apache2/bin/apxs -cia mod_cache.c cache_util.c cache_cache.c cache_storage.c cache_pqueue.c cache_hash.c/usr/local/apache2/bin/apxs -cia  mod_disk_cache.c/usr/local/apache2/bin/apxs -cia  mod_mem_cache.c2、会在/usr/local/ap.........【阅读全文】

阅读(1176) | 评论(0) | 转发(0)
给主人留下些什么吧!~~
留言热议
请登录后留言。

登录 注册