Facebook Badge
Total Tayangan Halaman
About Me
Blog Archive
Pengikut
Rama Debian. Diberdayakan oleh Blogger.
Debian
Minggu, 07 Agustus 2011
Konfigurasi Web Server
- Masuk sebagai root dengan menekan ctrl+alt+F1
- Nah disini kita login sebagai root, ini sebagai contoh ketikan login: root password : pekanbaru
- server:~# cd /
- jika belum terinstal Apache nya ketitkan perintah dibawah ini
- server:#apt-get install apache2
- ingat pastikan cd debiannya masih aktif di drive cdroom
- oke kita mulai pekerja untuk konfigurasi Apache2, perhatikan betul langkah demi langkah yang penulis buat :p,sekarang kita mencoba
- “ketikan perintah ini sehingga muncul editor dbawah ini kebutulan penulis membuatnya pakai editor nano, nah terserah anda mau buat pakai editor apa aja”
- Nah sekarng kita buat folder untuk menyimpan seluruh website kita kedalam folder /var/www
edit seperti dbawah ini
<html> <head> <title>Konfigurasi Webserver Debian etch4</title> <body><marquee><h1>Selamat Konfigurasi Webserver Anda Berhasil<marquee></h1></b$ </head> </html> |
- Selanjutnya kita edit file di
- server:# cd /etc/apache2/sites-available/default
NameVirtualHost * <VirtualHost *> ServerAdmin webmaster@localhost ServerName www.smkntujuh.sch.id DocumentRoot /var/www/ <Directory /> Options FollowSymLinks AllowOverride None </Directory> <Directory /home/smkntujuh/www/public_html/> Options Indexes FollowSymLinks MultiViews AllowOverride None Order allow,deny allow from all # This directive allows us to have apache2's default start page # in /apache2-default/, but still have / go to the right place # RedirectMatch ^/$ /apache2-default/ </Directory> ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/ <Directory "/usr/lib/cgi-bin"> AllowOverride None Options ExecCGI -MultiViews +SymLinksIfOwnerMatch Order allow,deny Allow from all </Directory> ErrorLog /var/log/apache2/error.log # Possible values include: debug, info, notice, warn, error, crit, # alert, emerg. LogLevel warn CustomLog /var/log/apache2/access.log combined ServerSignature On Alias /doc/ "/usr/share/doc/" <Directory "/usr/share/doc/"> Options Indexes MultiViews FollowSymLinks AllowOverride None Order deny,allow Deny from all Allow from 127.0.0.0/255.0.0.0 ::1/128 </Directory> </VirtualHost> |
- restart apache2 nya
- /etc/init.d/apache2 restart
- Liat di clients buka browser ketikan www.smkntujuh.sch.id, lihat gambar dibawah ini
- Sampai disini konfigurasi server anda berhasil
Label:
Konfigurasi,
Web Server
Langganan:
Posting Komentar (Atom)
0 komentar:
Posting Komentar