You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by Justin Erenkrantz <je...@apache.org> on 2002/04/23 19:35:58 UTC
[PATCH] Use expanded path variables instead of @@ServerRoot@@
This patch should fix PR 8227.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=8227
Is there any reason to use @@ServerRoot@@ (and the reason why
I'm posting instead of committing right away)? -- justin
Index: docs/conf/httpd-std.conf.in
===================================================================
RCS file: /home/cvs/httpd-2.0/docs/conf/httpd-std.conf.in,v
retrieving revision 1.2
diff -u -r1.2 httpd-std.conf.in
--- docs/conf/httpd-std.conf.in 12 Apr 2002 01:08:40 -0000 1.2
+++ docs/conf/httpd-std.conf.in 23 Apr 2002 17:32:41 -0000
@@ -290,7 +290,7 @@
# documents. By default, all requests are taken from this directory, but
# symbolic links and aliases may be used to point to other locations.
#
-DocumentRoot "@@ServerRoot@@/@rel_htdocsdir@"
+DocumentRoot "@exp_htdocsdir@"
#
# Each directory to which Apache has access can be configured with respect
@@ -315,7 +315,7 @@
#
# This should be changed to whatever you set DocumentRoot to.
#
-<Directory "@@ServerRoot@@/@rel_htdocsdir@">
+<Directory "@exp_htdocsdir@">
#
# Possible values for the Options directive are "None", "All",
@@ -499,9 +499,9 @@
# We include the /icons/ alias for FancyIndexed directory listings. If you
# do not use FancyIndexing, you may comment this out.
#
-Alias /icons/ "@@ServerRoot@@/@rel_iconsdir@/"
+Alias /icons/ "@exp_iconsdir@/"
-<Directory "@@ServerRoot@@/@rel_iconsdir@">
+<Directory "@exp_iconsdir@">
Options Indexes MultiViews
AllowOverride None
Order allow,deny
@@ -513,9 +513,9 @@
# the manual, even if you choose to move your DocumentRoot. You may comment
# this out if you do not care for the documentation.
#
-Alias /manual "@@ServerRoot@@/@rel_manualdir@"
+Alias /manual "@exp_manualdir@"
-<Directory "@@ServerRoot@@/@rel_manualdir@">
+<Directory "@exp_manualdir@">
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
@@ -530,7 +530,7 @@
# The same rules about trailing "/" apply to ScriptAlias directives as to
# Alias.
#
-ScriptAlias /cgi-bin/ "@@ServerRoot@@/@rel_cgidir@/"
+ScriptAlias /cgi-bin/ "@exp_cgidir@/"
<IfModule mod_cgid.c>
#
@@ -541,10 +541,10 @@
</IfModule>
#
-# "@@ServerRoot@@/@rel_cgidir@" should be changed to whatever your ScriptAliased
+# "@exp_cgidir@" should be changed to whatever your ScriptAliased
# CGI directory exists, if you have that configured.
#
-<Directory "@@ServerRoot@@/@rel_cgidir@">
+<Directory "@exp_cgidir@">
AllowOverride None
Options None
Order allow,deny
@@ -854,15 +854,15 @@
# Alias /error/include/ "/your/include/path/"
#
# which allows you to create your own set of files by starting with the
-# @@ServerRoot@@/@rel_errordir@/include/ files and
+# @exp_errordir@/include/ files and
# copying them to /your/include/path/, even on a per-VirtualHost basis.
#
<IfModule mod_negotiation.c>
<IfModule mod_include.c>
- Alias /error/ "@@ServerRoot@@/@rel_errordir@/"
+ Alias /error/ "@exp_errordir@/"
- <Directory "@@ServerRoot@@/@rel_errordir@">
+ <Directory "@exp_errordir@">
AllowOverride None
Options IncludesNoExec
AddOutputFilter Includes html
@@ -960,7 +960,7 @@
# To enable the cache as well, edit and uncomment the following lines:
# (no cacheing without CacheRoot)
#
-#CacheRoot "@@ServerRoot@@/@rel_proxycachedir@"
+#CacheRoot "@exp_proxycachedir@"
#CacheSize 5
#CacheGcInterval 4
#CacheMaxExpire 24
Re: [PATCH] Use expanded path variables instead of @@ServerRoot@@
Posted by Mads Toftum <ma...@toftum.dk>.
On Tue, Apr 23, 2002 at 10:53:32AM -0700, Aaron Bannert wrote:
> (We probably don't want to be installing the *.conf.in files too,
> but that's a different problem.)
>
Yes, but still something that would be nice to fix - the .in files
just adds unnecessary confusion IMHO.
vh
Mads Toftum
--
With a rubber duck, one's never alone.
-- "The Hitchhiker's Guide to the Galaxy"
Re: [PATCH] Use expanded path variables instead of @@ServerRoot@@
Posted by Aaron Bannert <aa...@clove.org>.
On Tue, Apr 23, 2002 at 10:35:58AM -0700, Justin Erenkrantz wrote:
> This patch should fix PR 8227.
>
> http://nagoya.apache.org/bugzilla/show_bug.cgi?id=8227
>
> Is there any reason to use @@ServerRoot@@ (and the reason why
> I'm posting instead of committing right away)? -- justin
I haven't tested this, but I think it's the right way to go. +1
(We probably don't want to be installing the *.conf.in files too,
but that's a different problem.)
-aaron
RE: [PATCH] Use expanded path variables instead of @@ServerRoot@@
Posted by Sander Striker <st...@apache.org>.
> From: Justin Erenkrantz [mailto:jerenkrantz@apache.org]
> Sent: 23 April 2002 19:36
> This patch should fix PR 8227.
>
> http://nagoya.apache.org/bugzilla/show_bug.cgi?id=8227
+1 on the patch. We shouldn't mess with path concatenation
like we are doing currently; it's asking for trouble.
> Is there any reason to use @@ServerRoot@@ (and the reason why
> I'm posting instead of committing right away)? -- justin
I don't see why we should use @@ServerRoot@@ for any of these
cases.
Sander