Forum Moderators: phranque
I have a few workstations that arn't allowed to access any websites, instead their request are meant to be forwarded to an internal webserver and a default "Sorry you cant use the internet" page is displayed.
When they try to connect to an external webserver on either port 80 or 443 the firewall forwards the request to our apache server no problem.
Our apache conf has the following added;
RewriteEngine On
rewriteRule ^(.*) [intranet.foobar.local...] [R=302,L]
But if a client requests for example; [foo.bar...]
instead of getting; [intranet.foobar.local...] we get a 404: page not found.
apache logs say;
[23/Sep/2007:01:27:24 +0930] "GET /docs/282818.htm HTTP/1.1" 404 308
Am i on the right track?
It's getting late, 1am in the morning, i need some help.
[edited by: charkol at 3:10 pm (utc) on Sep. 22, 2007]
However, it is still likely that your problem lies within whatever mechanism you may be using to establish the relationship you seem to imply between those two different hostnames, whether is it a reverse-proxy, Alias directive, DNS CNAME, or some other mechanism.
Jim
But if i type [google.com.au...] for example it seems to try and find somewhere.php in my document root, which obviously doesn't exsist.
How do i rewrite EVERYTHING after address.com/ to be my sorry.html?