Opened 16 years ago

Closed 14 years ago

#7721 closed (invalid)

Mention DocumentRoot in Apache deployment docs

Reported by: gregglind Owned by: nobody
Component: Documentation Version: dev
Severity: Keywords: deployment
Cc: Triage Stage: Accepted
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

I understand that this may be my foolishness or oversight, but I was missing a DocumentRoot directive in my apache virtualhost config, causing 404 errors when I was looking in the /media directory. Maybe a slightly expanded discussion about how django handles django's urls, and apache handles things (in its normal way) when setHandler none is in effect would have helped me debug the error. I was spending time on the wrong path of MEDIA_ROOT, MEDIA_URL and the like.

Continue to be excellent!

Gregg L.

Change History (3)

comment:1 by Sung-jin Hong, 16 years ago

Triage Stage: UnreviewedAccepted

Good point. I've had problems with DocumentRoot too.

comment:2 by Gabriel Hurley, 14 years ago

Keywords: deployment added
Summary: Perhaps mention DocumentRoot?Mention DocumentRoot in Apache deployment docs

comment:3 by Klaas van Schelven, 14 years ago

Resolution: invalid
Status: newclosed

The recommended way of deploying Django on Apache, i.e.

http://docs.djangoproject.com/en/dev/howto/deployment/modwsgi/

explains exactly how to serve static files if you choose to use Apache (rather than a separate server) for this purpose. DocumentRoot is not required for this.

I'm not sure if this was ever a valid complaint (my guess is it was) but time seems to have healed this particular wound. Marking as invalid.

Note: See TracTickets for help on using tickets.
Back to Top