how to install and configure nginx webserver on ubuntu

Oct 3rd, 2009 | Posted by

caranya cukup mudah :

  1. install nginx
    user@computer:$ sudo apt-get install nginx
  2. jalankan nginx
    user@computer:$ sudo /etc/init.d/nginx start
  3. kemudian buka browser dan buka url http://youripaddress dan seharusnya sudah ada tampilan seperti berikut :

    Welcome to nginx!

    Welcome to nginx!

  4. nginx meletakkan vhost2-nya path /etc/nginx/sites-available/
  5. sedangkan vhost2 yang aktif ada di path /etc/nginx/sites-enabled/. file2 di folder ini akan lebih mudah di symbolic link dari path /etc/nginx/sites-available/ yang berisi daftar vhost yang sudah kita setting.
  6. nginx akan membuat vhost default yang aktif :
    user@computer:$ ls -lah /etc/nginx/sites-enabled/
    total 8.0K
    drwxr-xr-x 2 root root 4.0K 2009-10-03 12:41 .
    drwxr-xr-x 5 root root 4.0K 2009-10-03 12:54 ..
    lrwxrwxrwx 1 root root   34 2009-10-03 12:41 default -> /etc/nginx/sites-available/default

nginx version: nginx/0.6.35
Linux cuplis 2.6.24-16-server #1 SMP Thu Apr 10 13:58:00 UTC 2008 i686 GNU/Linux

source : http://www.ubuntugeek.com/howto-install-nginx-webserver-in-ubuntu-804-hardy-heron.html

Related posts:

  1. how to install and configure dhcp server
  2. how to install kpdf on ubuntu jaunty
  3. how to restore default panel on ubuntu
  4. how to install VMware-server-1.0.8 on Ubuntu Jaunty Jackalope
  5. setting ip dan dns di ubuntu
Tags: ,
No comments yet.
*