Namecheap.com - Cheap domain name registration, renewal and transfers - Free SSL Certificates - Web Hosting Namecheap.com - Cheap domain name registration, renewal and transfers - Free SSL Certificates - Web Hosting

Posts Tagged ‘apache’

LAMP or LNMP?


2012
May 13

The most common software bundle is LAMP in the past.
What is LAMP? Linux + Apache + MySQL + PHP

How about LNMP? it is almost the same, except the change of the web server from Apache to Nginx. Why there is such change? Loading and performance issue.

Apache will consume a lot of memeory, if you are using just very low-end vps, your vps maybe down due to all memory are being used. we have bad experinece in the past for OpenVZ, the apache eat up all memory and the machine shutdown and need reboot.

In recent year, Nginx become more popular, few benchmarks make comparison between both, Nginx seems a lot better on load balancing and memory consumption.

One of the disadvantage is that you could not use .htaccess anymore. You have to re-learn the syntax of Nginx to adapt your needs.

setup SSL for wildcard domain with the same IP


2011
Apr 26

first, you need to set these parameters in apache configuration file:
Listen 443
NameVirtualHost *:443

Then, you need to link up to your
SSL key SSLCertificateFile /tmp_path/SSL.crt
SSLCertificateKeyFile /tmp_path/SSL.key

Finally setup the virtualhost,

<VirtualHost *:443>
ServerName SUB.YOURDOMAIN.com
DocumentRoot “/YOUR_ROOT_DIR/”
ErrorLog logs/ssl_error_log
TransferLog logs/ssl_access_log
LogLevel warn
SSLEngine on
SSLProtocol -all +SSLv3 +TLSv1 SSLCipherSuite ALL:!ADH:RC4+RSA:+HIGH:+MEDIUM:!LOW:!SSLv2:!EXP <Files ~ “\.(cgi|shtml|phtml|php3?)$”>
SSLOptions +StdEnvVars </Files> SetEnvIf User-Agent “.*MSIE.*” \ nokeepalive ssl-unclean-shutdown \ downgrade-1.0 force-response-1.0
CustomLog logs/ssl_request_log \ “%t %h %{SSL_PROTOCOL}x %{SSL_CIPHER}x \”%r\” %b” </VirtualHost>

restart your apache, fill in your password and SSL for wildcard domain is working now!