Redirect port to another directory
My server has the ip 186.209.138.66. I need when someone access the address 186.209.138.66:4000 be directed to the page http: //brphonia.com.br/bloqueio. On my server, the index.html "bloqueio" is in "/dominios/brphonia/public_html /bloqueio/index.html".
How to do this?
-
Hello :) You would likely need to implement some custom iptables firewall rules along with some custom entries in the Apache configuration file. You will likely find several potential solutions by searching for a term such as "redirect Apache port iptables" in a search engine. Thank you. 0 -
I added the following firewall rule: iptables -A INPUT -p tcp --dport 4000 -j ACCEPT Now I need to insert a rule in the apache configuration file (/usr/local/apache/conf/includes/post_virtualhost_global.conf). But what content do I enter? 0
Please sign in to leave a comment.
Comments
2 comments