里程碑

结合  

apache部署django - 超级管理员 - 博客园

编辑apache_django_wsgi.conf:

<VirtualHost *:80>  #①
WSGIScriptAlias / "D:/mysite/apache/django.wsgi"

<Directory "D:/mysite">
Allow from all
</Directory>

<Directory "D:/mysite/templates">
Allow from all
</Directory>

<Directory "D:/mysite/viewfun">
Allow from all
</Directory>
</VirtualHost>

参考httpd.conf:

ServerRoot "D:/Apache2.2"

#
# Listen: Allows you to bind Apache to specific IP addresses and/or
# ports, instead of the default. See also the <VirtualHost>
# directive.
#
# Change this to Listen on specific IP addresses as shown below to
# prevent Apache from glomming onto all bound IP addresses.
#
#Listen 12.34.56.78:80
Listen 80 #②

①在这里更改端口号时要与apache配置文件一同改   比如:改成81时  httpd.conf 里面的Listen 相同 才起作用

posted @ 2012-09-27 20:16  hhhyde  阅读(225)  评论(0编辑  收藏  举报