V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX  ›  Achilless  ›  全部回复第 14 页 / 共 14 页
回复总数  265
1 ... 5  6  7  8  9  10  11  12  13  14  
@jlzhu 有意向 python 职位,经验略不足。。
2019-04-30 17:06:00 +08:00
回复了 zhuzhibin 创建的主题 问与答 在?你们的服务器一般用来干嘛?
听歌~再也不怕版权啥的了,听自己存的歌
2019-04-30 17:02:55 +08:00
回复了 zhuzhibin 创建的主题 问与答 在?你们的服务器一般用来干嘛?
@Trumeet 弱弱的问句,你们这些网站样式哪里来的啊
2019-04-22 17:50:05 +08:00
回复了 Achilless 创建的主题 问与答 关于 Python 中捕获异常的问题
# blog_nginx.conf

# the upstream component nginx needs to connect to
upstream django {
server unix://opt/uwsgitest/NewBlog/blog.sock; # for a file socket
# server 127.0.0.1:8001; # for a web port socket (we'll use this first)
}

# configuration of the server
server {
# the port your site will be served on
listen 80;
# the domain name it will serve for
server_name pandacoder.top; # substitute your machine's IP address or FQDN
charset utf-8;

# max upload size
client_max_body_size 75M; # adjust to taste

# Django media
location /media {
alias /opt/uwsgitest/media_root; # your Django project's media files - amend as required
}

location /static {
alias /opt/uwsgitest/NewBlog/static_root; # your Django project's static files - amend as required
}

# Finally, send all non-media requests to the Django server.
location / {
uwsgi_pass django;
include /opt/uwsgitest/NewBlog/uwsgi_params; # the uwsgi_params file you installed
}
}
这是现在的配置,media 那里需要修改什么呢,oss 地址是 http://pandacoderblog.oss-cn-shanghai.aliyuncs.com
1 ... 5  6  7  8  9  10  11  12  13  14  
关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2207 人在线   最高记录 6543   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 18ms · UTC 11:52 · PVG 19:52 · LAX 04:52 · JFK 07:52
Developed with CodeLauncher
♥ Do have faith in what you're doing.