Bluehost.com Web Hosting $6.95

Absolute Filenames for Include Directives in .htaccess

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 ...


Go Back   Usenet Forums > Web Server and Related Forums > Apache Web Server

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 03-28-2007
clearlinewebdesign@googlemail.com
 
Posts: n/a
Default Absolute Filenames for Include Directives in .htaccess

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

  #2 (permalink)  
Old 03-28-2007
shimmyshack
 
Posts: n/a
Default Re: Absolute Filenames for Include Directives in .htaccess

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.

  #3 (permalink)  
Old 03-28-2007
clearlinewebdesign@googlemail.com
 
Posts: n/a
Default Re: Absolute Filenames for Include Directives in .htaccess

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

 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 10:20 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0