-
Notifications
You must be signed in to change notification settings - Fork 70
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
Photo.php failing with 404 errors #338
Comments
I'm not sure what the out-of-the-box config for nginx looks like, but it likely doesn't have provision for recognizing .php extensions when they occur in the middle of the URL, as they do for photos. That is, http://localhost:8888/photo.php/car/file/200x200/fake_9.svg/1723563057 is supposed to pick up /Users/srozga/derbynet/photo.php as the PHP source file, and then photo.php interprets the /car/file/200x200/fake_9.svg/1723563057 part to locate (or construct) the image file. Here's a snippet from the config file used for nginx on Linux that might help. (Note that it still gets updated during installation, so don't expect to just paste in and have it work.)
Perhaps it's worth asking what the issue was with Apache, as that doesn't usually give difficulty. |
@jeffpiazza I opened another issue to track that problem here: #339 |
Hi
I am taking DerbyNet 9.0 for a test drive on my Mac. I am using MAMP and running DerbyNet on nginx as I was having an impossible time starting apache. I configured the software to use two local folders for racer and car photos. I initialized the database with a fake roster. Both aforementioned folders now contain a variety of SVG files. But when I navigate to the racer checkin page, the images show up broken.
All of the photo requests result in 404s as below.
I tried to take photos of myself using camera and upload new car and racer photos. The new photos is uploaded. Action.php succeeds and I see a photo of myself on the filesystem. However, photo.php still results in a 404.
Any tips on how to diagnose? Thank you.
The text was updated successfully, but these errors were encountered: