Enable Directory Listing in Nginx Webserver Rumi, October 1, 2011 Here is a simple way to enable directory listing in Nginx Webserver. I have a subdomain repository.wowtutorial.org and i want repository.wowtutorial.org to have ability to listing a directory. All we need to do just modify the vhosts or nginx.conf Add autoindex on; Please see the example below Example : #nano /usr/local/etc/nginx/vhosts/repository.wowtutorial.org server { listen 80; server_name repository.wowtutorial.org; autoindex on; location / { root /home/xxx/repository; index index.php index.html index.htm; } location ~ \.php$ { fastcgi_pass 127.0.0.1:9000; fastcgi_param SCRIPT_FILENAME /home/xxx/repository$fastcgi_script_name; fastcgi_param PATH_INFO $fastcgi_script_name; include /usr/local/etc/nginx/fastcgi_params; } location ~ /\.ht { deny all; } } Related Administrations Configurations (Linux) nginx
Cacti: How ton install on a Debian server September 11, 2011April 19, 2015 ======================================= A Newer version of this document is available at- Cacti on Debian (Updated) ======================================= The following programs are needed to run cacti: – apache2 for the web server – mysql-server for the database – php5 for the server-based script – php5-common – php5-cgi – php5-cli – php5-mysql – snmp… Read More
Install GUI ins Ubuntu Server August 25, 2011 First you nee to make sure you have enabled Universe and multiverse repositories in /etc/apt/sources.list file once you have enable you need to use the following command to install GUI sudo apt-get update sudo apt-get install ubuntu-desktop The above command will install GNOME desktop If you wan to install a… Read More
Add a Static Route on CentOS May 30, 2019 To add a temporary route: ip route add 172.16.5.0/24 via 10.0.0.101 dev eth0 To make it persist system or network settings restart, create a route-ifname file for an interface through which the subnet is accessed, in this case eth0: nano /etc/sysconfig/network-scripts/route-eth0 Add the line with the network settings for the other subnet:… Read More