Fedora Linux Support Community & Resources Center
  #1  
Old 21st March 2012, 11:28 AM
ibbo's Avatar
ibbo Offline
Registered User
 
Join Date: Jun 2005
Location: Leeds
Posts: 1,264
linuxubuntuchrome
mod_macro Apache

Chaps,

Given the following config

<Macro VHostMacro $server $alias $docroot $port $rport $conf>
<VirtualHost *:$port>
ServerName $server
ServerAlias $alias

DocumentRoot $docroot

Include conf/$conf

</VirtualHost>
</Macro>

Sample of $conf

ProxyRequests off
ProxyPassReverse / http://127.0.0.1:$rport/
ProxyPreserveHost on


The problem I have is that mod_macro vars (in this case $rport) does not get passed through to the include.

Is this a limitation of mod_macro or can we somehow get those vars to parse in the included files.
__________________
A Hangover Lasts A Day, But Our Drunken Memories Last A Lifetime
--
Linux user #349545
(GNU/Linux)iD8DBQBAzWjX+MZAIjBWXGURAmflAKCntuBbuKCWenpm XoA7LNydllVQOwCfdjyzXscddzQvlhBedAcD7qfKmHo==zx0H
Reply With Quote
Reply

Tags
apache, modmacro

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 On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Configure apache 2 with Apache tool box 1.5.72 kalpana Servers & Networking 2 18th February 2006 08:45 AM
How to change apache email address apache@localhost to admin@proporta.lk niloshima Servers & Networking 2 17th November 2005 11:36 AM
Upgrading to Apache Apache/2.0.52 - Lost ProxyPass foto Servers & Networking 1 24th July 2005 08:01 PM
apache fc3 questions: starting apache & file permissions mexicoshanty Servers & Networking 2 16th June 2005 07:56 AM
Custom apache module doesn't work in Apache 2 Skeptical Using Fedora 2 6th December 2004 07:32 AM


Current GMT-time: 08:45 (Monday, 20-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat