-2

Is it possible to make apache webserver listen to a ip range? for example using:

listen 192.168.0.*:80   

or

listen 192.168.0.1/5:80   

(these examples are for IPv4 but i need it for IPv6 range.)

MadHatter
  • 78,442
  • 20
  • 178
  • 229
TD_Nijboer
  • 169
  • 8

2 Answers2

2

Unfortunately not. The only options are to either specify each address/port combination, like so:

Listen 192.168.0.1:80

or one port on all available interfaces, like so:

Listen 80
Jenny D
  • 27,358
  • 21
  • 74
  • 110
0

Okey the way i wanted is not possible.
but.

Listen 80     

and

<VirtualHost [2001:1FF8:4310:A005:0010::1]:80>

combined deliver sort of the same result.

although i would like to exclude some ip addresses for other services. but they are now diverted to 000-default

TD_Nijboer
  • 169
  • 8