Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: Parsing variables from one file to another.

by fatmcgav (Novice)
on Jan 26, 2009 at 09:24 UTC ( [id://738889]=note: print w/replies, xml ) Need Help??


in reply to Parsing variables from one file to another.

Ok, just to bring this one back from the dead...

I went down the route of using Template, and it's working fantastically.

However i'm having issues with an IF Include code block...
I've got the following code:
[% IF ep == cms; INCLUDE cmsproxy; BLOCK cmsproxy; # Proxy onto application server ProxyPass /CMSBackOffice http://[% vmname %]:80 +80/CMSBackOffice ProxyPassReverse /CMSBackOffice http://[% vmname %]:80 +80/CMSBackOffice ProxyPass /CMSResources[% resources %] http://[% v +mname %]:8080/CMSResources[% resources %] ProxyPassReverse /CMSResources[% resources %] http://[% v +mname %]:8080/CMSResources[% resources %] END; ELSE; # Proxy onto application server ProxyPass /CMSBureauWebService/CMSBureauWS http:/ +/[% vmname %]:8080/CMSBureauWebService/CMSBureauWS ProxyPassReverse /CMSBureauWebService/CMSBureauWS http:/ +/[% vmname %]:8080/CMSBureauWebService/CMSBureauWS END; %]
When i try to run the template through, it throws the following error:
file error - parse error - /home/www/bin/files/conf/sites/ssl.conf.template line 236-241: unexpected token (/CMSBackOffice)

Any ideas what this means?

Regards
Gavin

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://738889]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others browsing the Monastery: (2)
As of 2024-04-26 06:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found