what I want is,
http://example.com:10522 is working perfect
I want apache to handle it like
http:\\test.example.com
10522 is another webserver not the apache web directory - its standalone web server running on port 10522
what I want is,
http://example.com:10522 is working perfect
I want apache to handle it like
http:\\test.example.com
10522 is another webserver not the apache web directory - its standalone web server running on port 10522
You can do it on a firewall - redirect port 10522 to 80. In iptables, it could be:
Access on test.example.com and test.example.com:10522 will be treated in the same VirtualHost and both will be seen as port 80.
But it's not clear from your question if it is what you want to accomplish. Not even what operating system you use. And what do you mean with "10522 is another webserver"?
EDIT AFTER CLARIFICATION OF ANSWER:
There can be at least two ways how to do it in Apache
Permanent redirection to example.com like this:
RedirectPermanent / example.com:10522
And user will be redirected to example.com:10522 at first access to test.example.com
You simply need to configure mod_proxy on your Apache httpd to act as a reverse proxy for
test.example.com:10522
. The basic examples in the documentation should be sufficient.