I am confused. Did you actually comment out all the Alias directives to see at 
least whether the request hot handled by the WSGI application at all? The 
configuration you have below didn't have them commented out.

BTW, I would very much suggest that rather than using a Django web application, 
that you go back and validate your Apache configuration using a simple WSGI 
hello world application such as in:

http://code.google.com/p/modwsgi/wiki/QuickConfigurationGuide#WSGI_Application_Script_File

Ensure you can get that working at least.

If that works, then we need to look at what is producing the 404.

Graham


On 14/07/2014, at 3:17 PM, Edwardo Hanna <[email protected]> wrote:

> Hello Graham, thanks, I have made the updates in this post. I also just 
> watched your video at PyConAU 2010. I was trying to take note if anything 
> could help me avoid the directory listing and the NOT FOUND pages. Thanks
> 
> 
> <VirtualHost *:8787>
>         #<Location /> 
>         #Deny from all 
>         #</Location>  
>       ServerAdmin test@localhost      
> 
>       WSGIDaemonProcess sampleapp 
> python-path=/var/www/sampleapp:/var/www/sampleapp/env/lib/python2.7/site-packages
>       WSGIProcessGroup sampleapp
> 
>       WSGIScriptAlias / 
> /var/www/sampleapp/Java-auto-grader-edx/for_django_1-4/myproject/myproject/wsgi.py
>       <Directory 
> /var/www/sampleapp/Java-auto-grader-edx/for_django_1-4/myproject/myproject>
>               Order allow,deny
>               Allow from all
>       </Directory>
> 
>       Alias /media/ 
> /var/www/sampleapp/Java-auto-grader-edx/for_django_1-4/myproject/myproject/media/
>       Alias /static/ 
> /var/www/sampleapp/Java-auto-grader-edx/for_django_1-4/myproject/myproject/static/
>       Alias /myapp/ 
> /var/www/sampleapp/Java-auto-grader-edx/for_django_1-4/myproject/myproject/myapp/
> 
>       <Directory 
> /var/www/sampleapp/Java-auto-grader-edx/for_django_1-4/myproject/myproject/static/>
>       #Require all granted
>          Order allow,deny
>          Allow from all
>       </Directory>
> 
>       <Directory 
> /var/www/sampleapp/Java-auto-grader-edx/for_django_1-4/myproject/myproject/media/>
>       #Require all granted
>          Order allow,deny
>          Allow from all
>       </Directory>
> 
>       <Directory 
> /var/www/sampleapp/Java-auto-grader-edx/for_django_1-4/myproject/myproject/myapp/>
>       #Require all granted
>          Order allow,deny
>          Allow from all
>       </Directory>
> 
>       <Directory 
> /var/www/sampleapp/Java-auto-grader-edx/for_django_1-4/myproject/myproject>
>       <Files wsgi.py>
>       #Require all granted
>         Order allow,deny
>         Allow from all
>       </Files>
>       </Directory>
> 
>       ErrorLog /var/log/apache2/error.log
> 
>       # Possible values include: debug, info, notice, warn, error, crit,
>       # alert, emerg.
>       LogLevel warn
> 
>       CustomLog /var/log/apache2/access.log combined
> 
> </VirtualHost>
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "modwsgi" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/modwsgi.
> For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
"modwsgi" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/modwsgi.
For more options, visit https://groups.google.com/d/optout.

Reply via email to