Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8545705
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T12:51:15+00:00 2026-06-11T12:51:15+00:00

I have configure mod_wsgi along with Apache 2 and tested with my Debain Squeeze

  • 0

I have configure mod_wsgi along with Apache 2 and tested with my Debain Squeeze 6. I need to put my code under /var/www directory as a extension .wsgi.
Now, I want to configure Django with mod_wsgi. How do I do it? Do I put my every files under /var/www. Is there a security issue or something? Can someone tell me step by step to configure django with mod_wsgi and where would be better to put the DJango codes? Thank you! P.S I have intermediate Django knowledge.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T12:51:16+00:00Added an answer on June 11, 2026 at 12:51 pm

    Here are a couple of links that you can use. The first one has proven the most useful for me as it is very detailed!

    • http://code.google.com/p/modwsgi/wiki/IntegrationWithDjango

    • https://code.djangoproject.com/wiki/django_apache_and_mod_wsgi

    Hope it helps!

    EDIT:

    Regarding security, as long as you provide access to the apache user (or www-data, depending on your linux distribution) (chown and chgrp) for all files in your /var/www/html/your_django_project you should not have any issues. Do NOT run anything as superuser.

    Be careful to allow the apache user to write your log files, wherever they are. You could get irrelevant errors which could be caused by that.

    Also, setup apache to serve django media files if you don’t want to end up with media-less pages 🙂

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a windows application (C#) and i need to configure it to run
I have Python 3.2 set up with Apache via mod_wsgi. I have CherryPy 3.2
I have been trying to configure mod_wsgi for two days and still no luck.
I have a Django based CMS that uses Django's sites framework and Nginx/Apache/mod_wsgi virtual
I seem to have some problems installing mod_python with apache. ./configure --prefix=/usr/local/apache2 make make
I have configured Mod Security on Apache 2.2.21 and i have successfully configured Mod
I have used emacs for erlang programming. According to http://emacswiki.org/emacs/CompileCommand , I have configure
I am using asp.net .. i have created one small application.. I have Configure
I have tried to configure alternate access mappings in my SharePoint 2010 which is
I'm currently setting up CI for my project and have team city configure and

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.