Welcome to MobyThreads.com!
FAQFAQ   SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log in/Register/PasswordLog in/Register/Password

Problems with alias

 
   Web Hosting and Web Master Forums (Home) -> Apache RSS
Related Topics:
an alias for use a dll as a cgi ! - Hello, I don't find this option in Apache : how to use a .dll and alias it as a .cgi. Example :I want to be alias and named in I found it on Alibaba server : it names DLL alias you enter an Alias:..

alias/shortcuts - hi, is it possible to configure url shortcuts (for search engine) without the existence of a real i tried the Redirect directive but apache returns 'file not found'. e.g. should

problem with Alias - Hi all, I've managed to configure Apache with Tomcat so to use the Cocoon framework for the of an I would like to make available the directory of the magazine (situated in the folder)..

Alias in .htaccess - Hi, I have a problem with the . htaccess file. In I define an alias (it's working well). But when I define the same alias in .htaccess is set to All in it doesn't work. What could be the error? I'm using Apache..

Alias match? or what? - Hello! We recently the domain to our servers and recreated their web page. Not that the above matters very much, but at least you have a better idea why I am getting the errors that I am. The errors follow- ..
Next:  Apache: ajp13.service() Error sending initial post -1 32 0  
Author Message
gebauer

External


Since: Oct 29, 2003
Posts: 8



(Msg. 1) Posted: Wed Oct 29, 2003 5:33 pm
Post subject: Problems with alias
Archived from groups: alt>apache>configuration (more info?)

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...

 >> Stay informed about: Problems with alias 
Back to top
Login to vote
davideyeahsure

External


Since: Nov 03, 2003
Posts: 2907



(Msg. 2) Posted: Wed Oct 29, 2003 5:33 pm
Post subject: Re: Problems with alias [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Marc Gebauer <gebauer.RemoveThis@mairs.de> wrote:
 > alias /shop "www/apache_alias/shop/"

Do not mix trailing slashes and not-trailing-slashes in the same
directive. This is also in the mod_alias documentation.

I'd redo this as
alias /shop/ /www/apache_alias/shop/ or
alias /shop /www/apache_alias/shop

Davide<!-- ~MESSAGE_AFTER~ -->

 >> Stay informed about: Problems with alias 
Back to top
Login to vote
gebauer

External


Since: Oct 29, 2003
Posts: 8



(Msg. 3) Posted: Wed Oct 29, 2003 5:41 pm
Post subject: Re: Problems with alias [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Sorry, forgot:

Ist's apache 1.3.28...
 >> Stay informed about: Problems with alias 
Back to top
Login to vote
gebauer

External


Since: Oct 29, 2003
Posts: 8



(Msg. 4) Posted: Wed Oct 29, 2003 6:52 pm
Post subject: Re: Problems with alias [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Davide Bianchi wrote:
 > Marc Gebauer <gebauer.RemoveThis@mairs.de> wrote:
 >
  >>alias /shop "www/apache_alias/shop/"
 >
 >
 > Do not mix trailing slashes and not-trailing-slashes in the same
 > directive. This is also in the mod_alias documentation.
 >
 > I'd redo this as
 > alias /shop/ /www/apache_alias/shop/ or
 > alias /shop /www/apache_alias/shop
 >
 > Davide

I've tested this with a new alias and i get:

wget <a style='text-decoration: underline;' href="http://www.domain.de/tv" target="_blank">http://www.domain.de/tv</a>
--15:39:48-- <a style='text-decoration: underline;' href="http://www.domain.de/tv" target="_blank">http://www.domain.de/tv</a>
=> `tv'
Connecting to <a style='text-decoration: underline;' href="http://www.domain.de:80..." target="_blank">www.domain.de:80...</a> connected!
HTTP request sent, awaiting response... 301 Moved Permanently
Location: <a style='text-decoration: underline;' href="http://www.domain.de:7001/tv/" target="_blank">http://www.domain.de:7001/tv/</a> [following]
--15:39:48-- <a style='text-decoration: underline;' href="http://www.domain.de:7001/tv/" target="_blank">http://www.domain.de:7001/tv/</a>
=> `index.html'
Connecting to <a style='text-decoration: underline;' href="http://www.domain.de:7001..." target="_blank">www.domain.de:7001...</a>
Connection to <a style='text-decoration: underline;' href="http://www.domain.de:7001" target="_blank">www.domain.de:7001</a> refused.


the alias is set up as:

Alias /tv "/www/apache_alias/tv"


Alias /tv/ "/www/apache_alias/tv/"

(both versions are in the httpd.conf, but if i delete one of
them, it's the same result)

and the apache (1.3.2Cool is running on port 7001 (second system on
the same server)


Any ideas?


Thanks, Marc<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: Problems with alias 
Back to top
Login to vote
davideyeahsure

External


Since: Nov 03, 2003
Posts: 2907



(Msg. 5) Posted: Wed Oct 29, 2003 6:52 pm
Post subject: Re: Problems with alias [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Marc Gebauer <gebauer.TakeThisOut@mairs.de> wrote:
<font color=purple> > Connecting to <a style='text-decoration: underline;' href="http://www.domain.de:7001...</font" target="_blank">www.domain.de:7001...</font</a>>
 > Connection to <a style='text-decoration: underline;' href="http://www.domain.de:7001" target="_blank">www.domain.de:7001</a> refused.

Connection refused? It looks like a firewall or permission problem.
Davide<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: Problems with alias 
Back to top
Login to vote
gebauer

External


Since: Oct 29, 2003
Posts: 8



(Msg. 6) Posted: Thu Oct 30, 2003 11:08 am
Post subject: Re: Problems with alias [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Davide Bianchi wrote:
 > Marc Gebauer <gebauer.TakeThisOut@mairs.de> wrote:
 >
<font color=green>  >>Connecting to <a style='text-decoration: underline;' href="http://www.domain.de:7001...</font" target="_blank">www.domain.de:7001...</font</a>>
  >>Connection to <a style='text-decoration: underline;' href="http://www.domain.de:7001" target="_blank">www.domain.de:7001</a> refused.
 >
 >
 > Connection refused? It looks like a firewall or permission problem.
 > Davide

The ports 7000 and 7001 are blocked by the firewall. Only port 80
is open to the <a style='text-decoration: underline;' href="http://www." target="_blank">www.</a> External requests comming on port 80 are
redirectet by a loadbalancer to the servers on port 7000 like this:

request -> official ip (aa.bb.cc.dd:80) -> lb -> internal ip
(192.168.2.6[35]:700[01])


My question is: Is there a chance to change the behavior of the
apache-server? Why does he replace the request-string from
<a style='text-decoration: underline;' href="http://www.domain.de/..." target="_blank">www.domain.de/...</a> to <a style='text-decoration: underline;' href="http://www.domain.de:7000/..." target="_blank">www.domain.de:7000/...</a> when processing the
alias-directive?

Or is the only chance to get this work binding one apache to port
80 an sending all requests where an alias has to be processed to
this server? This is the workaround by this time, but not quite
good for loadbalancing...


Greetings, Marc<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: Problems with alias 
Back to top
Login to vote
davideyeahsure

External


Since: Nov 03, 2003
Posts: 2907



(Msg. 7) Posted: Thu Oct 30, 2003 11:08 am
Post subject: Re: Problems with alias [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Marc Gebauer <gebauer DeleteThis @mairs.de> wrote:
 > My question is: Is there a chance to change the behavior of the
 > apache-server? Why does he replace the request-string from
 > <a style='text-decoration: underline;' href="http://www.domain.de/..." target="_blank">www.domain.de/...</a> to <a style='text-decoration: underline;' href="http://www.domain.de:7000/..." target="_blank">www.domain.de:7000/...</a> when processing the
 > alias-directive?

He doesn't, unless you told he to do it. My idea is that is the
load balancer that is doing it.

I have a similar setup, with one "proxy" passing along connections
to multiple server on port != 80, but I'm using te proxy module and
there is no problem at all. All the connection are done on port 80
from the client's point of view and then the proxy is handling the
rest.

Davide<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: Problems with alias 
Back to top
Login to vote
Display posts from previous:   
   Web Hosting and Web Master Forums (Home) -> Apache All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]