Community discussions

MikroTik App
 
serthan
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 61
Joined: Sat Jun 16, 2007 10:49 am

Editing WebProxy Error page

Wed Apr 16, 2014 3:39 am

http://www.mikrotik.com/download/CHANGELOG_3

kirshteins wrote:
There is also a possibility to edit default web-proxy error page and not to use redirect
Code:
What's new in 3.28:
*) web proxy - allow to edit error page;

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html><head><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>ERROR: $(status)</title></head>
<body><h2>ERROR: $(status)</h2>
<hr noshade size="1px"/>
$(if error)
<p>While trying to retrieve the URL <a href="$(url)">$(url)</a>:</p>
<ul><li><strong>$(error)</strong></li></ul>
$(endif)
<p>Your cache administrator is <a href="mailto:$(admin)">$(admin)</a>.
$(signature)
</body></html>

This is the question:
How can i change that "web proxy - allow to edit error page" ?
 
User avatar
rextended
Forum Guru
Forum Guru
Posts: 12008
Joined: Tue Feb 25, 2014 12:49 pm
Location: Italy
Contact:

Re: Editing WebProxy Error page

Wed Apr 16, 2014 4:34 am

You must know the HTML....

The RouterOS 6.12 default "webproxy/error.html" page are:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html><head><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>ERROR: $(status)</title></head>
<body><h2>ERROR: $(status)</h2>
<hr noshade size="1px"/>
$(if error)
<p>While trying to retrieve the URL <a href="$(url)">$(url)</a>:</p>
<ul><li><strong>$(error)</strong></li></ul>
$(endif)
<p>Your cache administrator is <a href="mailto:$(admin)">$(admin)</a>.
$(signature)
</body></html>
 
serthan
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 61
Joined: Sat Jun 16, 2007 10:49 am

Re: Editing WebProxy Error page

Wed Apr 16, 2014 9:32 am

You must know the HTML....

The RouterOS 6.12 default "webproxy/error.html" page are:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html><head><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>ERROR: $(status)</title></head>
<body><h2>ERROR: $(status)</h2>
<hr noshade size="1px"/>
$(if error)
<p>While trying to retrieve the URL <a href="$(url)">$(url)</a>:</p>
<ul><li><strong>$(error)</strong></li></ul>
$(endif)
<p>Your cache administrator is <a href="mailto:$(admin)">$(admin)</a>.
$(signature)
</body></html>
So i know html, however where is webproxy folder ?
 
User avatar
rextended
Forum Guru
Forum Guru
Posts: 12008
Joined: Tue Feb 25, 2014 12:49 pm
Location: Italy
Contact:

Re: Editing WebProxy Error page

Wed Apr 16, 2014 9:50 am

"/ip proxy reset-html" make file and folder on /file
 
serthan
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 61
Joined: Sat Jun 16, 2007 10:49 am

Re: Editing WebProxy Error page

Wed Apr 16, 2014 10:08 am

"/ip proxy reset-html" make file and folder on /file
Thanks for fast reply.

Image

Who is online

Users browsing this forum: anav and 212 guests