httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rob Hartill <r...@imdb.com>
Subject Re: trailing '/' redirects from requested port to port 80 ?
Date Thu, 17 Jun 1999 16:53:03 GMT
On Thu, 17 Jun 1999, Rob Hartill wrote:

> 
> I'm back... for a minute :-)
> 
> Is there a config option to tell Apache to perform trailing '/' redirects
> on port 80 even though requests are coming in on another port ?.
> 
> thanks.
> rob


I guess I can do what I want in a relatively clean way with this
simple change:


Index: httpd.h
===================================================================
RCS file: /imdb/cvs/apache/include/httpd.h,v
retrieving revision 1.16
diff -u -r1.16 httpd.h
--- httpd.h     1999/06/17 16:06:29     1.16
+++ httpd.h     1999/06/17 16:07:50
@@ -133,7 +133,9 @@
 
 /* -------------- Port number for server running standalone --------------- */
 
+#ifndef DEFAULT_HTTP_PORT
 #define DEFAULT_HTTP_PORT      80
+#endif
 #define DEFAULT_HTTPS_PORT     443
 #define ap_is_default_port(port,r)     ((port) == ap_default_port(r))
 #define ap_http_method(r)      "http"


and then define my default port number in my compile time Configuration.

Let me know if this will be added.

cheers
rob 


Mime
View raw message