Welcome to WebmasterWorld Guest from 54.224.34.226

Forum Moderators: Ocean10000 & incrediBILL & phranque

Message Too Old, No Replies

ProxyHTMLURLMap and Flags

ProxyhtMLURLMap Apache rewrite flags

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

New User

joined:Apr 16, 2013
posts: 21
votes: 0


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
8:23 pm on June 14, 2013 (gmt 0)

Junior Member

joined:Apr 6, 2013
posts:149
votes: 0


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.
8:36 pm on June 14, 2013 (gmt 0)

New User

joined:Apr 16, 2013
posts: 21
votes: 0


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
2:42 am on June 15, 2013 (gmt 0)

Administrator

WebmasterWorld Administrator phranque is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:Aug 10, 2004
posts:10552
votes: 10


the error.log may give you more details about what's wrong.
8:46 pm on June 18, 2013 (gmt 0)

New User

joined:Apr 16, 2013
posts: 21
votes: 0


most of the examples I've seen of ProxyHTMLURLMap don't include flags, just curious if in most cases they are not used?
11:21 pm on June 18, 2013 (gmt 0)

Administrator

WebmasterWorld Administrator phranque is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:Aug 10, 2004
posts:10552
votes: 10


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?
5:15 pm on July 11, 2013 (gmt 0)

New User

joined:Apr 16, 2013
posts: 21
votes: 0


Let me take another look at the logs
7:23 pm on Sept 4, 2013 (gmt 0)

New User

joined:Sept 4, 2013
posts:1
votes: 0


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