Quote:
Originally Posted by JJJCR
Hi Angel, sorry quite new with apache so i had to edit those files .htaccess, mod_http_proxy and mod_rewrite and place those codes? thanks.
|
No, you'd create a .htaccess file in the right location and use the modules by virtue of the directives listed. My personal preference would be to put any config in your httpd.conf directly, not in an .htaccess file.
Another approach could be to use mod_proxy:
ProxyPass /
http://127.0.0.1:8080
within the virtualhost for the "scanfiles" website. That way you don't redirect the client at all, and you always have the nice looking url.
Note that the solution given here does NOT answer your question, as your question is an invalid one. DNS names have nothing whatsoever to do with ports, it doesn't make sense to resolve something to a port, so you'd do it in a different way.