• Debian 11 is approaching its end-of-life (vendor EOL date - August 31, 2026). Plesk Obsidian 18.0.80 will be the last release to support it.
    If you are running Plesk Obsidian on Debian 11, we recommend you upgrade those servers to Debian 12 using our dist-upgrade tool.
  • We plan to deprecate and remove the support for XML RPC protocol versions earlier than 1.6.9.1 in Plesk Obsidian 18.0.82. We strongly recommend that you update all existing integrations using earlier versions of the XML RPC protocol to comply with the version 1.6.9.1 specification.

Web stat files being downloaded instead of viewed in browser

C

codesmith

Guest
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.
 
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....
 
Ah finally got it figured. Should be using AddHandler - not AddType.
 
Back
Top