httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joshua Slive <jos...@slive.ca>
Subject Re: [users@httpd] Modifing the behavior of mod_dir redirects
Date Fri, 20 Jun 2003 22:46:04 GMT

On Fri, 20 Jun 2003, Aaron Morris wrote:
> ie  A request to "http://httpd.apache.org/docs", mod_dir issues a 301
> redirect to "http://httpd.apache.org/docs/".  In my environment, since
> Apache receives the request on a different port number the redirect
> reflects the internal port number instead of the port from the
> perspective of the internet.  ie  "http://httpd.apache.org:10000/docs/"

Set
UseCanonicalName On
Listen 80
Port 10000

Check the docs on all three of these directives (as well as ServerName).
You'll see that, when a Listen directive is present, the Port directive
does not set the actual port used by apache, but only the port used in
redirects (and similar self-identifying actions).

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


Mime
View raw message