Difference between revisions of "Nginx: Instalasi"

From OnnoWiki
Jump to navigation Jump to search
Line 21: Line 21:
  
 
  Welcome to nginx!
 
  Welcome to nginx!
 +
 +
 +
==Konfigurasi Default==
 +
 +
Folder default
 +
 +
root /usr/share/nginx/html;
 +
 +
Edit file
 +
 +
vi /etc/nginx/sites-enabled/default
  
 
==Pranala Menarik==
 
==Pranala Menarik==

Revision as of 09:28, 20 July 2015

Instalasi Nginx saja

sudo apt-get install nginx

Instalasi lengkap dengan mysql dan PHP

sudo apt-get install nginx php5 php5-xmlrpc php5-mysql php5-gd php5-cli php5-curl \
mysql-client mysql-server

Cek / Test

Restart nginx

/etc/init.d/nginx restart

akses melalui web

http://localhost

akan keluar kata-kata

Welcome to nginx!


Konfigurasi Default

Folder default

root /usr/share/nginx/html;

Edit file

vi /etc/nginx/sites-enabled/default

Pranala Menarik