<VirtualHost 10.143.5.251:443>
ServerAdmin admin@fancy.ru
ServerName www.fancy.com
ErrorLog /home/django-projects/fancy/logs/error_log
CustomLog /home/django-projects/fancy/logs/access_log common
Alias /static/admin/ /usr/local/lib/python2.7/dist-packages/django/contrib/admin/static/admin/
Alias /static/ /home/django-projects/fancy/fancy/templates/
Alias /files/ /home/django-projects/fancy/fancy/templates/
Alias /media/ /home/django-projects/fancy/media/
Alias /ishop/ /home/django-projects/fancy/ishop/
Alias /ru/ishop/ /home/django-projects/fancy/ishop/
Alias /robots.txt /home/django-projects/fancy/fancy/templates/robots.txt
Alias /sitemap.xml /home/django-projects/fancy/fancy/templates/sitemap.xml
<Directory /home/django-projects/fancy/media>
Order allow,deny
Allow from all
</Directory>
WSGIScriptAlias / /home/django-projects/fancy/deploy/django.wsgi
WSGIDaemonProcess fancy user=dw group=www-data home=/home/django-projects/fancy/media/ processes=4 threads=25 maximum-requests=1000 display-name=apache-dw-wsgi
WSGIProcessGroup fancy
SSLEngine on
SSLCertificateFile /etc/apache2/cert/www_fancy_com.crt
SSLCertificateKeyFile /etc/apache2/cert/fancy.key
SSLCertificateChainFile /etc/apache2/cert/www_fancy_com.ca-bundle
</VirtualHost>