Apache on multiple ports

I have Apache listening to both ports 80 and 8080.

I need each and every site to be accessible through both ports

That is, www.example.com and www.example.com:8080 must be the same exact site, but the two ports are required because my network blocks port 80 from some hosts and port 8080 from some other hosts, the visitors have to use either one depending of which one works for them.

Previously I had the router to redirect calls on 8080 to 80 (Apache was listening only on 80 at the time), but that setting isn't really good now (several changes on the network settings makes the use of that router feature innapropriate).

Any idea on how to do that without duplicating the <virtualhost> entry for each and every site?

FYI only one IP is used (and it's not a fixed IP), only one domain name is used (dynamic DNS) with sub-domains for the different sites.

Thanks in advance Apache on multiple ports

 

 

 

 

Top