Nginx- Allow Directory browsing Rumi, March 20, 2016 Enabling directory listing in a folder in nginx is simple enough with just an autoindex on;directive inside the location directive. You can also enable sitewide directory listing by putting it in the server block or even enable directory access for all sites by putting it in the http block. An example config file: server { listen 80; server_name domain.com www.domain.com; access_log /var/...........................; root /path/to/root; location / { index index.php index.html index.htm; } location /somedir { autoindex on; } } Related Administrations nginx
Upgrade mysql 5.5 to 5.6 in Ubuntu 14 June 2, 2017 While I was installing idoit- the cmdb and IT documenting platform, struggling with a pre-requisite of having mysql version 5.6 which is not shipped by native in ubuntu 14 installations. So had to google it and found some solution, however the one that worked for me which I’m sharing below:… Read More
Large file split and join in linux July 19, 2021 Let’s assume we have a large file of 102 GB and named as “vzdump-lxc-103-2021_07_19-12_05_06.tar.lzo”. We’d like to split this large file into 10GB of partial file. Let’s apply the split command as below- split -b 102400M vzdump-lxc-103-2021_07_19-12_05_06.tar.lzo repo. Wait for a while, the execution continues, and once over, you’ll find… Read More
Linux Rescue Mode, recovering from boot July 2, 2011 When things go wrong, there are ways to fix problems. However, these methods require that you understand the system well. This chapter will describe the ways that you can boot into rescue mode and single user mode, where you can use your own knowledge to repair the system. What is… Read More