Logo
  • Entries
  • Comments
  • Popular
Recent Posts
  • January 2012
  • December 2011
  • October 2011
  • July 2011
  • June 2011
  • May 2011
  • April 2011
  • March 2011
  • February 2011
  • January 2011
  • December 2010
  • November 2010
  • October 2010
  • September 2010
  • August 2010
  • July 2010
  • June 2010
  • May 2010
  • April 2010
  • March 2010
  • February 2010
  • January 2010
  • December 2009
  • November 2009
Recent Comments
  • Ferry Lee Wah, nyasar sampe kemari.. hemm saia coba dulu mas bos. t...
  • Estiko Wah, saya belum pernah menggunakan. Sudah coba untuk menggun...
  • susilo nice post gan, btw, mau tanya juga, saya punya modem prolin...
  • Estiko Pakai linuxnya apa? Biasanya enable networknya itu setelah b...
  • meneer mas,kok dtampilan network connection ga ada pilihan "enable ...
Popular Articles
  • Sekolah pun mengajarkan kita membajak (32)
  • Instalasi Ubuntu Studio 9.10 (bagian 2) (24)
  • Link Sahabat (22)
  • Linux Mint Debian Edition (20)
  • Kepintaran anda mencari software alternatif (19)
  • Home
  • About
  • Kontak Saya
  • Link Sahabat
  • Sitemap

Membuat Virtualhost pada Localhost OpenSUSE

Posted by Estiko on Jan 24, 2012 in Server, tips | 0 comments

Membuat Virtualhost pada Localhost OpenSUSE

Melanjutkan catatan sebelumnya tentang Install LAMP Server pada OpenSUSE dan Konfigurasi LAMP Server pada OpenSUSE, kini saya ingin berbagi tentang cara Membuat Virtualhost pada Localhost OpenSUSE. Dengan menggunakan Virtualhost, maka kita bisa menggunakan domain apapun yang kita inginkan untuk membuat alamat website pada localhost. Berikut ini cara Membuat Virtualhost pada Localhost OpenSUSE.

virtual opensuse1 Membuat Virtualhost pada Localhost OpenSUSE

Membuat Virtualhost pada Localhost OpenSUSE:

1. Siapkan nama domain yang akan digunakan sebagai Virtualhost. Sebagai contoh, saya disini menggunakan estiko.lan sebagai alamat Virtualhost pada Localhost OpenSUSE saya.

2. Buka terminal OpenSUSE anda, masuk sebagai root. Pindah ke direktori /etc/apache2/vhosts.d

cd /etc/apache2/vhosts.d

3. Copy file vhost.template, dan rubah menjadi estiko.lan.conf

cp vhost.template estiko.lan.conf

4. Buka file estiko.lan.conf

vi estiko.lan.conf

Edit file tersebut menjadi:

#
# VirtualHost template
# Note: to use the template, rename it to /etc/apache2/vhost.d/yourvhost.conf.
# Files must have the .conf suffix to be loaded.
#
# See /usr/share/doc/packages/apache2/README.QUICKSTART for further hints
# about virtual hosts.
#
# NameVirtualHost statements can be added to /etc/apache2/listen.conf.
#
# Almost any Apache directive may go into a VirtualHost container.
# The first VirtualHost section is used for requests without a known
# server name.
#
<VirtualHost estiko.lan:80>
ServerAdmin estiko@mediaqu.com
ServerName estiko.lan

# DocumentRoot: The directory out of which you will serve your
# documents. By default, all requests are taken from this directory, but
# symbolic links and aliases may be used to point to other locations.
DocumentRoot /home/estiko/public_html/estiko.lan

# if not specified, the global error log is used
ErrorLog /var/log/apache2/estiko.lan-error_log
CustomLog /var/log/apache2/estiko.lan-access_log combined

# don’t loose time with IP address lookups
HostnameLookups Off

# needed for named virtual hosts
UseCanonicalName Off

# configures the footer on server-generated documents
ServerSignature On

# Optionally, include *.conf files from /etc/apache2/conf.d/
#
# For example, to allow execution of PHP scripts:
#
# Include /etc/apache2/conf.d/php5.conf
#
# or, to include all configuration snippets added by packages:
# Include /etc/apache2/conf.d/*.conf

# ScriptAlias: This controls which directories contain server scripts.
# ScriptAliases are essentially the same as Aliases, except that
# documents in the realname directory are treated as applications and
# run by the server when requested rather than as documents sent to the client.
# The same rules about trailing “/” apply to ScriptAlias directives as to
# Alias.
#
ScriptAlias /cgi-bin/ “/srv/www/vhosts/dummy-host.example.com/cgi-bin/”

# “/srv/www/cgi-bin” should be changed to whatever your ScriptAliased
# CGI directory exists, if you have one, and where ScriptAlias points to.
#
<Directory “/srv/www/vhosts/dummy-host.example.com/cgi-bin”>
AllowOverride None
Options +ExecCGI -Includes
Order allow,deny
Allow from all
</Directory>

# UserDir: The name of the directory that is appended onto a user’s home
# directory if a ~user request is received.
#
# To disable it, simply remove userdir from the list of modules in APACHE_MODULES
# in /etc/sysconfig/apache2.
#
<IfModule mod_userdir.c>
# Note that the name of the user directory (“public_html”) cannot simply be
# changed here, since it is a compile time setting. The apache package
# would have to be rebuilt. You could work around by deleting
# /usr/sbin/suexec, but then all scripts from the directories would be
# executed with the UID of the webserver.
UserDir public_html
# The actual configuration of the directory is in
# /etc/apache2/mod_userdir.conf.
Include /etc/apache2/mod_userdir.conf
# You can, however, change the ~ if you find it awkward, by mapping e.g.
# http://www.example.com/users/karl-heinz/ –> /home/karl-heinz/public_html/
#AliasMatch ^/users/([a-zA-Z0-9-_.]*)/?(.*) /home/$1/public_html/$2
</IfModule>

#
# This should be changed to whatever you set DocumentRoot to.
#
<Directory “/home/estiko/public_html/estiko.lan”>

#
# Possible values for the Options directive are “None”, “All”,
# or any combination of:
#   Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
#
# Note that “MultiViews” must be named *explicitly* — “Options All”
# doesn’t give it to you.
#
# The Options directive is both complicated and important.  Please see
# http://httpd.apache.org/docs-2.2/mod/core.html#options
# for more information.
#
Options All

#
# AllowOverride controls what directives may be placed in .htaccess files.
# It can be “All”, “None”, or any combination of the keywords:
#   Options FileInfo AuthConfig Limit
#
AllowOverride All

#
# Controls who can get stuff from this server.
#
Order allow,deny
Allow from all

</Directory>

</VirtualHost>

Catatan: Untuk direktori dokumen root, saya membuat folder public_html pada direktori /home/estiko (username OpenSUSE saya), serta membuat direktori estiko.lan pada direktori public_html. Anda rubah pada /home/estiko/public_html/estiko.lan menjadi folder /home/usernameanda/public_html/estiko.lan. Atau anda bisa menggantinya dengan direktori lain yang anda inginkan.

5. Tambahkan estiko.lan pada /etc/hosts dengan menggunakan IP Address 127.0.0.2

vi /etc/hosts

127.0.0.1       localhost
127.0.0.2       estiko.lan

6. Jika telah selesai, restart apache

service apache2 restart

7. Buat file txt sebagai penanda. Misal:

vi ~/public_html/estiko.lan/test.txt

Isi dengan sembarang kata. Kemudian save.

8. Test melalui browser denga alamat http://estiko.lan. Maka yang akan tampil adalah direktori yang berisi file txt yang telah kita buat.

Jika semua konfigurasi Virtualhost sudah benar, maka kita bisa mengisi direktori dokumen root dengan file konfigurasi website yang kita inginkan. Dengan cara yang sama, anda bisa Membuat Virtualhost pada Localhost OpenSUSE dengan domain yang lain.

Semoga catatan tentang Membuat Virtualhost pada Localhost OpenSUSE ini bisa bermanfaat bagi anda. Selamat mencoba membuat VirtualHost pada Localhost OpenSUSE, semoga berhasil.

Materi referensi: Membuat Virtualhost pada Localhost OpenSUSE

Related Posts:

  • snapshot3 150x150 Membuat Virtualhost pada Localhost OpenSUSE Konfigurasi LAMP Server pada OpenSUSE Konfigurasi LAMP Server pada OpenSUSE Melanjutkan catatan pertama tentang Install LAMP Server pada OpenSUSE, kini saya ingin berbagi tentang Konfigurasi LAMP Server pada OpenSUSE. Saat pertama ...
  • snapshot2 150x150 Membuat Virtualhost pada Localhost OpenSUSE Install LAMP Server pada OpenSUSE Install LAMP Server pada OpenSUSE Mempersenjatai Linux yang saya gunakan dengan LAMP Server sepertinya sudah menjadi sebuah hal yang wajib bagi saya. Hal ini dikarenakan saya ...
  • Screenshot 3 150x150 Membuat Virtualhost pada Localhost OpenSUSE Install Ioncube pada Localhost Linux Pada catatan kali ini, saya ingin berbagi cara install Ioncube pada Localhost Linux. Karena sebelumnya, saya pernah menulis tentang cara install Ioncube pada cPanel Server ...
  • wordpress 150x150 Membuat Virtualhost pada Localhost OpenSUSE Install WordPress pada Localhost Ubuntu Pada catatan terdahulu, saya pernah menulis tentang install WordPress pada Localhost Ubuntu dengan menggunakan XAMPP. Kali ini, saya ingin berbagi tentang cara Install WordPress pada ...
  • snapshot4 150x150 Membuat Virtualhost pada Localhost OpenSUSE Konfigurasi wvdial telkomsel pada OpenSUSE Setelah bermasalah dengan modem smartfren EC1260-2 dan Boradcom Wifi pada OpenSUSE, kini giliran modem GSM yang saya gunakan. Bukan karena modem tidak terbaca, namun dikarenakan ...

Incoming search terms for the article:

  • install prozilla ubuntu 10 04
  • linux mint אובונטו
  • smartfren
Post Tag : cara Membuat Virtualhost pada Localhost OpenSUSE, Install LAMP Server pada OpenSUSE, Konfigurasi LAMP Server pada OpenSUSE, Membuat Virtualhost, Membuat Virtualhost pada Localhost, Membuat Virtualhost pada Localhost OpenSUSE, Virtualhost pada Localhost OpenSUSE

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

*

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

 

Blogger Banyumas

Komunitas Blogger Banyumas

Tulisan Terbaru

  • Membuat Virtualhost pada Localhost OpenSUSE
  • Konfigurasi LAMP Server pada OpenSUSE
  • Install LAMP Server pada OpenSUSE
  • Install Bluefish pada OpenSUSE 12.1
  • Konfigurasi wvdial telkomsel pada OpenSUSE

Arsip

Link

  • Cah Sholihah
  • Catatan Hassan
  • Estiko @ Malhikdua
  • GadgetBoi
  • Jimbun Blogspot
  • Jimbun Punya
  • Komunitas Blogger Banyumas
  • Kucing-Ngeblog
  • Latare Kaki Dablenk
  • MediaQu
  • MediaQU Flash Game
  • PDF Look
  • Pradna
  • Sanjati

Popular Search

  • Linux Mint 11
  • kelebihan linux mint
  • pengertian inkscape
  • flock terbaru
  • Kekurangan Flock

RSS Jimbun Punya

  • Monetize Website dengan BacklinksGenius
  • Adsense for Mobile
  • Konfigurasi server Localhost Windows (XAMPP)
  • Support terhadap Flock Browser telah dihentikan
  • Promosi tulisan lama menggunakan STT2
Designed by Elegant Themes | Powered by Wordpress | Modified by My Wordpress Theme