Search
 
SCRIPT & CODE EXAMPLE
 

JAVA

nginx change root directory

edit file

> sudo vim /etc/nginx/sites-available/default

server {
    listen 80;
    listen [::]:80;
    root /mnt/volume-mn1/html; # # # change this # # #
    index  index.php index.html index.htm;
    server_name  example.com www.example.com;

    location / {
    try_files $uri $uri/ /index.php?$args;        
    }
    ...
}

save file

make sure file is ok

> sudo nginx -t

restart nginx

> sudo systemctl reload nginx.service
Comment

PREVIOUS NEXT
Code Example
Java :: object to double java 
Java :: java generate secure random password 
Java :: java print array as string 
Java :: select word from list 
Java :: capitalize each word in string java 
Java :: check if all values are same in list java 
Java :: list set value at index java 
Java :: caesar cipher java 
Java :: remove extra spaces java 
Java :: java expressions 
Java :: Loop Structure in Java 
Java :: java calendar hour vs hour of day 
Java :: pi in java 
Java :: java guid 
Java :: java ioexception 
Java :: android alertdialog setSingleChoiceItems 
Java :: loop java 
Java :: jbutton set on action 
Java :: check last character of a string java 
Java :: how to call intent in adapter class in android 
Java :: java parse unix timestamp 
Java :: java selenium implicitly wait 
Java :: larger number in java than long 
Java :: how to get the average from a list in java 
Java :: how to change color of progress bar in android 
Java :: Java for Keyword 
Java :: A failure occurred while executing org.jetbrains.kotlin.gradle.internal.KaptExecution java.lang.reflect.InvocationTargetException (no error message) 
Java :: java 8 datediff in days 
Java :: java date to string 
Java :: check if sqlexception is duplicate entry java 
ADD CONTENT
Topic
Content
Source link
Name
5+7 =