Results 1 to 8 of 8

Thread: reverse proxy server and php security

  1. #1
    Join Date
    Mar 2008
    Posts
    218
    Thanks
    7
    Thanked 19 Times in 19 Posts

    Default reverse proxy server and php security

    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.

  2. #2
    Join Date
    Jun 2007
    Posts
    543
    Thanks
    3
    Thanked 78 Times in 78 Posts
    Blog Entries
    1

    Default

    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.
    [Jasme Library (Javascript Motion Effects)] My Site
    /\/\@§†ê® §©®¡þ† /\/\@|{ê®
    There are 10 kinds of people in the world, those that understand binary and those that don't.

  3. #3
    Join Date
    Mar 2008
    Posts
    218
    Thanks
    7
    Thanked 19 Times in 19 Posts

    Default

    Yes I realize it's an IE thing

  4. #4
    Join Date
    Mar 2008
    Posts
    218
    Thanks
    7
    Thanked 19 Times in 19 Posts

    Default Pleas don't be shy :p

    I got this rewriterule which doesn't work at all
    Code:
    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.

  5. #5
    Join Date
    Jun 2007
    Posts
    543
    Thanks
    3
    Thanked 78 Times in 78 Posts
    Blog Entries
    1

    Default

    try this:
    Code:
    RewriteEngine on
    RewriteRule !^(.*)\.htm[l]?$ index.html [L]
    [Jasme Library (Javascript Motion Effects)] My Site
    /\/\@§†ê® §©®¡þ† /\/\@|{ê®
    There are 10 kinds of people in the world, those that understand binary and those that don't.

  6. The Following User Says Thank You to Master_script_maker For This Useful Post:

    tfit (03-21-2008)

  7. #6
    Join Date
    Mar 2008
    Posts
    218
    Thanks
    7
    Thanked 19 Times in 19 Posts

    Default

    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.

  8. #7
    Join Date
    Jun 2007
    Posts
    543
    Thanks
    3
    Thanked 78 Times in 78 Posts
    Blog Entries
    1

    Default

    try replacing the index.html with http://www.mydomain.com/index.html
    [Jasme Library (Javascript Motion Effects)] My Site
    /\/\@§†ê® §©®¡þ† /\/\@|{ê®
    There are 10 kinds of people in the world, those that understand binary and those that don't.

  9. The Following User Says Thank You to Master_script_maker For This Useful Post:

    tfit (03-21-2008)

  10. #8
    Join Date
    Mar 2008
    Posts
    218
    Thanks
    7
    Thanked 19 Times in 19 Posts

    Default

    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,

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •