Good stuff for ubuntu player:
http://people.canonical.com/~kirkland/search.html
Labels
2010年6月25日
2010年6月15日
Tomcat5 + Apache on Centos
Install Tomcat5:
The easy way is yum install tomcat5 tomcat5-webapps
Testing:
netstat -ntlp <-----------Check the default 8080 port is ready
http://localhost:8080/ <------Test the url
If you don't wanna join tomcat to apache2 you can stop here.
Join Tomcat to Apache2
There are several ways to join tomcat to apache2
Double check the proxy_ajp.conf have included in httpd.conf
restart httpd and test with url "http://localhost/tomcat/"
The easy way is yum install tomcat5 tomcat5-webapps
Testing:
netstat -ntlp <-----------Check the default 8080 port is ready
http://localhost:8080/ <------Test the url
If you don't wanna join tomcat to apache2 you can stop here.
Join Tomcat to Apache2
There are several ways to join tomcat to apache2
- jk (mod_jk)
- http_proxy (mod_proxy)
- proxy_ajp (mod_proxy_ajp)
vi /etc/httpd/conf.d/proxy_ajp.conf
LoadModule proxy_ajp_module modules/mod_proxy_ajp.so
ProxyPass /tomcat/ ajp://localhost:8009/
Double check the proxy_ajp.conf have included in httpd.conf
restart httpd and test with url "http://localhost/tomcat/"
2010年6月10日
Clamav install with yum in Centos
1: Create yum repository file
vi /etc/yum.repos.d/dag.repo
[dag]
name=Dag RPM Repository for RHEL5
baseurl=http://ftp.riken.jp/Linux/dag/redhat/el5/en/$basearch/dag/
enabled=1
gpgcheck=1
2: Download and import the key
wget http://dag.wieers.com/packages/RPM-GPG-KEY.dag.txt
rpm --import RPM-GPG-KEY.dag.txt
3: yum install clamd
vi /etc/yum.repos.d/dag.repo
[dag]
name=Dag RPM Repository for RHEL5
baseurl=http://ftp.riken.jp/Linux/dag/redhat/el5/en/$basearch/dag/
enabled=1
gpgcheck=1
2: Download and import the key
wget http://dag.wieers.com/packages/RPM-GPG-KEY.dag.txt
rpm --import RPM-GPG-KEY.dag.txt
3: yum install clamd
Apache htaccess Digest Authentication config
Suppose the http document directory is /var/www/html
Step 1
Then create .htaccess file in it
vi /var/www/html/.htaccess
AuthName "myauth"
Authtype Digest
AuthDigestProvider file
AuthUserFile /etc/httpd/conf.d/.digpass
Require valid-user
Step 2
issue the follow command to create login account
htdigest -c /etc/httpd/conf.d/.digpass myauth tom
ps.: Don't forget to change "AllowOverride AuthConfig" in httpd.conf
Step 1
Then create .htaccess file in it
vi /var/www/html/.htaccess
AuthName "myauth"
Authtype Digest
AuthDigestProvider file
AuthUserFile /etc/httpd/conf.d/.digpass
Require valid-user
Step 2
issue the follow command to create login account
htdigest -c /etc/httpd/conf.d/.digpass myauth tom
ps.: Don't forget to change "AllowOverride AuthConfig" in httpd.conf
訂閱:
文章 (Atom)