Hi all!

Here's the situation: have installed Turnkey LAMP -> adding website on port 8080 (all configs changes are made (firewall, apach2 conf, etc.). But every try to access http://xxx.xxx.xxx.xxx:8080 redirects to http://xxx.xxx.xxx.xxx (80 port ~ turnkey start webpage).

How to disable such redirecting and avoid it in future?

Big Thnx!

Forum: 
Jeremy Davis's picture

TBH I'm not sure why you are being redirected. I am not aware of any config which we do that should make that happen.

To do a quick and dirty test, I launched a LAMP instance on AWS from the Hub. I then adjusted the default Apache config so it uses port 8080 instead of port 80 (essentially just swapped the port that it uses):

sed -i "s|80|8080|" /etc/apache2/ports.conf
sed -i "s|80|8080|" /etc/apache2/sites-available/000-default.conf
Then restarted Apache:
service apache2 restart
I also needed to update the AWS security group (i.e. AWS firewall; so port 8080 was allowed).

But it all worked fine and the default site was displayed.

Perhaps if you can provide a few more details on exactly what you have done I could help provide more insight?

Add new comment