address/index.php works using only using only address/ starts a download

Discussion in 'Apache' started by DonStealth, May 16, 2010.

  1. #1
    Hello all

    I have a LAMP server using apache 2 on Debian Lenny on a VPS.

    I have this annoying error that I have a great difficulty in resolving. When I go to the site only using the address or ip I receive the following error (in ie) "file download - Security Warning Do you want to save this file, or find a program online to open it?"
    I get the same kind of error no matter which browser I use and I also get the same error from other computers.

    Does anyone know what the cause of the error may be?

    Best regards
    /DS
     
    DonStealth, May 16, 2010 IP
  2. jode

    jode Peon

    Messages:
    2
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    maybe the listening url in vhosts configuration is just your domain, and then apache doesn't know what to do when people come from your IP
    just guessing, I am not an expert
    I guess if you paste your vhosts configuration, other people can help you better?

    cya
     
    jode, May 16, 2010 IP
  3. DonStealth

    DonStealth Peon

    Messages:
    2
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    I have come to believe that it is the httpd.conf that I need work with. My problem is that I don't seem to have that file anywhere..
     
    DonStealth, May 18, 2010 IP
  4. chtdatweb

    chtdatweb Well-Known Member

    Messages:
    1,473
    Likes Received:
    23
    Best Answers:
    0
    Trophy Points:
    160
    #4
    Hi,

    httpd.conf is normally found here /etc/httpd/conf/httpd.conf sometimes it maybe /etc/apache or /etc/apache2.

    However, maybe you should simply exectue this command to find it:

    find / -name 'httpd.conf'
     
    chtdatweb, May 20, 2010 IP