logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: configuring apache web server for IPv6 as well as IPv4
Author
ashwani_ap



Joined: 29 Aug 2007
Posts: 47
Location: Bangalore

PostPosted: Mon 19 Nov '07 13:17    Post subject: configuring apache web server for IPv6 as well as IPv4 Reply with quote

Hi Team,


I have compiled successsfully apache 2.2.0 with the flag on for IPv6 in win XP.
I have two Listen directives in httpd.conf file. One for IPv4 and other for IPv6.

Listen 0.0.0.0:80
Listen [::]:80

But, Apache is listening to all the IPv4 address and only to loop back IPv6 address.
IT is not listening to the global IPv6 address.

If I give the IPv4 and IPv6 on diff port then it listening to all the addresses.
Listen 0.0.0.0:80
Listen [::]:81

I want it to listen on same port.
Can sombody tell me what is the problem. Please write.

-Ashwani-

Admin note:
When we count, you have already threads covering this subject. Does not help you to get an answer.
Back to top
SquallATF



Joined: 19 Oct 2007
Posts: 11

PostPosted: Fri 30 Nov '07 19:00    Post subject: Reply with quote

I have run apache in a same port both IPv4 and IPv6
in httpd.conf
Listen 0.0.0.0:80
Listen [::]:80
con't write together
you can put Listen 0.0.0.0:80 at the default place
and put Listen [::]:80 at the end of the document
I think this may be a bug~
because in the extra conf file the same port Lesten both IPv4 and IPv6 can be write together~
Test again
If doesn't have Virtual host the Apache con't work IPv4 and IPv6 at the same port.If you have a Virtual host must write another main server Listen after the Visual host.The Virtual host Listen can be write IPv4 and IPv6 Listen together before the Virtual host define.Tested Apache 2.2.6/2.3.0-dev with openssl build by vs2008 with 2k3 R2 SDK

Code:
# Secure (SSL/TLS) connections
Include conf/extra/httpd-ssl.conf #ssl define is in a Virtual host
Listen [::]:80



PS:Sorry for my english~~I'm chinese and english is very poor~
PS2:If use vs2008 default sdk (6.0A) the ipv6 port can't be bind~I don't known why~
Back to top


Reply to topic   Topic: configuring apache web server for IPv6 as well as IPv4 View previous topic :: View next topic
Post new topic   Forum Index -> Apache