Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Wed Jul 27, 2011 11:03 am 
Offline
Senior Newbie
User avatar

Joined: Mon Jan 03, 2011 7:43 am
Posts: 12
I run debian6 and apache2.I want use ipv4 and ipv6 on single site.

For example,I have abc.me domain.I want abc.me links ipv4 & ipv6.I have set abc.me apache file.

/etc/apache2/sites-available/abc.me

Code:
<VirtualHost *:80>
     ServerAdmin admin@abc.me
     ServerName abc.me
     ServerAlias abc.me
     DocumentRoot /home/public/
       <Directory /home/public/>
                Options -Indexes FollowSymLinks MultiViews
                AllowOverride All
                Order allow,deny
                allow from all
        </Directory>
     ErrorLog /home/logs/error.log
     CustomLog /home/logs/access.log combined
</VirtualHost>


Top
   
 Post subject:
PostPosted: Thu Jul 28, 2011 4:38 am 
Offline
Senior Newbie

Joined: Thu Jul 28, 2011 4:33 am
Posts: 10
Website: http://www.fangsoft.net
I just finished setting up ipv6. After quite a bit of searching around, I hope I got it right! Documentation for doing most stuff with ipv6 sucks, so it's hard to tell if what I'm doing is correct (and if so, am I doing it optimally?).

Code:
<VirtualHost 173.255.198.65:80 [2600:3c00::f03c:91ff:fe93:824a]:80>
   ServerAdmin a@abc.com
   ServerName fangsoft.net
   ServerAlias www.fangsoft.net
   DocumentRoot /srv/www/fangsoft.net/public_html/
   ErrorLog /srv/www/fangsoft.net/logs/error.log
   CustomLog /srv/www/fangsoft.net/logs/access.log combined
</VirtualHost>

#gotta split up fangsoft.net and www.fangsoft.net because a wildcard in the CN field of a cert doesn't apply to the root domain
#CN=*.fangsoft.net works for www.fangsoft.net and proxy.fangsoft.net but not fangsoft.net
<VirtualHost 173.255.198.65:443 [2600:3c00::f03c:91ff:fe93:824a]:443>
   ServerAdmin a@abc.com
   ServerName fangsoft.net
   DocumentRoot /srv/www/fangsoft.net/public_html/
   ErrorLog /srv/www/fangsoft.net/logs/error.log
   CustomLog /srv/www/fangsoft.net/logs/access.log combined

   SSLEngine On
   SSLCertificateFile /etc/apache2/ssl/fangsoft.net.pem
   SSLCertificateKeyFile /etc/apache2/ssl/fangsoft.net.key
</VirtualHost>

<VirtualHost 173.255.198.65:443 [2600:3c00::f03c:91ff:fe93:824a]:443>
   ServerAdmin a@abc.com
   ServerName www.fangsoft.net
   DocumentRoot /srv/www/fangsoft.net/public_html/
   ErrorLog /srv/www/fangsoft.net/logs/error.log
   CustomLog /srv/www/fangsoft.net/logs/access.log combined

   SSLEngine On
   SSLCertificateFile /etc/apache2/ssl/subdomain.fangsoft.net.pem
   SSLCertificateKeyFile /etc/apache2/ssl/subdomain.fangsoft.net.key
</VirtualHost>


Also, you need to change your ports.conf so apache listens correctly:

Code:
NameVirtualHost 173.255.198.65:80
NameVirtualHost [2600:3c00::f03c:91ff:fe93:824a]:80
Listen 80

<IfModule mod_ssl.c>
    # If you add NameVirtualHost *:443 here, you will also have to change
    # the VirtualHost statement in /etc/apache2/sites-available/default-ssl
    # to <VirtualHost *:443>
    # Server Name Indication for SSL named virtual hosts is currently not
    # supported by MSIE on Windows XP.
   NameVirtualHost 173.255.198.65:443
   NameVirtualHost [2600:3c00::f03c:91ff:fe93:824a]:443
    Listen 443
</IfModule>

<IfModule mod_gnutls.c>
    Listen 443
</IfModule>


And don't forget to add AAAA entries for every A entry in the DNS manager (I did this correctly, right?):

Image

It's working (when I reload apache, it doesn't spit out any errors or warnings, and I can visit my site without any issues). My site (and all relevant subdomains) pass this test. Unfortunately, I don't personally have ipv6, so I have no idea how to actually test if it works in practice.

To someone who actually has experience with this, is everything I've done correct?


Top
   
 Post subject:
PostPosted: Thu Jul 28, 2011 1:08 pm 
Offline
Senior Member

Joined: Wed Mar 03, 2010 2:04 pm
Posts: 111
You can test IPv6 if you set up an SSH tunnel through your Linode (at least I can, from Fremont). Since you're in Dallas you should be able to do it as well. Your site works fine for me, and it looks like I'm connecting via IPv6. netstat truncates the output, but yours is the only IPv6 site I'm browsing and it does show:

Code:
2600:3c00::f03c:91ff:80


So...it looks like yours is working fine.


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group