3👍
First off you are missing WSGIProcessGroup directive. Without that your application isn’t going to be running in daemon mode as you possibly expect after having defined WSGIDaemonProcess directive.
Secondly, a .htaccess file isn’t even going to be consulted when using WSGIScriptAlias except for the static directories you mapped with Alias directives.
What you need to do is use AddHandler method for mounting WSGI application, with associated rewrite rules to get it to appear at root of site, as documented in:
http://code.google.com/p/modwsgi/wiki/ConfigurationGuidelines#The_Apache_Alias_Directive
1👍
You can use an Include
to include an access file into your config file, but because the directory structure only exists in urls.py
, you wouldn’t be able to use a .htaccess
file. You can always name your include file .htaccess
, but including it inside your VirtualHost is probably the best option.
- [Django]-How to redo makemigrations after getting an error?
- [Django]-No module named django.core when running django-admin startproject myproject
- [Django]-Django 1.11 with celery 4.0 and djcelery compatibility issues
- [Django]-How to pass javascript variable value to views.py function in django?
- [Django]-Django 1.10 Translation
0👍
I don’t see why you want to do this in an .htaccess file. You should do it in the virtual host configuration you have pasted above.
- [Django]-Docker can't find installed modules by pipenv in Django project
- [Django]-Mongo DB or Couch DB with django for building an app that is similar to top coder?
- [Django]-Datafile not found, datafile generation failed in confusable_homoglyphs/categories.py