How to host a static webpage on Amazon Lightsail with a wordpress instance?

安稳与你 提交于 2020-01-03 06:35:53

问题


I have an instance of Wordpress on Amazon Lightsail, Wordpress is installed on a subdomain, I used the Bitnami image that Lightsail offers. I want to host a static page in the main domain, example: "https://www.expample.com". I have tried the solution that gives Bitnami, simply upload the files to the path: / opt / bitnami / apache2 / htdocs / I tried this but if I access with my browser to the main domain nothing appears

I want to solve this and upload a static website that points to this domain.


回答1:


You should not use the directory /opt/bitnami/apache2/htdocs/ since you're using a WordPress Stack and Apache is configured to serve the content of the directory /opt/bitnami/apps/wordpress/htdocs/ at the root of your domain.

Please visit Bitnami Documentation for WordPress at AWS for more information: https://docs.bitnami.com/aws/apps/wordpress



来源:https://stackoverflow.com/questions/46252129/how-to-host-a-static-webpage-on-amazon-lightsail-with-a-wordpress-instance

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!