文章归档

vsftpd FTP on Ubuntu Linux

vsftpd is a GPL licensed FTP server for UNIX systems, including . It is secure and extremely fast.
Using this instructions, you can set up vsftpd on variuos linux distros. This tutorial will show you how to set up your own ftp in Ubuntu Linux.

1. Install vsftpd

sudo apt-get install vsftpd

2. Change the configurations file
Open the vsftpd.conf configuration file with a text editor. The file is located in the /etc directory.

sudo joe /etc/vsftpd.conf

Once you are editing the file, you’ll want to make a few changes. Change this:

anonymous_enable=YES
local_umask=022

To this: 阅读更多 »

Share

Apache用户认证方法汇总

一.基本的Apache用户认证方法:

若对某一目录下的文件如/home/ftp/pub需要做到用户认证,则在httpd.conf
中加入下面的行
<>
options indexes followsymlinks
allowoverride authconfig
order allow,deny
allow from all

<>
用在目录/home/ftp/pub下放文件.htaccess,内容如下:
authname ”shared files”
authtype basic
authuserfile /etc/.passwd
require valid-user

用随Apache来的程序htpasswd 生成文件/etc/.passwd,每行一个用户名:密码

只要能提供正确的用户名和密码对,就允许登录访问,这是针对任何地址来的
请求都要求提供用户名和密码认证。

二.针对部分网段或地址要求认证。

阅读更多 »

Share

Cherokee 真的比 Nginx 要牛?答案是一半一半!!

Cherokee  号称是世界上处理速度最快的httpd server 甚至比 要牛!
很多人都抱有怀疑的态度,网上也纷纷展开了不通类型的测试,而我也是其中一个。

但撇开速度性能江湖中谁是老大这一论,就 Cherokee  本身,是有它自己相当的亮点。

最令我欣赏的,是它自带的管理工具,也可以说是管理后台了,以网页方式做配置。在里头除了可以调配系统中各项数值,还能配置虚拟主机,缓存,系统状态…..

现在 Cherokee 连 1.0 版本都还没到,截止本文发表,最新版本是  Cherokee 0.99.14
可以说各方面的Bug都有相当的存在。所以在这个时候比性能,稳定…退一步说,给点面子吧…毕竟人家还没成熟。

我这么说,可并不是否认了 Cherokee 所号称的性能第一。的确,在用 自带的 ab 压力测试成绩中看来。Cherokee 在并发量 100 的时候,确确实实是比 nginx 还要快!!!

再加上全功能相当讨人喜欢的管理后台,相比起 Nginx 单单只有一个 NginxStatus 我觉得 Cherokee 在这个点子的想法将会不同凡响。因为图形化的配置相当明了,省去了好多记忆配置语法的功夫。尤其对于新手来说,入门槛很低。

源码包解tar,编译,安装完成后。使用指定配置,端口等参数启用单独的管理后台进程,打开浏览器,输入账号自动生成的管理密码就能进入管理界面。如上图所示,可以直接启动以及关闭 Cherokee 的httpd 服务。
阅读更多 »

Share

虚拟主机支持

下面是我配置的虚拟主机内容.

NameVirtualHost *
<VirtualHost *>
ServerName www.ptubuntu.com
DocumentRoot /home/www/html/
</VirtualHost>
如果你的主机上没有设置有两个.那么这第一个是默认的主机.所以你要添加只能添加下面两个新的虚拟主机才是正确的.
<VirtualHost *>
ServerName lab.test.com
DocumentRoot /home/www/html/test
</VirtualHost>
<VirtualHost *>
ServerName beta.test.com
DocumentRoot /home/www/html/test
</VirtualHost>

Share

Apache设置帐户验证[.htaccess]

先来讲一讲为何要使用帐户验证,比如你公司正在开发一个网站或是已使用的网站.但是你只想让内部的使用.而又不想让其他人访问那么你可以进行设置添加用户认证那么你就可以提高安全性能.在这里也很简单.但是也很容易配置出错.有三步.1是修改httpd.com 2.生成验证文件. 3.创建.htaccess文件.

阅读更多 »

Share

Apache架设FFmpeg, FFmpeg-PHP, Lame, Libogg, Libvorbis, FLVtool2, Mplayer,

始于2009年10月08日 PM
版本号:Debian-5.03 APC for , 2009年10月08日首版
系统环境 : Debian GNU/ 5.03
在配置这个程序的前提是你已安装了apache+php+mysq.如果你还没有安装那么你可以查看LAMP即由Linux+Apache+Mysql+PHP组成的一个WEB开发平台.

现在我们开始这安装为了安装我们需要做一些准备.就算你的apache架设好了.那也需要安装一些支持ffmpeg的动态库.

#apt-get install libjpeg-progs libjpeg62 libjpeg62-dev libsdl1.2-dev php5-dev build-essential unzip subversion ruby libcurses-ruby

阅读更多 »

Share
Page 1 of 6123456