1. Please take a little time for this simple survey! Thank you for participating!
    Dismiss Notice
  2. Dear Pleskians, please read this carefully! New attachments and other rules Thank you!
    Dismiss Notice
  3. Dear Pleskians, I really hope that you will share your opinion in this Special topic for chatter about Plesk in the Clouds. Thank you!
    Dismiss Notice

Web stat files being downloaded instead of viewed in browser

Discussion in 'Plesk for Linux - 8.x and Older' started by codesmith, Jan 5, 2007.

  1. codesmith

    codesmith Guest

    0
     
    We just migrated to a new CentOS 4.3 server with Plesk 8.1. Web statistic files are being downloaded by the browser instead of viewed in the browser. Looks like there's a different configuration for web stats but not sure. There's a apache conf to serve requests to DOMAIN.COM/webstat from the /statistics/webstat directory. There's also a symlink index.thml to another file awstats.DOMAIN.COM-http.html.

    So the file that gets downloaded is the proper stat file but there's no extension. Perhaps that's why it's getting downloaded instead of serverd as an html file? So I'm thinking some Apache conf file problem with it being a symlink? Any ideas?

    Update: just tried creating an index1.html file in the statistics/webstat/ directory and hitting it through http://www.DOMAIN.COM/webstat/index1.html. The actual file index1.html just downloads and isn't viewed in the browser. Weird.
     
  2. codesmith

    codesmith Guest

    0
     
    Well weird - apparently it's related to this line we just added in httpd.conf to be able to have php processed in html files.

    AddType application/x-httpd-php .html

    If I remove the line everything works normallly. Our old server was able to handle this fine... still investigating....
     
  3. codesmith

    codesmith Guest

    0
     
    Ah finally got it figured. Should be using AddHandler - not AddType.
     
Loading...