@hgtonight
And what does http://vanilla/api look like in your browser?
http://vanilla/api
Search first
Check out the Documentation! We are always looking for new content and pull requests.
Click on insightful, awesome, and funny reactions to thank community volunteers for their valuable posts.
@hgtonight Only a page not found.
How about http://vanilla/api/options?
http://vanilla/api/options
@hgtonight at least show something
Getting somewhere!
What does http://vanilla/api/discussions look like in your browser?
http://vanilla/api/discussions
@hgtonight Not found too, like http://vanilla/api
not found for http://vanilla/api/categories too
What the heck.
Turn on debugging by adding $Configuration['Debug'] = TRUE; to your /conf/config.php file. While you are in there, set your API version to 0.1.3 instead of 'Undefined'.
$Configuration['Debug'] = TRUE;
/conf/config.php
0.1.3
Now what do you see at http://vanilla/api/discussions?
@hgtonight Still get not found for that page, with debug = true, the erros should appear on the screen?
@hgtonight I make a fresh install in another enviroment using apache instead nginx and the api works like a charm, could be nginx the problem?
I think kasper develops on nginx, so it may or may not be the issue depending on your nginx rules I would guess.
I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.
As @peregrine mentioned, your nginx config is likely conflicting with the API application. This is the config I personally use for all my Vanilla setups: https://github.com/kasperisager/vagrant-lnpp/blob/master/modules/lnpp/templates/nginx/vanilla.conf.erb
Kasper Kronborg Isager (kasperisager) | Freelance Developer @Vanilla | Hit me up: Google Mail or Vanilla Mail | Find me on GitHub
Stupid nginx.
I really need to get around to working with it.
Thanks @kasper
Thanks @kasper that conf works perfect, thanks @peregrine and @hgtonight for helping me too!
You guys rocks!
Answers
@hgtonight
And what does
http://vanilla/api
look like in your browser?Search first
Check out the Documentation! We are always looking for new content and pull requests.
Click on insightful, awesome, and funny reactions to thank community volunteers for their valuable posts.
@hgtonight Only a page not found.
How about
http://vanilla/api/options
?Search first
Check out the Documentation! We are always looking for new content and pull requests.
Click on insightful, awesome, and funny reactions to thank community volunteers for their valuable posts.
@hgtonight at least show something
Getting somewhere!
What does
http://vanilla/api/discussions
look like in your browser?Search first
Check out the Documentation! We are always looking for new content and pull requests.
Click on insightful, awesome, and funny reactions to thank community volunteers for their valuable posts.
@hgtonight Not found too, like http://vanilla/api
not found for http://vanilla/api/categories too
What the heck.
Turn on debugging by adding
$Configuration['Debug'] = TRUE;
to your/conf/config.php
file. While you are in there, set your API version to0.1.3
instead of 'Undefined'.Now what do you see at
http://vanilla/api/discussions
?Search first
Check out the Documentation! We are always looking for new content and pull requests.
Click on insightful, awesome, and funny reactions to thank community volunteers for their valuable posts.
@hgtonight Still get not found for that page, with debug = true, the erros should appear on the screen?
@hgtonight I make a fresh install in another enviroment using apache instead nginx and the api works like a charm, could be nginx the problem?
I think kasper develops on nginx, so it may or may not be the issue depending on your nginx rules I would guess.
I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.
As @peregrine mentioned, your nginx config is likely conflicting with the API application. This is the config I personally use for all my Vanilla setups: https://github.com/kasperisager/vagrant-lnpp/blob/master/modules/lnpp/templates/nginx/vanilla.conf.erb
Kasper Kronborg Isager (kasperisager) | Freelance Developer @Vanilla | Hit me up: Google Mail or Vanilla Mail | Find me on GitHub
Stupid nginx.
I really need to get around to working with it.
Thanks @kasper
Search first
Check out the Documentation! We are always looking for new content and pull requests.
Click on insightful, awesome, and funny reactions to thank community volunteers for their valuable posts.
Thanks @kasper that conf works perfect, thanks @peregrine and @hgtonight for helping me too!
You guys rocks!