IPv6: Orek-orekan: Difference between revisions

From OnnoCenterWiki
Jump to navigationJump to search
Sarujih (talk | contribs)
Sarujih (talk | contribs)
Line 4: Line 4:


* Konfigurasi file port.conf untuk IPv6.
* Konfigurasi file port.conf untuk IPv6.
   # If you just change the port or add more ports here, you will likely also
   # If you just change the port or add more ports here, you will likely also
   # have to change the VirtualHost statement in
   # have to change the VirtualHost statement in
Line 10: Line 11:
   # Debian etch). See /usr/share/doc/apache2.2-common/NEWS.Debian.gz and
   # Debian etch). See /usr/share/doc/apache2.2-common/NEWS.Debian.gz and
   # README.Debian.gz
   # README.Debian.gz
   Listen [2001:470:36:8b5::1]:80
   Listen [2001:470:36:8b5::1]:80
   NameVirtualHost [2001:470:36:8b5::1]:80
   NameVirtualHost [2001:470:36:8b5::1]:80

Revision as of 06:57, 17 June 2013

Apache2

Pada Apache v2 untuk konfigurasi file port.conf yang digunakan terdapat pada direktori /etc/apache2. berikut contoh konfigurasi:

  • Konfigurasi file port.conf untuk IPv6.
 # If you just change the port or add more ports here, you will likely also
 # have to change the VirtualHost statement in
 # /etc/apache2/sites-enabled/000-default
 # This is also true if you have upgraded from before 2.2.9-3 (i.e. from
 # Debian etch). See /usr/share/doc/apache2.2-common/NEWS.Debian.gz and
 # README.Debian.gz
 Listen [2001:470:36:8b5::1]:80
 NameVirtualHost [2001:470:36:8b5::1]:80


  • Konfigurasi file port.conf untuk dual stack (IPv4 dan IPv6).
 # If you just change the port or add more ports here, you will likely also
 # have to change the VirtualHost statement in
 # /etc/apache2/sites-enabled/000-default
 # This is also true if you have upgraded from before 2.2.9-3 (i.e. from
 # Debian etch). See /usr/share/doc/apache2.2-common/NEWS.Debian.gz and
 # README.Debian.gz
 Listen [2001:470:36:8b5::1]:80
 NameVirtualHost [2001:470:36:8b5::1]:80
 Listen 192.168.0.1:80
 NameVirtualHost 192.168.0.1:80


Pada Apache2, konfigurasi standar (file default)untuk dapat menampilkan halaman situs internet ditempatkan pada directory /etc/apache2/site-available/. Berikut contoh konfigurasi:

  • konfigurasi file default untuk IPv6
 <VirtualHost [2001:470:36:8b5::1]:80>
       ServerAdmin webmaster@localhost
       DocumentRoot /var/www
       ...
       ...
       
       
 </VirtualHost>
  • konfigurasi file default pada Dual Stack (IPv4 dan IPv6)
 <VirtualHost 192.168.0.1:80[2001:470:36:8b5::1]:80>
       ServerAdmin webmaster@localhost
       DocumentRoot /var/www
       ...
       ...
       
       
 </VirtualHost>