apache2 301 response and port forwarding

Asked by Matthew H McKenzie on 2012-02-23

Clean Oneiric 64 server install as SSH+LAMP. Webmin amd PHPMyadmin.

Apache2 is version 2.2.20-1ubuntu1.2

Site is accessible from console as http://localhost from elinks.
Site is accessible from LAN as

Using public port 8091 to private port 80.

http://public:8091/phpmyadmin works.... (stock alias).

but http://public:8091 does not (expected to find /var/www) and bounces to http://public - - [23/Feb/2012:08:45:46 +1100] "GET / HTTP/1.1" 301 404 "-" "Mozilla/5.0 (X11; Ubuntu; Linux i686; rv:10.0) Gecko/20100101 Firefox/10.0"

nnn.nnn.nnn.nnn - - [23/Feb/2012:10:59:22 +1100] "GET / HTTP/1.1" 301 360 "-" "Mozilla/5.0 (Windows NT 5.1; rv:9.0.1) Gecko/20100101 Firefox/9.0.1"

It's more of an Apache question, but is is a clean install. Does anyone recognise this ? Is the 301 a red herring ?

Question information

English Edit question
Ubuntu apache2 Edit question
No assignee Edit question
Solved by:
Matthew H McKenzie
Last query:
Last reply:

I will go back and re-install again, but this time with no SSH, and no LAMP.
Installing only APACHE2, I will test "It Works !".
This should work out of the box, if not I will post my observations, I do not think this is a cache issue, nor do I suspect the package maintainer. I am hitting this with a few clients too.

OK, this is functioning as expected. This is a similar problem to that created by placing "wordpress" behind NAT, pre-processed addresses that do not take into account public and private not being the same.
No issue with Apache, no issue with PMA.