~# sudo cp /etc/nginx/sites-available/domainutama /etc/nginx/sites-available/subdomainutama

~# sudo nano /etc/nginx/sites-available/subdomainutama

server {

listen 80;
listen [::]:80;

root /usr/share/nginx/domainutama/subdomain;
index index.php index.html index.htm;

server_name subdomain.domainutama.com www.subdomain.domainutama.com;

location / {
try_files $uri $uri/ =404;
}
}

~# sudo ln -s /etc/nginx/sites-available/subdomainutama /etc/nginx/sites-enabled/subdomainutama

~# sudo nginx -t

~# sudo service nginx restart

Tinggalkan Komentar :

comments

LEAVE A REPLY

Please enter your comment!
Please enter your name here