You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by John Kolvereid <od...@op.net> on 2004/04/02 15:58:38 UTC

[users@httpd] 2.0.40 issue

Hi,
    I am using 2.0.40 and cannot access an index.htm page in a directory
off the DocumentRoot.  I am wondering if it is a configuration problem
or a problem w/ my version of Apache.  I never had this problem w/ v
1.3.23 but the configs may have changed since then, al
    Another curious factor is that I have no problem accessing the
index.htm page locally from my LAN (even when I access the site thru the
internet).  However, when I try from a different location I cannot
access it.  I doubt seriously that it is a firewall issue - but who
knows.
    Any advice would be greatly appreciated.  Thx.

John Kolvereid
www.akaodin.com


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] 2.0.40 issue

Posted by Joshua Slive <jo...@slive.ca>.
On Fri, 2 Apr 2004, John Kolvereid wrote:
>     I am using 2.0.40 and cannot access an index.htm page in a directory
> off the DocumentRoot.  I am wondering if it is a configuration problem
> or a problem w/ my version of Apache.  I never had this problem w/ v
> 1.3.23 but the configs may have changed since then, al
>     Another curious factor is that I have no problem accessing the
> index.htm page locally from my LAN (even when I access the site thru the
> internet).  However, when I try from a different location I cannot
> access it.  I doubt seriously that it is a firewall issue - but who
> knows.
>     Any advice would be greatly appreciated.  Thx.

2.0.40 is a rather old version of apache, but it is highly unlikely that
that is your problem.

On the other hand, it is impossible to tell what your problem is because
"cannot access" is way too vague!  What exactly happens?  What do you see
in your browser?  What do you see in your error log?  What changes have
you made to the default configuration.

Based on the fact that it works from some places but not others, the most
likely cause is an incorrect ServerName messing up a trailing-slash
redirect:
http://httpd.apache.org/docs/misc/FAQ.html#set-servername
But that is just a guess.

Joshua.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] 2.0.40 issue

Posted by John Kolvereid <od...@op.net>.
This did it.  Thx.

Joshua Slive wrote:

> On Fri, 2 Apr 2004, John Kolvereid wrote:
>
> > Hi again,
> >     Seems that when I try to access a directory off DocumentRoot w/
> > ServerName of IPaddress/ Apache then goes to the IPaddress which means
> > that it goes back to the internet and comes back - which seems to me a
> > waste of resources, since it is already at the location and only needs
> > to drop down 1 directory.  Any thoughts?
> >
> > John Kolvereid wrote:
> >
> > > Hi,
> > >     Seems to be a ServerName issue as you mentioned.  It works w/ the IP
> > > address/ but not the URL/.
> > > This is perhaps because the server is pointed to by www.namesecure.com and not
> > > a legit URL.  Unfortunately, the IP address is subject to change on a regular
> > > basis because it uses a dynamic IP address.
> > > Is there a way to avoid the issue by setting the ServerName to some local
> > > address or something that doesn't change.  Thx.
>
> [Please trim quotes and don't top-post.  Thanks.]
>
> Apache must send a redirect when you request a directory without the
> trailing slash.  Otherwise all relative url references would be incorrect.
> It is not a "waste of resources".  If you want to avoid it, simply use the
> URL with the trailing slash already included.
>
> You can probably fix your problem by using "UseCanonicalName off" in
> httpd.conf so that Apache will redirect to the same hostname that was used
> in the request.
>
> Joshua.
>
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>    "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] 2.0.40 issue

Posted by Joshua Slive <jo...@slive.ca>.
On Fri, 2 Apr 2004, John Kolvereid wrote:

> Hi again,
>     Seems that when I try to access a directory off DocumentRoot w/
> ServerName of IPaddress/ Apache then goes to the IPaddress which means
> that it goes back to the internet and comes back - which seems to me a
> waste of resources, since it is already at the location and only needs
> to drop down 1 directory.  Any thoughts?
>
> John Kolvereid wrote:
>
> > Hi,
> >     Seems to be a ServerName issue as you mentioned.  It works w/ the IP
> > address/ but not the URL/.
> > This is perhaps because the server is pointed to by www.namesecure.com and not
> > a legit URL.  Unfortunately, the IP address is subject to change on a regular
> > basis because it uses a dynamic IP address.
> > Is there a way to avoid the issue by setting the ServerName to some local
> > address or something that doesn't change.  Thx.

[Please trim quotes and don't top-post.  Thanks.]

Apache must send a redirect when you request a directory without the
trailing slash.  Otherwise all relative url references would be incorrect.
It is not a "waste of resources".  If you want to avoid it, simply use the
URL with the trailing slash already included.

You can probably fix your problem by using "UseCanonicalName off" in
httpd.conf so that Apache will redirect to the same hostname that was used
in the request.

Joshua.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] 2.0.40 issue

Posted by John Kolvereid <od...@op.net>.
Hi again,
    Seems that when I try to access a directory off DocumentRoot w/ ServerName of
IPaddress/
Apache then goes to the IPaddress which means that it goes back to the internet
and comes back - which seems to me a waste of resources, since it is already at
the location and only needs to drop down 1 directory.  Any thoughts?

John Kolvereid wrote:

> Hi,
>     Seems to be a ServerName issue as you mentioned.  It works w/ the IP
> address/ but not the URL/.
> This is perhaps because the server is pointed to by www.namesecure.com and not
> a legit URL.  Unfortunately, the IP address is subject to change on a regular
> basis because it uses a dynamic IP address.
> Is there a way to avoid the issue by setting the ServerName to some local
> address or something that doesn't change.  Thx.
>
> Luis Moreira wrote:
>
> > John Kolvereid wrote:
> >
> > >Hi,
> > >    I am using 2.0.40 and cannot access an index.htm page in a directory
> > >off the DocumentRoot.  I am wondering if it is a configuration problem
> > >or a problem w/ my version of Apache.  I never had this problem w/ v
> > >1.3.23 but the configs may have changed since then, al
> > >    Another curious factor is that I have no problem accessing the
> > >index.htm page locally from my LAN (even when I access the site thru the
> > >internet).  However, when I try from a different location I cannot
> > >access it.  I doubt seriously that it is a firewall issue - but who
> > >knows.
> > >    Any advice would be greatly appreciated.  Thx.
> > >
> > >John Kolvereid
> > >www.akaodin.com
> > >
> > >
> > >---------------------------------------------------------------------
> > >The official User-To-User support forum of the Apache HTTP Server Project.
> > >See <URL:http://httpd.apache.org/userslist.html> for more info.
> > >To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> > >   "   from the digest: users-digest-unsubscribe@httpd.apache.org
> > >For additional commands, e-mail: users-help@httpd.apache.org
> > >
> > >
> > >
> > >
> > What does "cannot access" mean ?
> > Are you allowing some IPs and denying others ?
> > What is the error you read ?
> > What does error log have to say about this ? If nothing at all, then
> > maybe yes, it is a FW issue...
> >
> > Luis
> >
> > ---------------------------------------------------------------------
> > The official User-To-User support forum of the Apache HTTP Server Project.
> > See <URL:http://httpd.apache.org/userslist.html> for more info.
> > To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> >    "   from the digest: users-digest-unsubscribe@httpd.apache.org
> > For additional commands, e-mail: users-help@httpd.apache.org
>
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>    "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] 2.0.40 issue

Posted by John Kolvereid <od...@op.net>.
Hi,
    Seems to be a ServerName issue as you mentioned.  It works w/ the IP
address/ but not the URL/.
This is perhaps because the server is pointed to by www.namesecure.com and not
a legit URL.  Unfortunately, the IP address is subject to change on a regular
basis because it uses a dynamic IP address.
Is there a way to avoid the issue by setting the ServerName to some local
address or something that doesn't change.  Thx.

Luis Moreira wrote:

> John Kolvereid wrote:
>
> >Hi,
> >    I am using 2.0.40 and cannot access an index.htm page in a directory
> >off the DocumentRoot.  I am wondering if it is a configuration problem
> >or a problem w/ my version of Apache.  I never had this problem w/ v
> >1.3.23 but the configs may have changed since then, al
> >    Another curious factor is that I have no problem accessing the
> >index.htm page locally from my LAN (even when I access the site thru the
> >internet).  However, when I try from a different location I cannot
> >access it.  I doubt seriously that it is a firewall issue - but who
> >knows.
> >    Any advice would be greatly appreciated.  Thx.
> >
> >John Kolvereid
> >www.akaodin.com
> >
> >
> >---------------------------------------------------------------------
> >The official User-To-User support forum of the Apache HTTP Server Project.
> >See <URL:http://httpd.apache.org/userslist.html> for more info.
> >To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> >   "   from the digest: users-digest-unsubscribe@httpd.apache.org
> >For additional commands, e-mail: users-help@httpd.apache.org
> >
> >
> >
> >
> What does "cannot access" mean ?
> Are you allowing some IPs and denying others ?
> What is the error you read ?
> What does error log have to say about this ? If nothing at all, then
> maybe yes, it is a FW issue...
>
> Luis
>
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>    "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] 2.0.40 issue

Posted by Luis Moreira <lu...@esinnovation.pt>.
John Kolvereid wrote:

>Hi,
>    I am using 2.0.40 and cannot access an index.htm page in a directory
>off the DocumentRoot.  I am wondering if it is a configuration problem
>or a problem w/ my version of Apache.  I never had this problem w/ v
>1.3.23 but the configs may have changed since then, al
>    Another curious factor is that I have no problem accessing the
>index.htm page locally from my LAN (even when I access the site thru the
>internet).  However, when I try from a different location I cannot
>access it.  I doubt seriously that it is a firewall issue - but who
>knows.
>    Any advice would be greatly appreciated.  Thx.
>
>John Kolvereid
>www.akaodin.com
>
>
>---------------------------------------------------------------------
>The official User-To-User support forum of the Apache HTTP Server Project.
>See <URL:http://httpd.apache.org/userslist.html> for more info.
>To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>   "   from the digest: users-digest-unsubscribe@httpd.apache.org
>For additional commands, e-mail: users-help@httpd.apache.org
>
>
>  
>
What does "cannot access" mean ?
Are you allowing some IPs and denying others ?
What is the error you read ?
What does error log have to say about this ? If nothing at all, then 
maybe yes, it is a FW issue...

Luis


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org