Tag Archives: Apache

Cross-Origin Resource Sharing

Cross-Origin Resource Sharing: Cross-Origin Resource Sharing (CORS) is a specification that enables truly open access across domain-boundaries. If you serve public content, please consider using CORS to open it up for universal JavaScript/browser access. Usually web browsers forbids cross-domain requests, … Continue reading

Posted in Client-side Scripting. | Tagged , , | Leave a comment

How To Setup An SSL Certificate

How To Setup An SSL Certificate Ordering an SSL certificate can be as simple as pie or it can make you want to pull your hair out. If you prepare to order an SSL certificate by creating a CSR and … Continue reading

Posted in Apache, Linux Operating System | Tagged , | Leave a comment

Setup Varnish Cache HTTP reverse proxy on Ubuntu

Setup Varnish Cache HTTP reverse proxy on Ubuntu Varnish Cache: Varnish Cache is a web application accelerator also known as a caching HTTP reverse proxy. It stores much of its cached data in memory, creating fewer disk files and fewer … Continue reading

Posted in Apache, Proxy, Varnish | Tagged , , | Leave a comment

Setup Nginx as reverse proxy to apache on ubuntu

Setup nginx as reverse proxy to apache Install PHP and Apache: Install php and apache Configure virtual host: Configure virtual host Install nginx : Install nginx ¬†Configure nginx: Open up the nginx configuration. #sudo vim /etc/nginx/sites-enabled/default The following configuration will … Continue reading

Posted in Apache, Nginx, Proxy | Tagged , , | Leave a comment

Apache prefork vs worker mpm

Apache: multi-threaded vs multi-process (pre-forked) Apache comes in a few different flavors. The two most common are pre-forked (multi-process) and multi-threaded (worker). The pre-forked flavor runs several copies of itself and each copy is designed to serve one visitor at … Continue reading

Posted in Apache | Tagged | Leave a comment

Monitoring services with Monit

Monitoring services with Monit Check all running service on you machine with their port no, #netstat -atlpvn | grep LISTEN Get and install Monit, #sudo apt-get install monit OR #cd /home/ #wget http://mmonit.com/monit/dist/monit-5.5.tar.gz #tar -zxvf monit-5.5.tar.gz #cd monit-5.5 #./configure #make … Continue reading

Posted in Apache, Gearman, Memcached, MongoDB, Monit, Mysql, Node.js, Redis, Sphinx | Tagged , , , , , , , , | Leave a comment

Install Apache-Php-Mysql latest version on Centos

Install Apache-Php-Mysql latest version on Centos A) Install latest Apache Web Server: #cd /usr/local/src/ #wget http://apache.mirrors.pair.com//httpd/httpd-2.4.1.tar.bz2 #tar -jxf httpd-2.4.1.tar.bz2 #cd httpd-2.4.1 Install latest APR & APR-Utils version available (steps are given in Requirements).Unpack them into ./srclib/apr and ./srclib/apr-util (be sure … Continue reading

Posted in Apache, Mysql, Php, Web development | Tagged , , , | Leave a comment

Setup Lamp on ubuntu 12.04

Download Wubi. #sudo apt-get update #sudo apt-get upgrade #sudo apt-get install build-essential #sudo apt-get install apache2 #sudo apt-get install php5 #php /var/www/index.html #sudo apt-get install curl #curl http://localhost/ #sudo apt-get install mysql-server #sudo apt-get install phpmyadmin #sudo apt-get install subversion … Continue reading

Posted in Apache, Linux Operating System, Mysql, Php, Web development | Tagged , , , , | Leave a comment

Configure Virtual Hosts to Ubuntu Apache

Install Apache : #sudo apt-get install apache2 2) Add virtual host name, #sudo vim /etc/hosts Add new entry, 127.0.0.1 domainname.com 3) Create New Directory and test index page, #sudo mkdir /var/www/mynewsitedir/ #sudo vim /var/www/mynewsitedir/index.html 4)If you wish to configure a … Continue reading

Posted in Apache, Web development | Tagged , , | Leave a comment