Ubuntu 如何在Digitalocean中添加其他网站?
我想在Digitalocean中添加我的公文包网站,但我不能确定服务器运行的是Ubuntu 在SSH终端中:Ubuntu 如何在Digitalocean中添加其他网站?,ubuntu,digital-ocean,ghost-blog,Ubuntu,Digital Ocean,Ghost Blog,我想在Digitalocean中添加我的公文包网站,但我不能确定服务器运行的是Ubuntu 在SSH终端中: $ var/www/ghost/ ->这是鬼博客 我将我的网站文件夹推入/www $ var/www/portfolio/ ->不要选择我的投资组合,而是404错误t\t 我该怎么做才能让它工作?你是如何为Ghost博客服务的?最常用的方法是使用Nginx反向代理。假设您正在做的事情是,您应该能够通过使用Nginx配置为静态网站提供服务,该配置应该如下所示: server {
$ var/www/ghost/
->这是鬼博客
我将我的网站文件夹推入/www
$ var/www/portfolio/
->不要选择我的投资组合,而是404错误t\t
我该怎么做才能让它工作?你是如何为Ghost博客服务的?最常用的方法是使用Nginx反向代理。假设您正在做的事情是,您应该能够通过使用Nginx配置为静态网站提供服务,该配置应该如下所示:
server {
listen 80 default_server;
server_name firstziiz.com;
root /usr/share/nginx/html;
index index.html index.htm;
client_max_body_size 10G;
location / {
proxy_pass http://localhost:2368;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $http_host;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_buffering off;
}
location /portfolio/ {
alias /var/www/portfolio/;
}
}
我混合不同的教程并更新它们以找到解决方案。我写了一篇文章,结合了所有的信息,如果你想在一滴服务几个鬼博客。