I'd grep your webserver config files for any mentions of ".py" and comment
out the offending (and related) lines. I imagine that for some reason it's
configured to serve .py files as cgi scripts, rather than serving them as
text/plain.

On Tue, 8 Mar 2016 at 17:44 Terry Coles <d-...@hadrian-way.co.uk> wrote:

> Hi,
>
> I've been building a small repository of software and documentation on my
> website, but keep getting an error when I try to download a Python file:
>
> <Start>
> Internal Server Error
>
> The server encountered an internal error or misconfiguration and was
> unable to
> complete your request.
>
> Please contact the server administrator, and inform them of the time the
> error
> occurred, and anything you might have done that may have caused the error.
>
> More information about this error may be available in the server error log.
>
> Additionally, a 404 Not Found error was encountered while trying to use an
> ErrorDocument to handle the request.
> <End>
>
> I'm assuming that the error is because the server is trying to execute the
> script instead of making it available because I am able to download all the
> other files that I've put up there.
>
> Is there any way that I can do this without renaming the file to something
> other than filename.py?
>
> I suppose if all else fails I could compress it.
>
> --
>
>         Terry Coles
>
>
>
> --
> Next meeting:  Bournemouth, Tuesday, 2016-04-05 20:00
> Meets, Mailing list, IRC, LinkedIn, ...  http://dorset.lug.org.uk/
> New thread:  mailto:dorset@mailman.lug.org.uk / CHECK IF YOU'RE REPLYING
> Reporting bugs well:  http://goo.gl/4Xue     / TO THE LIST OR THE AUTHOR
>
--
Next meeting:  Bournemouth, Tuesday, 2016-04-05 20:00
Meets, Mailing list, IRC, LinkedIn, ...  http://dorset.lug.org.uk/
New thread:  mailto:dorset@mailman.lug.org.uk / CHECK IF YOU'RE REPLYING
Reporting bugs well:  http://goo.gl/4Xue     / TO THE LIST OR THE AUTHOR

Reply via email to