This is a discussion on Absolute Filenames for Include Directives in .htaccess within the Apache Web Server forums, part of the Web Server and Related Forums category; According to http://httpd.apache.org/docs/2.0/mod/core.html#include one can put "Include " directives ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
According to
http://httpd.apache.org/docs/2.0/mod/core.html#include one can put "Include " directives into .htaccess files (or other config files). Filenames can be absolute or relative to ServerRoot. Is it possible to include filenames that are relative to DOCUMENT_ROOT. e.g. Include DOCUMENT_ROOT . /foo/bar.conf Thanks, Rob Impey |
|
|||
|
On 28 Mar, 16:57, "clearlinewebdes...@googlemail.com"
<clearlinewebdes...@googlemail.com> wrote: > According to > > http://httpd.apache.org/docs/2.0/mod/core.html#include > > one can put "Include " directives into .htaccess files (or other > config files). Filenames can be absolute or relative to ServerRoot. Is > it possible to include filenames that are relative to DOCUMENT_ROOT. > e.g. > > Include DOCUMENT_ROOT . /foo/bar.conf > > Thanks, > > Rob Impey unlikely from the "Context" given in the manual if you could it would read along the lines of Context: server config, virtual host, directory, .htaccess but it only has Context: server config, virtual host, directory however some installs support per vhost conf files, so that each vhost can have different settings, but these would need to be specified within the main server.conf and therefore might require a reboot for changes to be picked up. |
|
|||
|
On Mar 28, 6:03 pm, "shimmyshack" <matt.fa...@gmail.com> wrote:
> however some installs support per vhost conf files, so that each vhost > can have different settings, but these would need to be specified > within the main server.conf and therefore might require a reboot for > changes to be picked up. I'll give that a go then. Thanks. Rob Impey |