TechnicPack / TechnicSolder

PHP web app that brings differential updates to the Technic Launcher and Technic Platform
https://docs.solder.io/
Other
169 stars 167 forks source link

/api folder is missing #569

Closed Luck9r closed 8 years ago

Luck9r commented 8 years ago

I'm sure, I'm doing something not right. Anyway /api folder is missing. Can somebody tell what's wrong?

heddendorp commented 8 years ago

Assuming, that's an error message thrown by your webserver, I'd think, that you don't route all requests via the index.php. Another possibility is, that you actually looked for the api folder in public and didn't find it. Thtn, let me tell you: That's not how routing works, the idea is to not user folders but to resolve all requests via the index.php, which decide what's to display.

Luck9r commented 8 years ago

Sorry, I said not right... I have no /api folder at all, and I can't write www.vortex-servers.comTechnicSolder/api because I don't have this folder! The real error is "Client error response [status code] 404 [reason phrase] Not Found [url] https://www.vortex-servers.com/TechnicSolder/api/verify/mysecretkey" and it's on official Technic website. Maybe I don't understand something...

skwerlman commented 8 years ago

there is no /api folder. in php, parts of a url can be considered to be arguments to an application.

looking at your site, it looks like you tried to set solder up in a subfolder, but this is not how solder was designed to be used. solder should be run on a virtual host, with the root directory pointing at solder's public folder.

solder is currently installed at https://www.vortex-servers.com/TechnicSolder/public/index.php/, but this is a security risk, since a bad actor could look at your configs.

Luck9r commented 8 years ago

Thanks. I'll fix that.