hi, are its possible use ipv4 on domain and ipv6 on subdomain? i ask to my domain registrar and they say its possible to do. i set A record to @ and www with my ipv4 and AAAA record to ipv6 address. i use centminmod and here my setting for vhost subdomain
server {
listen 80;
server_name www.trial.example.com;
listen [2604:180:1::fd2c:e4xx]:80 ipv6only=on;
return 301 $scheme://trial.example.com$request_uri;
access_log /home/nginx/domains/trial.example.com/log/access.log combined buffer=256k flush=60m;
error_log /home/nginx/domains/trial.example.com/log/error.log;
root /home/nginx/domains/trial.example.com/public;
location ~ (?:^|/)\. {
deny all;
}
location / {
}
include /usr/local/nginx/conf/staticfiles.conf;
include /usr/local/nginx/conf/php.conf;
include /usr/local/nginx/conf/drop.conf;
include /usr/local/nginx/conf/vts_server.conf;
}
i already change NGINX_IPV=‘y’ and now i can access my domain but not my subdomain. what i missed? can someone help solve this? thanks
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Hi!
Looking at the server_name setting, it looks like it is set to www.subdomain.domain.com. Have you added a DNS record for www.subdomain.domain.com? Even if you have added a DNS record for subdomain.domain.com, it will still need a separate record for www.* to work as both of them are not related to each other.
If you want it to be accessible from both www.subdomain.domain.com and subdomain.domain.com, add both to server_name, separated by a space, and make sure that the correct DNS records exist for both of them.
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.