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

  • Home
  • SEARCH
  • 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 7178891
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T17:00:55+00:00 2026-05-28T17:00:55+00:00

I am trying to get a Django app running on Apache with mod_wsgi. I

  • 0

I am trying to get a Django app running on Apache with mod_wsgi. I got a 403(Forbidden) for both any file in /static and /(the Django app). The apache user has permission to the wsgi.py and can list /apps/{DIR}/static. I even changed the user and group of all the file/directories in /apps/{DIR}. I can su to the apache user can traverse to wsgi.py. I can manually run apache is debug mode with httpd -X and everything works fine! (I can access the Django app and the static content) But when I run it normally it does not work, I get a 403.

RHEL 6.2,
Python 2.6.6,
Django 1.3,
httpd-2.2.15,
mod_wsgi-3.2

/etc/httpd/conf/httpd.conf:

WSGIScriptAlias / /apps/{DIR}/{APP_NAME}/apache/wsgi.py
WSGIPythonPath /apps/{DIR}/{APP_NAME}

<Directory /apps/{DIR}/{APP_NAME}/apache>
  <Files wsgi.py>
    Order deny,allow
    Allow from all
  </Files>
</Directory>

Alias /static /apps/{DIR}/static
<Directory /apps/{DIR}/static>
  Order allow,deny
  Options Indexes
  Allow from all
  IndexOptions FancyIndexing

  #Options FollowSymLinks
  AllowOverride None
</Directory>

error in httpd/error_log

[...] [error] [client x.x.x.x] (13)Permission denied: access to / denied
[...] [error] [client x.x.x.x] (13)Permission denied: Can't open directory for index: /apps/{DIR}/static/

Does anyone have any ideas?
Thanks

  • 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-05-28T17:00:56+00:00Added an answer on May 28, 2026 at 5:00 pm

    Are you running with SELinux enabled?

    Are all directories from ‘/’ down to the static media directory readable to Apache user, not just the directory itself?

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

Sidebar

Related Questions

I'm trying to get a Django app running with Lighttpd. I followed the directions
I'm trying to get up and running with the django-testapp on app engine. I've
I am trying to get Django 1.1 working on Google App Engine. I followed
I'm trying to get Django running on GAE using this tutorial . When I
I'm running CentOS 5, and am trying to get a django application working with
I am trying to get my Django project running on the production server. I
I'm trying to deploy a django app with fabric and get the following error:
hi trying to get a nginx+gunicorn+django site up and running /it works well in
I'm trying to get the django-cms to work on google-app-engine. Did anyone succeed in
I'm on Mac Leopard. Trying to get django admin file uploads, or really image

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.