This link http://www.neilstuff.com/apache/apache2-ssl-windows.htm will help you to set up SSL in Apache in a very easy steps.
Monday, 23 December 2013
Friday, 13 December 2013
Varnish Windows Linux
Below are some useful links on Varnish installation
https://www.varnish-cache.org/trac/wiki/VarnishOnCygwinWindows
https://www.varnish-software.com/static/book/index.html
http://thomasmaclean.com/blog/setting-varnish-3x-ubuntu-drupal-7-and-basic-authentication
http://drupallovers.wordpress.com/2012/06/12/drupal-and-varnish/
http://www.lullabot.com/blog/article/configuring-varnish-high-availability-multiple-web-servers
http://www.techrepublic.com/blog/diy-it-guy/diy-speed-up-your-apache-server-with-varnish-cache/
https://www.varnish-cache.org/trac/wiki/VarnishOnCygwinWindows
https://www.varnish-software.com/static/book/index.html
http://thomasmaclean.com/blog/setting-varnish-3x-ubuntu-drupal-7-and-basic-authentication
http://drupallovers.wordpress.com/2012/06/12/drupal-and-varnish/
http://www.lullabot.com/blog/article/configuring-varnish-high-availability-multiple-web-servers
http://www.techrepublic.com/blog/diy-it-guy/diy-speed-up-your-apache-server-with-varnish-cache/
Thursday, 5 December 2013
Installing Drush on Windows
The below links will help you to install Drush on Windows.
http://drush.ws/drush_windows_installer
https://drupal.org/node/594744
http://drush.ws/drush_windows_installer
https://drupal.org/node/594744
Monday, 2 December 2013
Install MySQL manually Windows
The below links helped me to install MySQL manually on windows when I was struggling to use the installer on a Proxy network.
http://www.youtube.com/watch?v=GribLs_zYxs
http://dev.mysql.com/doc/refman/5.1/en/windows-start-service.html
http://mydailytech.com/how-to-fix-mysql-error-1067/
http://www.youtube.com/watch?v=GribLs_zYxs
http://dev.mysql.com/doc/refman/5.1/en/windows-start-service.html
http://mydailytech.com/how-to-fix-mysql-error-1067/
Saturday, 8 June 2013
select elements inside an iframe
Friday, 3 August 2012
Apache basic authentication
To create a password file, in cmd prompt go to the bin dir where htpasswd.exe is present and type the below cmd
third parameter is name of the file where credentials are stored.
fourth parameter is the username. After executing this command, it prompts for password and a file named test will be created in bin dir.
The below config is placed in the conf file
<Directory "C:/Program Files/Apache Group/Apache2/htdocs/test" > // file path where authentication is needed
AuthType Basic
AuthName "Private Documentation Repository" // can be anything
AuthUserFile "C:/Program Files/Apache Group/Apache2/bin/test" //path to file containing username and password
</Directory>
Restart the apache and restart the browser and try hitting , http://localhost/test. It asks for credentials.
Reference:
http://httpd.apache.org/docs/2.0/howto/auth.html
http://www.askapache.com/htaccess/apache-authentication-in-htaccess.html
htpasswd -c test test
third parameter is name of the file where credentials are stored.
fourth parameter is the username. After executing this command, it prompts for password and a file named test will be created in bin dir.
The below config is placed in the conf file
<Directory "C:/Program Files/Apache Group/Apache2/htdocs/test" >
AuthType Basic
AuthName "Private Documentation Repository" // can be anything
AuthUserFile "C:/Program Files/Apache Group/Apache2/bin/test" //path to file containing username and password
</Directory>
Restart the apache and restart the browser and try hitting , http://localhost/test. It asks for credentials.
Reference:
http://httpd.apache.org/docs/2.0/howto/auth.html
http://www.askapache.com/htaccess/apache-authentication-in-htaccess.html
Thursday, 2 August 2012
Prevent hotlinking Apache
Sometimes other sites use images,video etc from your site. This is called hotlinking or bandwidth theft.
Hotlink protection can save you lots of bandwidth by preventing other sites from displaying your images. For hotlink protection, you need to create some rules in Apache .htaccess file. Put the below lines in .htaccess.
RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http(s)?://(www\.)?drupalssl.com [NC]
RewriteCond %{HTTP_REFERER} !^http(s)?://(www\.)?drupalsample.com [NC]
RewriteRule \.(jpg|jpeg|png|gif)$ - [NC,F,L]
The above rule prevent use of images having extensions jpg,jpeg,png,gif other than drupalssl.com and drupalsample.com. Even if they use it, they will just see the image placeholder. if you want to show some other image when they try to hotlink, last line can be changed to.
RewriteRule \.(jpg|jpeg|gif)$ http://www.drupalssl.com/Test3.png [NC,R,L]
References:
http://altlab.com/hotlinking.html/
http://www.htaccesstools.com/hotlink-protection/
Hotlink protection can save you lots of bandwidth by preventing other sites from displaying your images. For hotlink protection, you need to create some rules in Apache .htaccess file. Put the below lines in .htaccess.
RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http(s)?://(www\.)?drupalssl.com [NC]
RewriteCond %{HTTP_REFERER} !^http(s)?://(www\.)?drupalsample.com [NC]
RewriteRule \.(jpg|jpeg|png|gif)$ - [NC,F,L]
The above rule prevent use of images having extensions jpg,jpeg,png,gif other than drupalssl.com and drupalsample.com. Even if they use it, they will just see the image placeholder. if you want to show some other image when they try to hotlink, last line can be changed to.
RewriteRule \.(jpg|jpeg|gif)$ http://www.drupalssl.com/Test3.png [NC,R,L]
References:
http://altlab.com/hotlinking.html/
http://www.htaccesstools.com/hotlink-protection/
Subscribe to:
Posts (Atom)