Restrict access to your Apache Virtual Host

In some case you need to restrict your virtual host site by IP address. Usually the type of site that handle important information such as Administrator site or web-based database administration site (eg : phpMyAdmin) or else. For example the admin site of your website can be accessed only in Office network. This Apache configuration…

How to export your MongoDB collections to CSV files

For some reasons, we might want to export our data in our mongodb collections into csv files. Is it possible? Yes, it is. Mongodb provide a tools called mongoexport which can used to export your data to JSON or CSV files. Here is the usage example. mongoexport –db pricebook –collection product_specification –csv –fields “product_id,category_id,specs” -o…