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 8914177
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T04:39:25+00:00 2026-06-15T04:39:25+00:00

I have installed apache and mod_wsgi, and all the web pages are retrieved and

  • 0

I have installed apache and mod_wsgi, and all the web pages are retrieved and displayed, but with NO static files loaded such as css, when I try to access a static file (e.g:http://localhost/static/css/base.css) it says that I don’t have permission to access the file, same goes to media files. So basically the webpage returned is just pure HTML.

I have followed the steps in the presentation slides http://code.google.com/p/modwsgi/downloads/detail?name=mod_wsgi-pycon-sydney-2010.pdf and made the directories accessible to others via chmod o+rx /home/loai/workspace/Faculty
, my httpd.conf part is :

WSGIScriptAlias / /home/loai/workspace/Faculty/Faculty/wsgi.py
WSGIPythonPath /home/loai/workspace/Faculty

Alias /media/ /home/loai/workspace/Faculty/Faculty/media
Alias /static/ /home/loai/workspace/Faculty/Faculty/static

<Directory /home/loai/workspace/Faculty/Faculty/static>
Order deny,allow
Allow from all
</Directory>

<Directory /home/loai/workspace/Faculty/Faculty/media>
Order deny,allow
Allow from all
</Directory>

<Directory /home/loai/workspace/Faculty/Faculty>
<Files wsgi.py>
Order deny,allow
Allow from all
</Files>
</Directory>

a strange thing is that when I remove the “Files” directive so it becomes:

<Directory /home/loai/workspace/Faculty/Faculty>
Order deny,allow
Allow from all
</Directory>

instead of 

<Directory /home/loai/workspace/Faculty/Faculty>
<Files wsgi.py>
Order deny,allow
Allow from all
</Files>
</Directory>

then trying to access any static or media file raises (not found) instead of permission denied ! but still the pure-html page is loaded !

  • 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-15T04:39:25+00:00Added an answer on June 15, 2026 at 4:39 am

    Try this..if it does try adding the configuration for media directory. Make sure to recursively set read permission on the static folder

     <VirtualHost *:80>
    
        DocumentRoot /home/loai/workspace/Faculty/
    
        Alias /static/ /home/loai/workspace/Faculty/static/
    
        <Directory /home/loai/workspace/Faculty>
        Order allow,deny
        Allow from all
        </Directory> 
        <Location "/static/">
            SetHandler None
        </Location>
    
        WSGIScriptAlias / /home/loai/workspace/Faculty/Faculty/wsgi.py
        </VirtualHost>
    

    Update:

    I would suggest copying your static folder outside the faculty application. And I have changed the path in the configuration file.

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

Sidebar

Related Questions

I have correctly (or prbably not) installed passenger on apache 2. Rack works, but
I have Django installed on a corporate intranet, running on Apache using mod_wsgi. The
I have been sold on mod_wsgi and apache rather than mod_python. I have all
I started web development some time ago, but have invested essentially all my time
I have installed Apache and Subversion on Windows. My config is: <Location /svn> DAV
I have installed apache on my server however I can not browse my website
I have installed apache-tomcat-6.0.35-windows-x86 in my system. How can I configure it and set
I'm trying to add Apache server to Eclipse(Juno). I have installed Apache server 7.0,
I am new to java vaadin framework. I have installed APACHE TOMCAT 6 and
I have Apache installed with the XAMPP package, and I'm working locally. I have

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.