• Plesk Uservoice will be deprecated by October. Moving forward, all product feature requests and improvement suggestions will be managed through our new platform Plesk Productboard.
    To continue sharing your ideas and feedback, please visit features.plesk.com

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