The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

security warning

Discussion in 'Security' started by ljwhite, Jun 30, 2006.

  1. ljwhite

    ljwhite Well-Known Member

    Joined:
    Jun 20, 2005
    Messages:
    363
    Likes Received:
    0
    Trophy Points:
    16
    When i open abccares.com(it is on virtual server), it is said: abccares.com is attempting to read from www.abccares.com. This is a potentially insecure operation. Do you want to allow it?
    What is the problem? What shall i do? Many thanks in advance!
     
  2. webignition

    webignition Well-Known Member

    Joined:
    Jan 22, 2005
    Messages:
    1,880
    Likes Received:
    0
    Trophy Points:
    36
    You could have chosen to mention that this was a security popup on a Flash movie . . .

    This only occurs when browsing to example.com and not when browsing to www.example.com.

    You might then want to set up a redirect in the relevant VirtualHost to redirect example.com to www.example.com, therefore preventing people browsing to example.com hence preventing the security warning.
     
  3. ljwhite

    ljwhite Well-Known Member

    Joined:
    Jun 20, 2005
    Messages:
    363
    Likes Received:
    0
    Trophy Points:
    16
    Thanks for your help. But how could i set redirect? I saw one option called "Redirects" in cpanel. I clicked it, and i saw this:
    Add Redirect:
    http://abccares.com/ >> http://
    ...
    It seems here is not right place. So what shall i do?
     
  4. webignition

    webignition Well-Known Member

    Joined:
    Jan 22, 2005
    Messages:
    1,880
    Likes Received:
    0
    Trophy Points:
    36
    You'd have to, in some way, change the settings in your main Apache config.

    A standard mod_alias redirect won't work as that can only match against the URL path not the full URL.

    You might have to determine how to figure out whether someone is browsing to example.com as opposed to www.example.com.
     
  5. casey

    casey Well-Known Member

    Joined:
    Jan 17, 2003
    Messages:
    2,303
    Likes Received:
    0
    Trophy Points:
    36
    Location:
    If there is trouble, it will find me
    Putting

    Code:
    RewriteCond %{HTTP_HOST} ^domain.com [NC]
    RewriteRule ^(.*)$ http://www.domain.com/$1 [R=301,L]
    
    in an .htaccess file will redirect the requests to the url with www in it.
     
Loading...

Share This Page