Tech Blog

Coding

Enable IPv6 support in Nginx

By Ritu fichadiya1 min read
← Back to blog

Nginx is a web server which is commonly used as a reverse proxy and load balancer to manage incoming traffic.

IPv6 provides a much larger address pool (128-bit address) than IPv4 (32-bit address) so that many more devices can be connected to the internet. It also improves addressing and routing of network traffic.

Following are the set of instructions to enable IPv6 on Nginx.

You should already have a configuration as follows which supports IPv4 in your default.conf file.

http

Or https

Now you can update your Nginx configuration with following lines which supports IPv6 as well as IPv4

For http

For https

In both of the above screenshots, 80 and 443 without [::]: suggests IPv4 and with [::]: suggests IPv6 support.

If you want a server block that only supports IPv6 not IPv4, then use ipv6only flag.

http

Or https

If you want to bind a single IP 

http

Or https

The last step is to update the AAAA record of your domain at the registrar. Once updated you can use the network which assigns IPv6 to your device/computer and check the reachability over IPv6.

Keep reading

You may be interested in

Browse all articles →
Active Directory Federation Service
July 5, 20235 min read

Active Directory Federation Service

Active Directory Federation Service (ADFS) uses claims-based identity model to maintain application security and to implement federated identity. ADFS is a concept of Windows Server operating system, that provides users with single sign-on access to the application, those are located across organizational boundaries. For Example: We have 2 organizations – Organization 1 and Organization 2. […]

By Abinash MishraRead More →
Remote Access to Microsoft SQL Database Server
April 5, 20232 min read

Remote Access to Microsoft SQL Database Server

Remote access to a SQL server is important because it allows users to access the server from anywhere, at any time. This enables remote workers to access the data they need when they need it, even if they are not physically in the same location as the server. It also allows IT admins to access […]

By Malkeet SinghRead More →
Types of Load Balancer in AWS
February 6, 20235 min read

Types of Load Balancer in AWS

What is Load Balancing ? Load balancing is a critical component of any scalable and highly available Cloud or On-premise architecture. It helps distribute incoming traffic across multiple servers, improving the availability and scalability of a website or application. In the cloud, load balancing is offered as a service by various cloud providers such as […]

By Keerthik ShenoyRead More →