Bukan Seorang Blogger

LightBlog

Breaking

LightBlog

Server Dengan Beberapa Situs


Hari ini saya akan menulis tentang pembuatan situs
tepatnya 1 server dengan beberapa situs
di sini saya menggunakan APACHE2

contohnya saya ingin membuat situs dengan domain www.blesstea.tk
langkah awalnya masuk dulu ke direktory "/etc/apache2/sites-available"
lalu buka file  "000-default.conf"
dan edit sesuai dengan nama situs yang mau di buat.

<VirtualHost *:80>
        ServerName blesstea.tk
        ServerAlias www.blesstea.tk

        ServerAdmin webmaster@blesstea.tk
        DocumentRoot /var/www/blesstea.tk

        # Available loglevels: trace8, ..., trace1, debug, info, notice, warn,
        # error, crit, alert, emerg.
        # It is also possible to configure the loglevel for particular
        # modules, e.g.
        #LogLevel info ssl:warn

        ErrorLog ${APACHE_LOG_DIR}/error-blesstea.log
        CustomLog ${APACHE_LOG_DIR}/access-blesstea.log combined

        # For most configuration files from conf-available/, which are
        # enabled or disabled at a global level, it is possible to
        # include a line for only one particular virtual host. For example the
        # following line enables the CGI configuration for this host only
        # after it has been globally disabled with "a2disconf".
        #Include conf-available/serve-cgi-bin.conf
</VirtualHost>

# vim: syntax=apache ts=4 sw=4 sts=4 sr noet
save dan beri nama "blesstea.tk.conf"

lalu copy semua situs yang sudah di buat pada direktory "/var/www"
misalnya "/var/www/blesstea.tk"

setelah itu ketikan perintah "a2ensite blesstea.tk.conf" agar stus yang di buat bisa aktif.
lalu restart apache2 nya dengan perintah "service apache2 reload"
dan ok harusnya sudah selesai
mudah bukan?


Tidak ada komentar:

Posting Komentar

Adbox