[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: General Update Hints Potato->Woody



On Thu, Jan 31, 2002 at 12:45:47AM -0500, Bob Thibodeau wrote:
> On Wed, Jan 30, 2002 at 12:27:44PM -0500, John Kuhn wrote:
> > 
> > I don't have a solution to the second bug (#131104) yet.  It is a problem
> > when you upgrade from apache 1.3.9 (stable) to 1.3.22.  The solution does
> > not seem to be as simple as correcting the capitalization in the config
> > file to the apache "standard".  Perhaps it has to do with the 3 config
> > file vs 1 config file in 1.3.9/1.3.22.  I don't know.
> 
> You just reminded me that I did have to change the capitalization when
> I moved to testing a few months ago. My apache needs are pretty modest,
> but I haven't had any problems with it since then. What are you experiencing?

My testing machine is at home, but here are some notes that I made about
the problem.  First the error message while upgrading:

   Restart Apache now? [Y/n] y
   Stopping apache with apachectl ... done.
   Waiting for apache to terminate ... done.
   Syntax error on line 33 of /etc/apache/access.conf:
   Invalid command 'order', perhaps mis-spelled or defined by a module not included in the server configuration
   /usr/sbin/apachectl start: httpd could not be started

   Configuration failed!  Run "apacheconfig" to try this again later.

The original line 33 of access.conf was "order allow,deny".  I tried
changing this to "Order Allow,Deny" and "Order allow,deny".  All
variations that I tried resulted in a syntax error on line 33 when I ran
"apache -t".  From a quick scan of the apache source it appears that
apache does not care about the case of directives, but the Debian install
and config scripts might.

I have attached my access.conf file.  Those who have a potato box will
see that it has very few modifications from the original distribution.
I did not file the original bug report on this, but in the next few days
I will add some notes to the bug report.

I know the apache maintainers are currently working on 1.3.23 so I'll give
that a try when it makes it to unstable.

John
# access.conf: Global access configuration
# Online docs at http://www.apache.org/

# This file defines server settings which affect which types of services
# are allowed, and in what circumstances. 

# Each directory to which Apache has access, can be configured with respect
# to which services and features are allowed and/or disabled in that
# directory (and its subdirectories). 

# Originally by Rob McCool

# This should be changed to whatever you set DocumentRoot to.

<Directory /var/www>

# This may also be "None", "All", or any combination of "Indexes",
# "Includes", "FollowSymLinks", "ExecCGI", or "MultiViews".

# Note that "MultiViews" must be named *explicitly* --- "Options All"
# doesn't give it to you (or at least, not yet).

Options Indexes FollowSymLinks

# This controls which options the .htaccess files in directories can
# override. Can also be "All", or any combination of "Options", "FileInfo", 
# "AuthConfig", and "Limit"

AllowOverride None

# Controls who can get stuff from this server.

Order allow,deny
allow from all

</Directory>

# /usr/lib/cgi-bin should be changed to whatever your ScriptAliased
# CGI directory exists, if you have that configured.

<Directory /usr/lib/cgi-bin>
AllowOverride None
Options ExecCGI FollowSymLinks
</Directory>

# Allow server status reports, with the URL of http://servername/server-status
# Change the ".your_domain.com" to match your domain to enable.

#<Location /server-status>
#SetHandler server-status

#order deny,allow
#deny from all
#allow from .your_domain.com
#</Location>

# Allow server info reports, with the URL of http://servername/server-info
# Change the ".your_domain.com" to match your domain to enable.

#<Location /server-info>
#SetHandler server-info

#order deny,allow
#deny from all
#allow from .your_domain.com
#</Location>

# Debian Policy assumes /usr/doc is "/doc/", at least from the localhost.

<Directory /usr/doc>
Options Indexes FollowSymLinks
AllowOverride None
Order deny,allow
deny from all
allow from localhost
</Directory>

# This sets the viewable location of the mod_throttle status display.
#
# <location /throttle-info>
# SetHandler throttle-info
# </location>

# Do not allow users to browse foreign files using symlinks in
# their private webspace public_html.
# Note: This should be changed if you modify the UserDir-Option.
# We would really like to use LocationMatch but the Option we want
# is ignored with that directive.

<DirectoryMatch ^/home/.*/public_html>
Options Indexes SymLinksIfOwnerMatch
AllowOverride None
</DirectoryMatch>

# Do not allow retrieval of the override files, a standard security measure.
<Files .htaccess>
Order allow,deny
deny from all
</Files>

# You may place any other directories or locations you wish to have
# access information for after this one.


Reply to: