---
title: "Set up Admin Page In Apache"
author: "eonbell"
date: "2011-02-25T13:32:07Z"
tags: []
categories: ["编程语言"]
slug: "set-up-admin-page-in-apache"
draft: false
lastmod: "2011-02-25T13:32:07Z"
id: 929718
url: "https://eonbell.iteye.com/blog/929718"
---

Modify the settings in apache, change the media root to the own python path like this:

RewriteRule? /(media)($|(\/(.*))) /usr/local/lib/python2.6/site-packages/django/contrib/admin/$0