httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Fabricio Gouvea <>
Subject [users@httpd] Apache2 replies with 301 moved permanently when non-default port 80 is used
Date Fri, 28 Jan 2011 21:24:39 GMT
My ports.conf has:
Listen 8080

and sites-available/default has:
        ServerAdmin webmaster@localhost
        DocumentRoot /home/ubuntu/wordpress

But when I try to connect, either with or, by looking at the wireshark trace, I see Apache
replying with a "301 moved permanently" and redirects to or (without the 8080 port!).

If I add:
Listen 80
<VirtualHost *:80>
        ServerAdmin webmaster@localhost
        DocumentRoot /home/ubuntu/wordpress

Then everything works! But I can`t have that working only on default 80
because my ISP is blocking it.

I tried a bunch of different configurations with multiple combinations of:
NameVirtualHost and VirtualHost with wild card *
NameVirtualHost and VirtualHost with
ServerName without the port
No ServerName (and a proper entry on etc/hosts)

I'm about the get into the code!
Please help!

View raw message