You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Jonathan Horne <ap...@dfwlp.com> on 2006/11/06 01:37:10 UTC

[users@httpd] my first real look at apache 2.2

ive shyed away from apache 2.2 for a while now, due to configuration 
issues/differences.  today, i setup a dedicated box to run 2.2, so i can 
learn the configuration differences between 2.2 and my 2.0 boxes, and 
hopefully i can recreate a dev version of my production 2.0 server, on a 2.2 
box.

the main hurdle that has kept me away, is the (my) obvious misuse of the 
<directory> directive.  for instance, on 2.0, i would use this:

<Directory /usr/local/share/directory>
    AllowOverride None
    Order Allow,deny
    Allow from all
</Directory>

and then, a coresponding:

Alias /directory /usr/local/share/directory

and this allows http://www.mydomain.com/directory to work correctly (or, at 
least 'as i expected').  in apache 2.2, getting this function to work has 
been confusing me for months!  ive been googling for an example of correct 
use for this type of configuration, but so far, no joy.

can someone point me in the right direction?  the path imtrying to use 
is /usr/local/www/apache22/directory, with my DocumentRoot set 
to /usr/local/www/apache22/data (FreeBSD 6.1-p10).

i would really appreciate any advice anyone can give me.

thanks,
jonathan

---------------------------------------------------------------------
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] my first real look at apache 2.2

Posted by Sander Temme <sc...@apache.org>.
On Nov 5, 2006, at 5:13 PM, Jonathan Horne wrote:

> so, its working now.  your advice that the 2.0 config is basically  
> the same
> animal as the 2.2 config, caused me to look more closely at what i  
> had done.

For your reference and that of others who might find this thread on  
Google:

http://httpd.apache.org/docs/2.2/upgrading.html#run-time

"Your existing version 2.0 config files and startup scripts can  
usually be used unchanged in version 2.2."

S.

-- 
sctemme@apache.org            http://www.temme.net/sander/
PGP FP: 51B4 8727 466A 0BC3 69F4  B7B8 B2BE BC40 1529 24AF



Re: [users@httpd] my first real look at apache 2.2

Posted by Jonathan Horne <ap...@dfwlp.com>.
On Sunday 05 November 2006 18:42, Joshua Slive wrote:
> On 11/5/06, Jonathan Horne <ap...@dfwlp.com> wrote:
> > the main hurdle that has kept me away, is the (my) obvious misuse of the
> > <directory> directive.  for instance, on 2.0, i would use this:
> >
> > <Directory /usr/local/share/directory>
> >     AllowOverride None
> >     Order Allow,deny
> >     Allow from all
> > </Directory>
> >
> > and then, a coresponding:
> >
> > Alias /directory /usr/local/share/directory
> >
> > and this allows http://www.mydomain.com/directory to work correctly (or,
> > at least 'as i expected').
>
> There have been absolutely no changes in these directives between 2.0
> and 2.2 (other than the renaming of mod_access to mod_authz_host).  If
> you are having a problem, you need to specify exactly what happens
> when you try this configuration, including what you get in the
> browser, error log, and access log.
>
> In general, other than renaming modules, 2.0 config files can be used
> unchanged in 2.2.
>
> Joshua.
>

well, i now feel rediculous, as my error turned out to be a mistype of my 
intended <directory> path in the config file.  i never troubleshoot the easy 
stuff first, i always assume something horrible has happened, and i spend my 
day googling... nothing!

so, its working now.  your advice that the 2.0 config is basically the same 
animal as the 2.2 config, caused me to look more closely at what i had done.

thanks,
jonathan



---------------------------------------------------------------------
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] my first real look at apache 2.2

Posted by Joshua Slive <jo...@slive.ca>.
On 11/5/06, Jonathan Horne <ap...@dfwlp.com> wrote:

> the main hurdle that has kept me away, is the (my) obvious misuse of the
> <directory> directive.  for instance, on 2.0, i would use this:
>
> <Directory /usr/local/share/directory>
>     AllowOverride None
>     Order Allow,deny
>     Allow from all
> </Directory>
>
> and then, a coresponding:
>
> Alias /directory /usr/local/share/directory
>
> and this allows http://www.mydomain.com/directory to work correctly (or, at
> least 'as i expected').

There have been absolutely no changes in these directives between 2.0
and 2.2 (other than the renaming of mod_access to mod_authz_host).  If
you are having a problem, you need to specify exactly what happens
when you try this configuration, including what you get in the
browser, error log, and access log.

In general, other than renaming modules, 2.0 config files can be used
unchanged in 2.2.

Joshua.

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