서버설정

  • 2010.09.21 - 현재 서버가 nginx로 변경되서 설정 변경 필요. 귀찮아서 안하고 있음 -_-;

python wsgi 설정

  • apt-get install libapache2-mod-wsgi 설치
/home/pot/django_bookmarks/django_bookmarks.wsgi

import os
import sys

sys.path.append('/home/pot')
os.environ['DJANGO_SETTINGS_MODULE'] = 'django_bookmarks.settings'

import django.core.handlers.wsgi
application = django.core.handlers.wsgi.WSGIHandler()
  • 아파치 설정
<VirtualHost *:80>
        ServerAdmin box_at_kulpot.com

        ServerName hg.kulpot.com

        DocumentRoot /home/pot/django_bookmarks/
        WSGIScriptAlias / /home/pot/django_bookmarks/django_bookmarks.wsgi
        <Directory /home/pot/django_bookmarks/>
                AllowOverride ALL
                Options +FollowSymLinks
                RewriteEngine on
        </Directory>
</VirtualHost>

linux/myserver.txt · 마지막 수정: 2011/02/22 11:14 (외부 편집기)
 
이 위키의 내용은 다음의 라이센스에 따릅니다 : CC Attribution-Share Alike 3.0 Unported
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki