Difference between revisions of "IPv6 Web: Web Server Apache2"
Onnowpurbo (talk | contribs) (Created page with "Apache web server mendukung IPv6 secara native oleh maintainer sejak 2.0.14. Instalasi Apache2 dan PHP tanpa menginstalasi SQL Server dapat dilakukan menggunakan perintah beri...") |
Onnowpurbo (talk | contribs) |
||
| (One intermediate revision by the same user not shown) | |||
| Line 1: | Line 1: | ||
Apache web server mendukung IPv6 secara native oleh maintainer sejak 2.0.14. | Apache web server mendukung IPv6 secara native oleh maintainer sejak 2.0.14. | ||
| + | |||
Instalasi Apache2 dan PHP tanpa menginstalasi SQL Server dapat dilakukan menggunakan perintah berikut: | Instalasi Apache2 dan PHP tanpa menginstalasi SQL Server dapat dilakukan menggunakan perintah berikut: | ||
| − | |||
| − | |||
| − | Virtual Host Listen ke semua IP yang ada di Interface | + | apt-get install apache2 libphp-adodb \ |
| + | php-mysql php-gd php-curl php-pear unzip php-xmlrpc | ||
| + | |||
| + | ==Virtual Host Listen ke semua IP yang ada di Interface== | ||
| + | |||
Konfigurasi Apache agar listen ke semua address interface, edit: | Konfigurasi Apache agar listen ke semua address interface, edit: | ||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | + | vi /etc/apache2/sites-enabled/000-default.conf | |
| − | + | ||
| − | + | Pastikan *:80 agar sebuah IP (IPv4 & IPv6) bisa tersambung | |
| + | |||
| + | <VirtualHost *:80> | ||
| + | # ….. konfigurasi | ||
| + | </VirtualHost> | ||
| + | |||
| + | Restart Apache | ||
| + | |||
| + | /etc/init.d/apache2 restart | ||
Setelah Apache2 di restart, cek dengan nstat | Setelah Apache2 di restart, cek dengan nstat | ||
| − | + | ||
| + | # netstat -lnptu |grep "apache2\W*$" | ||
| + | |||
Hasilnya kira-kira: | Hasilnya kira-kira: | ||
| − | tcp6 0 0 :::80 :::* LISTEN 1645/apache2 | + | |
| − | Virtual host listen ke IPv6 address saja | + | tcp6 0 0 :::80 :::* LISTEN 1645/apache2 |
| + | |||
| + | Setelah Apache2 di restart, test menggunakan browser dari client ke (misalnya) | ||
| + | |||
| + | http://192.168.0.100 – untuk IPv4 | ||
| + | http://[2001:470:36:ab6::100]/ - untuk IPv6 | ||
| + | |||
| + | |||
| + | ==Virtual host listen ke IPv6 address saja== | ||
| + | |||
Konfigurasi Apache agar listen ke IPv6 address saja, edit: | Konfigurasi Apache agar listen ke IPv6 address saja, edit: | ||
| − | vi /etc/apache2/sites-enabled/000-default.conf | + | |
| + | vi /etc/apache2/sites-enabled/000-default.conf | ||
| + | |||
Pastikan: | Pastikan: | ||
| − | <VirtualHost [2001:470:36:ab6::100]:80> | + | |
| − | + | <VirtualHost [2001:470:36:ab6::100]:80> | |
| − | + | ServerName namaserveripv6 | |
| − | </VirtualHost> | + | # … konfigurasi |
| + | </VirtualHost> | ||
| + | |||
Setelah Apache2 di restart, test menggunakan browser dari client ke (misalnya) | Setelah Apache2 di restart, test menggunakan browser dari client ke (misalnya) | ||
| − | + | ||
| − | Virtual host listen ke IPv6 dan IPv4 address spesifik | + | http://[2001:470:36:ab6::100]/ - untuk IPv6 |
| + | |||
| + | ==Virtual host listen ke IPv6 dan IPv4 address spesifik== | ||
| + | |||
Konfigurasi Apache agar listen ke IPv6 dan IPv4 address spesifik, edit: | Konfigurasi Apache agar listen ke IPv6 dan IPv4 address spesifik, edit: | ||
| − | vi /etc/apache2/sites-enabled/000-default.conf | + | |
| + | vi /etc/apache2/sites-enabled/000-default.conf | ||
| + | |||
Pastikan: | Pastikan: | ||
| − | <VirtualHost [2001:470:36:ab6::100]:80 192.168.0.100:80> | + | |
| − | + | <VirtualHost [2001:470:36:ab6::100]:80 192.168.0.100:80> | |
| − | + | ServerName namaserveripv6danipv4.domainanda | |
| − | </VirtualHost> | + | # … konfigurasi lainnya |
| + | </VirtualHost> | ||
Setelah Apache2 di restart, test menggunakan browser dari client ke (misalnya) | Setelah Apache2 di restart, test menggunakan browser dari client ke (misalnya) | ||
| − | + | ||
| − | + | http://192.168.0.100 – untuk IPv4 | |
| + | http://[2001:470:36:ab6::100]/ - untuk IPv6 | ||
Latest revision as of 07:15, 4 February 2019
Apache web server mendukung IPv6 secara native oleh maintainer sejak 2.0.14.
Instalasi Apache2 dan PHP tanpa menginstalasi SQL Server dapat dilakukan menggunakan perintah berikut:
apt-get install apache2 libphp-adodb \ php-mysql php-gd php-curl php-pear unzip php-xmlrpc
Virtual Host Listen ke semua IP yang ada di Interface
Konfigurasi Apache agar listen ke semua address interface, edit:
vi /etc/apache2/sites-enabled/000-default.conf
Pastikan *:80 agar sebuah IP (IPv4 & IPv6) bisa tersambung
<VirtualHost *:80> # ….. konfigurasi </VirtualHost>
Restart Apache
/etc/init.d/apache2 restart
Setelah Apache2 di restart, cek dengan nstat
# netstat -lnptu |grep "apache2\W*$"
Hasilnya kira-kira:
tcp6 0 0 :::80 :::* LISTEN 1645/apache2
Setelah Apache2 di restart, test menggunakan browser dari client ke (misalnya)
http://192.168.0.100 – untuk IPv4 http://[2001:470:36:ab6::100]/ - untuk IPv6
Virtual host listen ke IPv6 address saja
Konfigurasi Apache agar listen ke IPv6 address saja, edit:
vi /etc/apache2/sites-enabled/000-default.conf
Pastikan:
<VirtualHost [2001:470:36:ab6::100]:80> ServerName namaserveripv6 # … konfigurasi </VirtualHost>
Setelah Apache2 di restart, test menggunakan browser dari client ke (misalnya)
http://[2001:470:36:ab6::100]/ - untuk IPv6
Virtual host listen ke IPv6 dan IPv4 address spesifik
Konfigurasi Apache agar listen ke IPv6 dan IPv4 address spesifik, edit:
vi /etc/apache2/sites-enabled/000-default.conf
Pastikan:
<VirtualHost [2001:470:36:ab6::100]:80 192.168.0.100:80>
ServerName namaserveripv6danipv4.domainanda
# … konfigurasi lainnya
</VirtualHost>
Setelah Apache2 di restart, test menggunakan browser dari client ke (misalnya)
http://192.168.0.100 – untuk IPv4 http://[2001:470:36:ab6::100]/ - untuk IPv6