Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The requested URL /callback was not found on this server. #1

Closed
scaviator opened this issue Jul 18, 2018 · 2 comments
Closed

The requested URL /callback was not found on this server. #1

scaviator opened this issue Jul 18, 2018 · 2 comments

Comments

@scaviator
Copy link

scaviator commented Jul 18, 2018

Hello,

I ran the sample github.php app and get the following error:

image

Is there something we need to configure in the github.php file in order to account for the /callback

Environment:
Ubuntu 16.04 server with LAMP stack, configured with self-signed cert.

Thanks

@aaronpk
Copy link
Owner

aaronpk commented Jul 19, 2018

Sorry about this! I realized the screenshot in the book is misleading.

When you create the app on GitHub, you'll need to set the callback URL to http://127.0.0.1/index.php (if you're following the instructions from the book) or http://127.0.0.1/github.php (if you're using the code in this repo).

The screenshot in the book shows https://example-app.com/callback as the callback URL since that is the URL I used when testing the code.

If you are running the code on a remote server, then you just need to make sure that your callback URL in the GitHub app matches the URL that you are accessing the application from.

@scaviator
Copy link
Author

Thanks for the pointer. I changed the callback URL to /github.php and the example works as advertise now. :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants