![how to change default file location in ecl how to change default file location in ecl](http://woshub.com/wp-content/uploads/2017/04/reset-file-assotiation-to-defaults-win10.jpg)
# Only for nginx-naxsi used with nginx-naxsi-ui : process denied requests # Uncomment to enable naxsi on this location # as directory, then fall back to displaying a 404. # First attempt to serve request as file, then # Make site accessible from server_name localhost # Please see /usr/share/doc/nginx-doc/examples/ for more detailed examples. # file but keep this around for reference. # Generally, you will want to move this file somewhere, and start with a clean # of Nginx configuration files in order to fully unleash the power of Nginx. # You should look at the following URL's in order to grasp a solid understanding
HOW TO CHANGE DEFAULT FILE LOCATION IN ECL UPDATE
We needed to look for the line ‘root’ and update the new location comment that line and add the new line root /mnt/newdatavolumeīelow is the sample file of the default nginx configuration. $ sudo vi /etc/nginx/sites-enabled/000-default Nginx allow us to change the configuration for the site globally or site specific, in this demo we are using the existing site to be changed from the default location to the new location we have to find the location using the grep command and change the configuration files. $ sudo rsync –av /usr/share/nginx/html /mnt/newdatavolume Changing the Configuration Files for Nginx etc/nginx/sites-enabled/default:# root /var/www/demosite Moving the site data to the New locationĪssuming that we are moving the default site files /var/www/demosite to the newly created volume, which is located at /mnt/newdatavolume. htaccess files, if Apache's document root etc/nginx/sites-enabled/default: # deny access to. etc/nginx/sites-enabled/default: root /usr/share/nginx/html A mounted drive or the new document located for where we wanted to change the default document location.Ĭopying the Document root files to the New locationĪs the Nginx default document root is at /usr/share/nginx/html, if you have an Nginx installed and existing servers are configured we needed to check the sites-enabled folder which is located on the /etc/nginx/sites-enabled, if the location is changed on the existing servers we can search for the sites-enabled folder with the below command $ grep “root” –R /etc/nginx/sites-enabled.Ubuntu 16.04 installed with a used with sudo permission on the machine.To complete our setup we need the below requirements.Generally, this is done, based on the website requirement or client requirements. By default Nginx Web server default location is at /usr/share/nginx/html which is located on the default file system of the Linux.
HOW TO CHANGE DEFAULT FILE LOCATION IN ECL HOW TO
In this article, we will learn about how to move or change the location of the Nginx Web server documents folder.