Koozali.org: home of the SME Server

Obsolete Releases => SME Server 8.x => Topic started by: rhills on March 11, 2012, 10:41:56 PM

Title: httpd.conf template
Post by: rhills on March 11, 2012, 10:41:56 PM
Hi guys,

Sorry if I have multi-posted this, seems the forums don't play well if you get the captcha wrong the first time?

I am wanting to achieve the following:
 if ibayname eq ibay1 add a 301 redirect line to httpd.conf

I would also be interested to know what variables are available for use in these templates.

Thanks
Title: Re: httpd.conf template
Post by: janet on March 12, 2012, 01:14:19 PM
rhills

Please read the Template Tutorial and the DB Variables Configuration Howtos.
The Link to the Howtos page appears at top of these Forums.
Title: Re: httpd.conf template
Post by: mmccarn on March 12, 2012, 01:38:02 PM
Code: [Select]
db accounts setprop ibay1 AllowOverride All
echo '#arbitrary .htaccess
#commands here
#
' > /home/e-smith/files/ibays/html/.htaccess
signal-event ibay-modify
Title: Re: httpd.conf template
Post by: rhills on March 12, 2012, 08:25:17 PM
Thanks mmcarn. I ended up solving it with a template in the VirtualHosts directory, was thrown off by the need for non matching VirtualHost tags.

Mary, I obviously read those things before posting, but thanks for pointing out the obvious...
Title: Re: httpd.conf template
Post by: janet on March 13, 2012, 01:37:33 AM
rhills

Quote
I obviously read those things before posting, but thanks for pointing out the obvious...

It was not obvious to me that you had read them. My answer was welling meaning and aimed at your level of forum interaction.

It is apparent that many people do not read the FAQ's and other wiki articles before posting questions here, and your post appeared to fit into that category, as the answers (in my opinion) are in those articles I referred to.

Please do not assume we can read your mind and know what level you are at.
Unless you state it clearly, it is not so obvious.
Title: Re: httpd.conf template
Post by: rhills on March 13, 2012, 01:51:31 AM
The answers were not in the documents, but thank you for your guess that they may be.

Thank you anyway for paying attention to the forum, I would suggest however, that looking at post counts does not give much information about a users willingness to search for answers themselves prior to asking here, I would also suggest that no matter what the "level" of a user, they do not want an answer telling them to read a document which does not address their issue properly.