Apache Server configuration support - using regex in server-parsed directive

This is Interesting: Free IT Magazines  
Home > Archive > Apache Server configuration support > September 2005 > using regex in server-parsed directive





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author using regex in server-parsed directive
David Bear

2005-09-19, 8:51 pm

I would like to do

AddHandler server-parsed s?html?

is this legal. I can't find any examples on this. I've tried it and it
seems to be ignored.

running configtest doesn't return any error messages. Any suggestions?

--
David Bear
-- let me buy your intellectual property, I want to own your thoughts --
Davide Bianchi

2005-09-20, 2:51 am

On 2005-09-20, David Bear <david.bear@asu.edu> wrote:
> AddHandler server-parsed s?html?
> is this legal.


Don't think so.

> I've tried it and it seems to be ignored.


Then is probably non legal.

Davide

--
Windows 95 has been operating for 2 hours, 32 minutes. No errors reported. CALL
GUINESS BOOK OF WORLD RECORDS NOW!
Richard Antony Burton

2005-09-20, 7:54 am


"David Bear" <david.bear@asu.edu> wrote in message
news:1309557.amoLhfCkum@teancum...
> AddHandler server-parsed s?html?
>
> is this legal. I can't find any examples on this. I've tried it and it
> seems to be ignored.


It's probably legal, and will probably work fine if you have a file with the
extension .s?html? But the AddHandler directive doesn't have wildcard/regex
support, so it isn't going to do what you want it to. You'll have to add
separate directives for each combination.

Richard.


HansH

2005-09-20, 6:07 pm

"David Bear" <david.bear@asu.edu> schreef in bericht
news:1309557.amoLhfCkum@teancum...
> AddHandler server-parsed s?html?
>
> is this legal.

Yes ... but IIRC literal, not as a regex, try
AddHandler server-parsed shtml html htm

HansH


David Bear

2005-09-20, 8:49 pm

HansH wrote:

> "David Bear" <david.bear@asu.edu> schreef in bericht
> news:1309557.amoLhfCkum@teancum...
> Yes ... but IIRC literal, not as a regex, try
> AddHandler server-parsed shtml html htm
>
> HansH


This worked. thanks

--
David Bear
-- let me buy your intellectual property, I want to own your thoughts --
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com