Community discussions

MUM Europe 2020
 
Pepo
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 86
Joined: Thu May 29, 2008 1:34 am

how can i change this page on my mikrotik proxy server ???

Fri Dec 12, 2008 8:00 pm

ERROR
The requested URL could not be retrieved

While trying to retrieve the URL: http://boy/

The following error was encountered:

* Access Denied.

Access control configuration prevents your request from being allowed at this time. Please contact your service provider if you feel this is incorrect.

Your cache administrator is mymail@domain.com.
Generated Fri, 12 Dec 2008 17:59:37 GMT by proxy (squid/2.5.STABLE11)
 
SurferTim
Forum Guru
Forum Guru
Posts: 4637
Joined: Mon Jan 07, 2008 10:31 pm
Location: Miramar Beach, Florida

Re: how can i change this page on my mikrotik proxy server ???

Fri Dec 12, 2008 9:41 pm

I have not used this, but If you used
/ip proxy access
to deny access, you can also set 'redirect-to' to a custom page.
See the docs on the http proxy.
If you want to just change the cache administrator, that is under '/ip proxy'.
 
Pepo
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 86
Joined: Thu May 29, 2008 1:34 am

Re: how can i change this page on my mikrotik proxy server ???

Sat Dec 13, 2008 10:52 am

thanks Mr. SurferTim,
but what i need is how to edit the page i told you, but please give me a source for how to redirect my customers to a certain page by ip proxy access method
:?
 
SurferTim
Forum Guru
Forum Guru
Posts: 4637
Joined: Mon Jan 07, 2008 10:31 pm
Location: Miramar Beach, Florida

Re: how can i change this page on my mikrotik proxy server ???

Sat Dec 13, 2008 11:27 am

I have not tried this with the proxy setting, just so you know...
I FTP uploaded a text file called test.html to the hotspot directory for this test, but you should be able to upload it anywhere.
I use a hotspot with IP 192.168.0.1 on wlan1 for this test.
http://192.168.0.1/test.html
displays the test page correctly.
Considering that works, I would try this:
/ip proxy access set X redirect-to=hotspot/test.html
where X is the line number in '/ip proxy access print', and set 'redirect-to' to the correct directory/filename
If that fails, then try the IP of the interface to the MT box.
/ip proxy access set X redirect-to=192.168.0.1/test.html

UPDATE: Just tried it with the proxy. It must be the IP or URL, not the directory/filename. And it will not work without the hotspot webserver. I disabled the hotspot, and it will no longer redirect. I suppose without the hotspot, it must be on another box with a webserver.
 
User avatar
normis
MikroTik Support
MikroTik Support
Posts: 24363
Joined: Fri May 28, 2004 11:04 am
Location: Riga, Latvia

Re: how can i change this page on my mikrotik proxy server ???

Mon Dec 15, 2008 1:20 pm

1. it's not possible to edit proxy error pages
2. it's easier to redirect to an external webserver, that displays a custom message
No answer to your question? How to write posts

Who is online

Users browsing this forum: No registered users and 39 guests