xxx.xxx.xxx.xxx demo
sudo vim /etc/apache2/sites-available/000-default.conf
<VirtualHost *:9000>ServerName demoWSGIDaemonProcess demo python-path=/home/user/PycharmProjects/mysite/venv/lib/python3.6/site-packagesWSGIProcessGroup demoWSGIScriptAlias / /home/user/PycharmProjects/mysite/mysite/wsgi.py process-group=demo<Directory /home/user/PycharmProjects/mysite/mysite><Files wsgi.py>Require all granted</Files></Directory>Alias /media/ /home/user/PycharmProjects/mysite/media/<Directory /home/user/PycharmProjects/mysite/media>Require all granted</Directory>Alias /static/ /home/user/PycharmProjects/mysite/.static_root/<Directory /home/user/PycharmProjects/mysite/.static_root>Require all granted</Directory><Directory /home/user/PycharmProjects/mysite/venv/lib/python3.6/site-packages>Require all granted</Directory><Directory /home/user/PycharmProjects/mysite>Require all granted</Directory><Directory /home/user/PycharmProjects/mysite/demo>Require all granted</Directory>ErrorLog /home/user/PycharmProjects/mysite/logs/error.logCustomLog /home/user/PycharmProjects/mysite/logs/access.log combined</VirtualHost>
댓글 없음:
댓글 쓰기