Wondering how to setup Apache2 allow from IPV6? Our in-house experts are here to help you out with this article. Our server management services is here to offer a lending hand with your queries and issues.
Apache2 allow from IPV6
Most of the CDN like Cloudflare, SUCURI, AKAMAI let you enable IPv6 from their edge network.
However, if you are not using CDN that provides IPv6 and needs to enable your website, then here is how you can do it.
Before enabling the IPv6, you need to know the IPv6 address. There are multiple ways to locate the IPv6 in Linux/CentOS.
Using ifconfig
You can use
ifconfig
with grep inet6 to find the address
[root@chandan conf]# ifconfig |grep inet6 inet6 2400:6180:0:d0::1f33:d001 prefixlen 64 scopeid 0x0<global> inet6 ::1 prefixlen 128 scopeid 0x10<host> [root@chandan conf]#
Using IP Show
[root@chandan conf]# ip -6 addr show 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 state UNKNOWN qlen 1 inet6 ::1/128 scope host valid_lft forever preferred_lft forever 2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 state UP qlen 1000 inet6 2400:6180:0:d0::1f33:d001/64 scope global valid_lft forever preferred_lft forever [root@chandan conf]#
So now you know your server IPv6 address.
Enable IPv6 in Apache HTTP Server
Assuming you have installed Apache, and it’s up and running.
- Go to the conf folder (default installation location would be /etc/httpd/conf)
- Take a backup of
filehttpd.conf
- Add the Listen directive with the port number
Listen [2400:6180:0:d0::1f33:d001]:80
Note: ensure to put IPv6 in the square box.
- Restart the Apache HTTP server
service httpd restart
[root@chandan conf]# netstat -anlp |grep 80 tcp 0 0 139.59.227.20:80 0.0.0.0:* LISTEN 23047/httpd tcp6 0 0 2400:6180:0:d0::1f33:80 :::* LISTEN 23047/httpd unix 2 [ ACC ] STREAM LISTENING 14080 1091/master public/qmgr [root@chandan conf]#
And, as you can see the second line starting with tcp6.
[Looking for a solution to another query? We’re happy to help.]
Conclusion
In this article, we provide a quick and simple solution from our Support team to setup Apache2 allow from IPV6.
PREVENT YOUR SERVER FROM CRASHING!
Never again lose customers to poor server speed! Let us help you.
Our server experts will monitor & maintain your server 24/7 so that it remains lightning fast and secure.
var google_conversion_label = "owonCMyG5nEQ0aD71QM";
0 Comments