在/etc/apache2/site-available目录下创建一个站点firstdjango.conf
文件内容:
1 WSGIPythonPath PYTHONPATH
2
3 <VirtualHost *:80>
4 ServerName www.test.org
5 DocumentRoot /var/www/firstdjango
6 ServerAdmin webmaster@firstdjango.com
7
8 <Location /static>
9 Order allow,deny
10 Allow from all
11 </Location>
12
13 <Location />
14 Order allow,deny
15 Allow from all
16 </Location>
17
18 WSGIScriptAlias / /var/www/firstdjango/firstdjango/wsgi.py
19 </VirtualHost>
在/var/www/目录下创建一个django工程 firstdjango 其他没有改变
访问127.0.0.1的时候出现的是Index of/ 是apache的目录不是It works
麻烦请教下拿出问题了