Because sipXecs 4.0.0 installer ISO is missing /etc/redhat-release, yum updates are not possible. To correct the problem, run ‘rpm -ivh http://mirrors.kernel.org/centos/5.2/os/i386/CentOS/centos-release-5-2.el5.centos.i386.rpm’. After this completes, you should be able to use the yum repositories to update and install software. In particular, this is useful for replacing the kernel with a kernel-vm or kernel-xen build for virtualiztion.
Apr 03
Apache HTTP to HTTPS redirect using mod_rewrite
Web
Comments Off on Apache HTTP to HTTPS redirect using mod_rewrite
On Apache, to redirect everything that comes in to port 80 to port 443, insert the following into the Apache config file (usually /etc/httpd/conf/httpd.conf). This should be added between the or tags for the site you wish to alter.
Modify /etc/httpd/conf/httpd.conf :
RewriteEngine on
RewriteCond %{SERVER_PORT} ^80$
RewriteRule ^(.*)$ https://%{SERVER_NAME}$1 [L,R]
Then restart Apache. That’s it. All traffic should now be redirected to use SSL.