mirror of
				https://github.com/django/django.git
				synced 2025-10-31 09:41:08 +00:00 
			
		
		
		
	[1.6.x] Fixed #22062 -- Corrected static files config for Apache >= 2.4
Backport of ffa238c3f7 from master
			
			
This commit is contained in:
		| @@ -140,12 +140,12 @@ will be served using mod_wsgi:: | |||||||
|  |  | ||||||
|     <Directory /path/to/mysite.com/static> |     <Directory /path/to/mysite.com/static> | ||||||
|     Order deny,allow |     Order deny,allow | ||||||
|     Allow from all |     Require all granted | ||||||
|     </Directory> |     </Directory> | ||||||
|  |  | ||||||
|     <Directory /path/to/mysite.com/media> |     <Directory /path/to/mysite.com/media> | ||||||
|     Order deny,allow |     Order deny,allow | ||||||
|     Allow from all |     Require all granted | ||||||
|     </Directory> |     </Directory> | ||||||
|  |  | ||||||
|     WSGIScriptAlias / /path/to/mysite.com/mysite/wsgi.py |     WSGIScriptAlias / /path/to/mysite.com/mysite/wsgi.py | ||||||
| @@ -153,10 +153,13 @@ will be served using mod_wsgi:: | |||||||
|     <Directory /path/to/mysite.com/mysite> |     <Directory /path/to/mysite.com/mysite> | ||||||
|     <Files wsgi.py> |     <Files wsgi.py> | ||||||
|     Order allow,deny |     Order allow,deny | ||||||
|     Allow from all |     Require all granted | ||||||
|     </Files> |     </Files> | ||||||
|     </Directory> |     </Directory> | ||||||
|  |  | ||||||
|  | If you are using a version of Apache older than 2.4, replace | ||||||
|  | ``Require all granted`` with ``Allow from all``. | ||||||
|  |  | ||||||
| .. _lighttpd: http://www.lighttpd.net/ | .. _lighttpd: http://www.lighttpd.net/ | ||||||
| .. _Nginx: http://wiki.nginx.org/Main | .. _Nginx: http://wiki.nginx.org/Main | ||||||
| .. _TUX: http://en.wikipedia.org/wiki/TUX_web_server | .. _TUX: http://en.wikipedia.org/wiki/TUX_web_server | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user