Community discussions

 
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" ?
Best Regards.
Serthan Öztürk
Electronic Engineer
http://www.sgsbilisim.com.tr
 
User avatar
rextended
Forum Guru
Forum Guru
Posts: 2931
Joined: Tue Feb 25, 2014 12:49 pm
Location: Capalbio, Tuscany, Italy

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>
I'm Italian, not English. Sorry for my imperfect grammar.
 
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 ?
Best Regards.
Serthan Öztürk
Electronic Engineer
http://www.sgsbilisim.com.tr
 
User avatar
rextended
Forum Guru
Forum Guru
Posts: 2931
Joined: Tue Feb 25, 2014 12:49 pm
Location: Capalbio, Tuscany, Italy

Re: Editing WebProxy Error page

Wed Apr 16, 2014 9:50 am

"/ip proxy reset-html" make file and folder on /file
I'm Italian, not English. Sorry for my imperfect grammar.
 
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
Best Regards.
Serthan Öztürk
Electronic Engineer
http://www.sgsbilisim.com.tr

Who is online

Users browsing this forum: No registered users and 12 guests