Log in

View Full Version : reverse proxy server and php security



tfit
03-17-2008, 10:46 AM
In my serverlog I saw that someone was trying to figure out if I am running php. Which I'm not!!! What is the deal also requesting this favicon.ico!! Anyway, I hope someone can tell me about safety when running php and apache configured as reverse proxy server. Thanks.

Master_script_maker
03-17-2008, 07:46 PM
the favicon.ico is the icon shown in the browser next to the address. it is probably being requested by the browser, also if they make a shortcut that will also request it.

tfit
03-19-2008, 07:46 PM
Yes I realize it's an IE thing

tfit
03-21-2008, 11:30 AM
I got this rewriterule which doesn't work at all


RewriteRule ^!(.*)\.html$ /index.html [R=301,L]
The idea is that it will redirect everything else other than an html request file to the index.html file.
But like I said it just serves or gives a 404 error. Any help will be appreciated.
Happy weekend to you all.

Master_script_maker
03-21-2008, 02:40 PM
try this:

RewriteEngine on
RewriteRule !^(.*)\.htm[l]?$ index.html [L]

tfit
03-21-2008, 07:03 PM
It hasn't completely solved my problem. I'm getting a 400 error now, but at least I doesn't forward anything else but htm*. Therefore kudos.

Master_script_maker
03-21-2008, 08:57 PM
try replacing the index.html with http://www.mydomain.com/index.html

tfit
03-21-2008, 10:44 PM
Master_script_maker,

Your first solution does work!! I also tried surf and it didn't work the first time. Maybe I forgot to restart apache (!?). Anyway kudos again. There is still the name issue but I'll figure that out.
Thanks,