Nightwalker Posted October 19, 2013 Report Share Posted October 19, 2013 Всем привет! Скажите пожалуйста как можно перенаправить скрипт установленный на порту 8000 на порт 80? То-есть, если в адресной строке набрать IP адрес то будет открываться страница что находится на порту 8000.На данный момент при наборе адреса открывается страница апача. Скажите пожалуйста как это можно сделать? система Centos 6. Link to comment Share on other sites More sharing options...
kvazimoda Posted October 19, 2013 Report Share Posted October 19, 2013 iptables -t nat -A PREROUTING -p tcp --dport 80 -j REDIRECT --to-ports 8000Хотя, я и не уверен, что в Centos iptables именно такой.P.S.: Полезно будет ознакомиться. Link to comment Share on other sites More sharing options...
Nightwalker Posted October 19, 2013 Author Report Share Posted October 19, 2013 Спасибо! Работает Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now