Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
ブラウザのmylocal:2700を介してローカルWebサーバーmylocal:80にアクセスしたい。小さな努力でそれをどのように達成できますか?問題は、外部アプリケーションAPIを使用していて、アプリケーションのオリジンとしてmylocal:2700が必要なことです。複数のマシンで作業しています。いずれかのマシンのローカルサーバーはmylocal:2700です。私はそれを変えることはできません。だから私は他のすべてのマシンに変更しています。私たちはapacheとubuntuを使用しています。
iptables -t nat -A PREROUTING -p tcp --dport 27000 -j REDIRECT --to-port 80