[英]Google Cloud apache server
I'm trying to set up a VM instance in Google Cloud Hosting and just set up an apache server for it.我正在尝试在 Google Cloud Hosting 中设置一个 VM 实例并为其设置一个 apache 服务器。 I followed a tutorial that showed how to overwrite the server's default web page with a blank page that says "Hello World", but I want to overwrite it with my website's index page, which is in my storage bucket.我遵循了一个教程,该教程展示了如何用一个写着“Hello World”的空白页面覆盖服务器的默认网页,但我想用我的网站的索引页面覆盖它,该页面在我的存储桶中。 How do I do that?我怎么做?
You can mount your storage bucket to a folder inside your VM with these instructions您可以按照这些说明将存储桶挂载到 VM 内的文件夹中
You could mount it to this path [1] as an example, so that your web server points directly to the bucket.例如,您可以将其挂载到此路径 [1],以便您的 Web 服务器直接指向存储桶。
[1] /var/www/html [1] /var/www/html
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.