• Introducing WebPros Cloud - a fully managed infrastructure platform purpose-built to simplify the deployment of WebPros products !  WebPros Cloud enables you to easily deliver WebPros solutions — without the complexity of managing the infrastructure.
    Join the pilot program today!
  • Support for BIND DNS has been removed from Plesk for Windows due to security and maintenance risks.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS.

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