Hello alltogether,
we've got 4 apache-server running on linux-servers, listening on port
7000. External traffic comming on port 80 is directet to this internal
port by an loadbalancer.
On this server we got some aliases defined, such as
alias /shop "www/apache_alias/shop/"
When I access
http://www.domain.de/shop/ everything works fine.
When I access
http://www.domain.de/shop I get the message, that
servername[1234].domain.de could not be found. So I changed the
servername in the apache-configuration to
www.domain.de. After
restarting apache, then i get an browser-timeout.
When I test local on the machine, i got the following output of wget:
wget
http://localhost:7000/shop
--14:18:19--
http://localhost:7000/shop
=> `shop'
Resolving localhost... done.
Connecting to localhost[::1]:7000... failed: Connection refused.
Connecting to localhost[127.0.0.1]:7000... connected.
HTTP request sent, awaiting response... 301 Moved Permanently
Location:
http://servername1.domain.de:7000/shop/ [following]
--14:18:19--
http://servername1.domain.de:7000/shop/
=> `index.html'
Resolving servername1.domain.de... done.
Connecting to servername1.domain.de[192.168.2.63]:7000... connected.
HTTP request sent, awaiting response... 200 OK
Length: 296 [text/html]
100%[====================================>] 296 289.06K/s
ETA 00:00
so the alias works internal - so far, so good...
when i try
http://www.domain.de/shop from the machine, i get the almost
identical output, with the difference:
HTTP request sent, awaiting response... 301 Moved Permanently
Location:
http://www.domain.de/shop/ [following]
--14:18:19--
http://www.domain.de:7000/shop/
.... failed: Connection refused.
So the alias seems to work, but replaces also the port of the request to
7000 which is not to open the www and therefore denied by the
loadbalancer.
My question is: is this behavior normal? Or is there an bug which i
don't see in the configuration?
By this time, i've changed the port of the apache back to 80 - so it
work's but going "back" to port 7000 would be nice...
Is there anybody who can help me?
Greets, Marc
.... and sorry for the bad english...