Opened 10 years ago

Closed 8 years ago

#7721 closed (invalid)

Mention DocumentRoot in Apache deployment docs

Reported by: gregglind Owned by: nobody
Component: Documentation Version: master
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


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 Changed 10 years ago by Sung-jin Hong

Triage Stage: UnreviewedAccepted

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

comment:2 Changed 8 years ago by Gabriel Hurley

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

comment:3 Changed 8 years ago by Klaas van Schelven

Resolution: invalid
Status: newclosed

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

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