Re: Django1.6 CentOS Apache static
Ok, Thank you! 2014年5月13日火曜日 17時28分07秒 UTC+9 Christian Ullrich: > > * hito koto wrote: > > > I have the following error: > > [Tue May 13 14:43:47 2014] [warn] The Alias directive in > > /etc/httpd/conf.d/wsgi.conf at line 17 will probably never match because > > it overlaps an earlier Alias. > > > > This is my the : /etc/httpd/conf.d/wsgi.conf > > > Alias /static/ "/django_test/skillshare/skillshare/static/" > > > Alias /static/ "/mysite/test/test/static/" > > > Alias /static/ "/mysite/abc/test/test/static/" > > You are attempting to map /static/ to three different directories at > once. There are a few things you can do to fix this: > > - Use virtual hosts > - Change /static/ to include the site name, e.g. /mysite/static/ > - Or the other way around: /static/mysite/ > - Or just throw the static content for all three sites into one big >heap, which will work just as well as long as no file names conflict. > > -- > Christian > > > > -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googlegroups.com. Visit this group at http://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/8657d6d8-f2a2-4235-8d03-dc3251e0f9ad%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: Django1.6 CentOS Apache static
* hito koto wrote: I have the following error: [Tue May 13 14:43:47 2014] [warn] The Alias directive in /etc/httpd/conf.d/wsgi.conf at line 17 will probably never match because it overlaps an earlier Alias. This is my the : /etc/httpd/conf.d/wsgi.conf Alias /static/ "/django_test/skillshare/skillshare/static/" Alias /static/ "/mysite/test/test/static/" Alias /static/ "/mysite/abc/test/test/static/" You are attempting to map /static/ to three different directories at once. There are a few things you can do to fix this: - Use virtual hosts - Change /static/ to include the site name, e.g. /mysite/static/ - Or the other way around: /static/mysite/ - Or just throw the static content for all three sites into one big heap, which will work just as well as long as no file names conflict. -- Christian -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googlegroups.com. Visit this group at http://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/lksl2n%247tj%241%40ger.gmane.org. For more options, visit https://groups.google.com/d/optout.
Django1.6 CentOS Apache static
Hello, I have 3 project, CentOS Apache Django1.6 Mod_wsgi I have the following error: [Tue May 13 14:43:47 2014] [warn] The Alias directive in /etc/httpd/conf.d/wsgi.conf at line 17 will probably never match because it overlaps an earlier Alias. This is my the : /etc/httpd/conf.d/wsgi.conf WSGIScriptAlias /django_test /var/www/html/django_test/skillshare/skillshare/wsgi.py Alias /static/ "/django_test/skillshare/skillshare/static/" WSGIScriptAlias /mysite /var/www/html/mysite/test/test/wsgi.py Alias /static/ "/mysite/test/test/static/" WSGIScriptAlias /mysite/abc /var/www/html/mysite/abc/article/article/wsgi.py Alias /static/ "/mysite/abc/test/test/static/" -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googlegroups.com. Visit this group at http://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/b43363cc-b4ef-4f8a-96b1-c03fd4375314%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.