mod_proxy+mod_ssl来转发https的请求

分类:Apachemod_ssl里支持SSLProxyEngine指令
直接将其打开即可,这样再加上mod_proxy
于是很容易就有了以下的配置文件内容:

SSLProxyEngine on
ProxyRequests Off
ProxyPreserveHost On
ProxyPass / https://www.abc.com/
ProxyPassReverse / https://www.abc.com/

这个建议写到某个<VirtualHost>里,如<VirtualHost _default_:443>
如果是Fc(Fedora Core)的机器,强烈建议先装mod_ssl

yum install mod_ssl

然后再在配置文件/etc/httpd/conf.d/ssl.conf中的<VirtualHost _default_:443>的session中添加以上的配置内容

oracle10g 重建em(命令行方式)

分类:Oracle1.查看dbconsole的状态

emctl status dbconsole

2.查看RAC数据库 dbcontrol 的配置信息

emca -displayConfig dbcontrol -cluster

3.清除RAC数据库旧的配置信息

emca -deconfig dbcontrol db -repos drop -cluster

4.重新建立RAC数据库的db control的配置信息

emca -config dbcontrol db -repos create -cluster

继续阅读 »

Debian Tools: apt-show-versions

分类:DebianI often want to see what packages I have installed on a debian system. Also I like to see what are the upgrades available. This can be achieved with apt-show-versions that does them both: list all the packages installed and their respective version and also it can show what are the upgrades available and their version.

apt-show-versions is not automatically installed so we have to install it first:

aptitude install apt-show-versions

继续阅读 »

Linux Tips: take control of your bash_history

I spend most of my time working in front of a black and white terminal of remote SSH connections to various servers. This means that I use bash (as my preferred shell) most of the day. And bash history is a very important feature of bash that saves me much time by recalling previous commands I have typed. Here are some tricks on how you can optimize with some simple configurations settings the usage your bash history.

继续阅读 »

Use lshw (Hardware lister) to get detailed Linux information

分类:DebianThere are many ways you can find our various information about the hardware configuration of a Linux system. You can get the information directly from /proc, you can use lspci, etc. And if you are using X then there are many ways to show this information in a nice way. Still, I would like to show you the power of this little tool (lshw) that I found very useful if you are using a SSH connection to the system, and you want to get a quick overview on the hardware details of the system. LSHW can report exact memory configuration, firmware version, mainboard configuration, CPU version and speed, cache configuration, bus speed, etc.

The installation is really simple, and you can find some details about installing lshw on Debian, or Rhel, Centos, or Fedora in the small posts I have written for this.
继续阅读 »

How to change the hostname of a Linux system

分类:DebianNormally we will set the hostname of a system during the installation process. Many peoples don’t care about this, and don’t change the hostname even if for example this was set to something really stupid by the datacenter that installed the system (most likely they will set this to “debian” on any debian installation, etc). For me, it is important to see on each one of the ssh screens I will have open at any time a different hostname that is relevant and will give me quickly the information on what system I am logged in.
继续阅读 »

Lighttpd Debian package available in Etch

分类:DebianLighttpd is a small and fast webserver developed with security in mind and a lot of features. Until recently Debian packages were available only in the unstable release, but now they have been included in Debian Etch (testing) and will most certainly make it to the next stable Debian release (etch is scheduled to be released in December).

Myself I have been using Lighty for a while, either compiled from sources or using the unstable debian package that worked very well for me without any special problems. Though I am using it only to serve static content (images mainly) and not use any other special features. In this case lighttpd outperforms apache in my experiences by far in performance (requests / second) and also resources utilizations (CPU and memory).
继续阅读 »


返回顶部