Forum Moderators: phranque

Message Too Old, No Replies

ProxyHTMLURLMap and Flags

ProxyhtMLURLMap Apache rewrite flags

         

jackx

6:40 pm on Jun 14, 2013 (gmt 0)

10+ Year Member



Greetings,

Appreciate any and all help with this issue -

I am using Apache 2.2, and in using ProxyHTMLURLMap and in reading Apache documentation, it says that I should be able to include flags as in the following - ProxyHTMLURLMapfrom-patternto-pattern flags

When I code: ProxyHTMLURLMapfrom-patternto-pattern [c], Apache will not restart.

What am I doing wrong?

I should add that without the flag [c] Apache restarts fine.

thanks in advance

Dideved

8:23 pm on Jun 14, 2013 (gmt 0)

10+ Year Member



If Apache won't even start, then that almost certainly means there's a syntax error in your code. You'll have to post your real code if you want anyone to be able to help you spot that syntax error. Also, the error.log may give you more details about what's wrong.

jackx

8:36 pm on Jun 14, 2013 (gmt 0)

10+ Year Member



the issue is only when I use a flag, such as [c]

code:
ProxyHTMLURLMap from-pattern to-pattern [c]

remove the flag and apache restarts

code:
ProxyHTMLURLMap from-pattern to-pattern

phranque

2:42 am on Jun 15, 2013 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



the error.log may give you more details about what's wrong.

jackx

8:46 pm on Jun 18, 2013 (gmt 0)

10+ Year Member



most of the examples I've seen of ProxyHTMLURLMap don't include flags, just curious if in most cases they are not used?

phranque

11:21 pm on Jun 18, 2013 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



i would imagine if your requirements were to "Pass embedded script and style sections through untouched" then the [c] flag would be indicated.

what does your server error log say about the failed restart when you specify the [c] flag?

jackx

5:15 pm on Jul 11, 2013 (gmt 0)

10+ Year Member



Let me take another look at the logs

FamilyManFirst

7:23 pm on Sep 4, 2013 (gmt 0)

10+ Year Member



Try removing the square brackets. They're in the documentation to indicate that the field is optional.

New code should look like:
ProxyHTMLURLMap from-pattern to-pattern c