aerouk / imageserve

A ShareX image hosting solution for your own domain.
https://iaero.me/imageserve
GNU General Public License v2.0
127 stars 34 forks source link

Error uploading to nginx? #54

Closed SlimShadyIAm closed 5 years ago

SlimShadyIAm commented 5 years ago

Hi there. I followed the video tutorial but I get the following error:

Error: Message:
The remote server returned an error: (405) Method Not Allowed.

Request URL:
https://memes.slimshadyime.me/imageserve/upload.php

Response:
<html>
<head><title>405 Not Allowed</title></head>
<body bgcolor="white">
<center><h1>405 Not Allowed</h1></center>
<hr><center>nginx/1.10.3 (Ubuntu)</center>
</body>
</html>

Stack trace:
   at System.Net.HttpWebRequest.GetResponse()
   at ShareX.UploadersLib.Uploader.SendRequestFile(String url, Stream data, String fileName, String fileFormName, Dictionary`2 args, NameValueCollection headers, CookieCollection cookies, ResponseType responseType, HttpMethod method, String contentType, String metadata)
SlimShadyIAm commented 5 years ago

Solved this by using this config: https://github.com/aerouk/imageserve/issues/49 as well as enabling PHP