• 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.

php and asp files parsed for SSI

W

wardjame

Guest
I'm trying to get .asp and .php files parsed for Server Side Includes. Bad practice I know but it is how a clients site was previously designed and I need to maintain it as is.

I added the following to the site vhost.conf file:

Code:
AddType text/html .htm .html .shtm .shtml .sht .asp .php
AddHandler server-parsed .htm .html .shtml .sht .shtm .asp .php

But my tests seem to show only the .shtml files being parsed for SSI. Any clues as to how one could accomplish this?

Thanks in advance.
 
did you put those in the server config, or the domains config? Did you restart apache afterwards?
 
I put this in the domain config vhost.conf.

I loaded it into the plesk webmanager and did a webmanager reload and restarted apache. I use the vhost.conf directives all the time to modify php and asp settings so I'm pretty sure I'm doing it correctly. I'm not sure if SSI settings can be overridden like this though. Can anyone confirm or deny?
 
Back
Top