tsoHost Help Centre

Table of Contents

Serving .aspx and .asp files from Linux hosting type

Updated Oct 31st, 2017 at 11:37 GMT

By default, we block requests for .asp and .aspx files on the Linux hosting type. This is for security - if you inadvertently set your Windows site to Linux, visitors would be able to see your asp/aspx code which is undesirable. This protection avoids that scenario occurring, however if you do want to serve asp/aspx files (as plain text, redirects or parsed as PHP), just add the following to your .htaccess file:

Code:

<FilesMatch "(?i)\.aspx$">
  allow from all
</FilesMatch>

<FilesMatch "(?i)\.asp$">
 allow from all
</FilesMatch>

You can enable one or both at your discretion.