Welcome to MobyThreads.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in
All support for the MobyThreads Threaded phpBB MOD can now be found on welsolutions at this forum

How to do a compound conditional in httpd.conf?

 
   Web Hosting and Web Master Forums (Home) -> Apache RSS
Next:  RewriteRule  
Author Message
deja

External


Since: Nov 03, 2005
Posts: 1



(Msg. 1) Posted: Thu Nov 03, 2005 5:57 am
Post subject: How to do a compound conditional in httpd.conf?
Archived from groups: alt>apache>configuration (more info?)

I have the following in my conf file that sends the no-cache setting if
the alias is not images.xyz.com and this works fine:

SetEnvIf Host "images.xyz.com" ImageAlias
Header append cache-control: "no-cache, must-revalidate"
env=!ImageAlias

Now, I need to add to this so that it is only set for jpg and gif. I
know how to test for an image object:

SetEnvIf Request_URI "\.gif$" IsImage
SetEnvIf Request_URI "\.jpg$" IsImage

.... but how do I do something like (pseudo code):

<if (IsImage is set) then
SetEnvIf Host "images.xyz.com" ImageAlias
Header append cache-control: "no-cache, must-revalidate"
env=!ImageAlias
<end if>

Regards

 >> Stay informed about: How to do a compound conditional in httpd.conf? 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
Where is httpd.conf? - I just install the mandrake 10.0 with all the updates available. if I go to http://locahost i can see a page that say: --------------------------------- Welcome to localhost This site is powered by: Apache-AdvancedExtranetServer/2.0.48 (Mandrake..

httpd.conf ???' - Hi there On a system there are many saves of httpd.conf... How can I find the one which is realy used by httpd deamon??? Does it give a command to check the path to the httpd.conf file... I'm in trouble with it... Thanks bigbrother -- bigbrother..

httpd.conf ??????? - Hi I'm responsible now for a apache webserver... There are a lot of locations of httpd.conf saves an backups and all that stuff... So, how do I find out which httpd.conf is realy used by httpd deamon???? Thanks Andrea Arquint

httpd.conf & httpd-std.conf - how come there are two configuration files in one apache? i used to edit httpd.conf, but what about httpd-std.conf? -- rei ------------------------------------------------------------------------ Posted via http://www.webservertalk.com..

Where is httpd.conf - I am running Mandrake 9.1, Apache2, Php 4.3. In tha manuals they say I should make a line in httpd.conf, saying "AddType application....." But I can't find the file anywhere. Anyone knows where to put these lines? -- mvh Jan Vidar www.janvid...
   Web Hosting and Web Master Forums (Home) -> Apache All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]