Re: Directory Vs Location.

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

 



Chris Howell sent the message below at 14:27 9/4/2007:
Hi all.

Can somebody please explain what the difference is between using the directory directive and the location directive in my apache httpd.conf file. Also when it is appropriate to use which. The reason I am asking is, I am trying to get Trac running with Apache and both Trac & Apache with mod_python installed work fine independently of one another. I've tested apache, and I've tested trac with the the stand alone server.

The reason I am asking is trying to get Trac working I am told to put.

<Location "C:/Program Files/Apache Software Foundation/Apache2.2/htdocs/Worldview">
  Satisfy all
  SetHandler mod_python
  PythonInterpreter main_interpreter
  PythonHandler trac.web.modpython_frontend
  PythonOption TracUriRoot /Worldview
</Location>

But it doesn't seem to work and I am thinking that I could make a better decision if I fully understood the location directive.
---------------- End original message. ---------------------

Location is for controlling access based on URLs which may or may not reside on your local file system. Directory is for directories which are on your local file system. The path shown in the example is clearly a local file system directory so you should use Directory.

Now while that change is semantically and syntactically correct, whether the rest of the configuration is correct I have no way to know as I have never used Trac.

Please see:

http://httpd.apache.org/docs/2.2/mod/core.html#directory

and:

http://httpd.apache.org/docs/2.2/mod/core.html#location

Dragon

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 Venimus, Saltavimus, Bibimus (et naribus canium capti sumus)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


---------------------------------------------------------------------
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@xxxxxxxxxxxxxxxx
  "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx


[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux