- 论坛徽章:
- 0
|
如题:
配置完后:
启动后浏览器访问报Internal Server Error(500错误)
看日志:no python application found, check your startup logs for errors
安装完后配置如下:
nginx配置文件
1#
2 # template for develop
3 #
4 server {
5 listen 80;
6 server_name linming-s.django.qtest.com;
7 #index index.py;
8
9 root /home/linming-s/devspace//my_django;
10 access_log /home/linming-s/nginx.log;
11
12
13 location / {
14 uwsgi_pass 127.0.0.1:9090;
15 include uwsgi_params;
16 }
17
18
19 }
uwsgi配置文件如下
<uwsgi>
<socket>:9090</socket> // 设置服务的端口号
<chdir>/home/linming-s/devspace/my_django</chdir>
<pythonpath>..</pythonpath>
<module>manage</module>
</uwsgi>
|
|