diff --git a/Django_Blog/snippets/django_project.conf b/Django_Blog/snippets/django_project.conf index c32ec9ceb..3fd5a358a 100644 --- a/Django_Blog/snippets/django_project.conf +++ b/Django_Blog/snippets/django_project.conf @@ -1,52 +1,93 @@ - # The ServerName directive sets the request scheme, hostname and port that - # the server uses to identify itself. This is used when creating - # redirection URLs. In the context of virtual hosts, the ServerName - # specifies what hostname must appear in the request's Host: header to - # match this virtual host. For the default virtual host (this file) this - # value is not decisive as it is used as a last resort host regardless. - # However, you must set it for any further virtual host explicitly. - #ServerName www.example.com + ServerName www.anovin.mk ServerAdmin webmaster@localhost DocumentRoot /var/www/html - # Available loglevels: trace8, ..., trace1, debug, info, notice, warn, - # error, crit, alert, emerg. - # It is also possible to configure the loglevel for particular - # modules, e.g. - #LogLevel info ssl:warn - ErrorLog ${APACHE_LOG_DIR}/error.log CustomLog ${APACHE_LOG_DIR}/access.log combined - # For most configuration files from conf-available/, which are - # enabled or disabled at a global level, it is possible to - # include a line for only one particular virtual host. For example the - # following line enables the CGI configuration for this host only - # after it has been globally disabled with "a2disconf". - #Include conf-available/serve-cgi-bin.conf + Alias /static /home/anovindooel/apps/anovin/static + + Require all granted + + + Alias /media /home/anovindooel/apps/anovin/media + + Require all granted + + + + + Require all granted + + + + WSGIScriptAlias / /home/anovindooel/apps/anovin/portfolio/wsgi.py + WSGIDaemonProcess django_app_anovin python-path=/home/anovindooel/apps/anovin python-home=home/anovindooel/apps/anovin/venv + WSGIProcessGroup django_app_anovin + + + + + + ServerName journal.anovin.mk + ServerAdmin webmaster@localhost + DocumentRoot /var/www/html + + ErrorLog ${APACHE_LOG_DIR}/error.log + CustomLog ${APACHE_LOG_DIR}/access.log combined - Alias /static /home/YOURUSER/YOURPROJECT/static - + Alias /static /home/anovindooel/apps/journal/static + Require all granted - Alias /media /home/YOURUSER/YOURPROJECT/media - + Alias /media /home/anovindooel/apps/journal/media + Require all granted - + Require all granted - WSGIScriptAlias / /home/YOURUSER/YOURPROJECT/YOURPROJECT/wsgi.py - WSGIDaemonProcess django_app python-path=/home/YOURUSER/YOURPROJECT python-home=/home/YOURUSER/YOURPROJECT/venv - WSGIProcessGroup django_app + WSGIScriptAlias / /home/anovindooel/apps/journal/sci/wsgi.py + WSGIDaemonProcess django_app_journal python-path=/home/anovindooel/apps/journal python-home=home/anovindooel/apps/journal/venv + WSGIProcessGroup django_app_journal -# vim: syntax=apache ts=4 sw=4 sts=4 sr noet + + + + ServerName anovski.anovin.mk + ServerAdmin webmaster@localhost + DocumentRoot /var/www/html + + ErrorLog ${APACHE_LOG_DIR}/error.log + CustomLog ${APACHE_LOG_DIR}/access.log combined + + Alias /static /home/anovindooel/apps/anovski/static + + Require all granted + + + Alias /media /home/anovindooel/apps/anovski/media + + Require all granted + + + + + Require all granted + + + + WSGIScriptAlias / /home/anovindooel/apps/anovski/portfolio/wsgi.py + WSGIDaemonProcess django_app_anovski python-path=/home/anovindooel/apps/anovski python-home=home/anovindooel/apps/anovski/venv + WSGIProcessGroup django_app_anovski + +