새로 설치한 python경로로 이동하여 공용 라이브러리를 심볼릭 링크
# cd /usr/local/python2.7/lib/python2.7/config
# ln -s ../../libpython2.7.so
# cd /usr/local/src/mod_wsgi-3.3
# ./configure --with-apxs=/usr/local/httpd/bin/apxs --with-python=/usr/local/python2.7/bin/python
# make && make install
apache httpd.conf 추가
# vi /usr/local/httpd/conf/httpd.conf
LoadModule wsgi_module modules/mod_wsgi.so
AddHandler wsgi-script .wsgi
WSGIScriptAlias /myapp /usr/local/httpd/htdocs/wsgi/test.wsgi
<Directory /usr/local/httpd/htdocs/wsgi>
Order allow,deny
Allow from all
</Directory>
댓글 없음:
댓글 쓰기