beginner's question: variable definition in apache config files?
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > Apache Server configuration support > beginner's question: variable definition in apache config files?




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    beginner's question: variable definition in apache config files?  
ivo welch


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
09-28-04 08:46 AM

is it possible to define a variable in an apache config file?  that
is, I would like to write

myapp = /home/httpd/server/html/applicationrootdir

and then say

<Directory ${myapp}/subdir>
various
</Directory>
...and many other ones like it.

I have searched for a while, but not stumbled upon this functionality.
This would make it a lot easier for me to move trees to different
servers and/or locations.  Even finding out that this is not possible
would be useful.  help appreciated.

/iaw





[ Post a follow-up to this message ]



    Re: beginner's question: variable definition in apache config files?  
Davide Bianchi


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
09-28-04 08:46 AM

On 2004-09-26, ivo welch <ivo.welch@anderson.ucla.edu> wrote:
> is it possible to define a variable in an apache config file?

AFAIK No. Unless you hack the code of Apache that read the file.
But what's the advantage in doing so?

> This would make it a lot easier for me to move trees to different
> servers and/or locations.

Then use a pre-processor to parse *your* 'config' file and produce
an ad-hoc configuration file. Sed is the first thing that pop in
my mind that could do it.

Davide

--
Virus error:
A virus has been activated in a DOS session. The virus, however, requires
Windows. All tasks will automatically be closed and the virus will be activa
ted
again.





[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 12:02 PM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register