wordpress icon indicating copy to clipboard operation
wordpress copied to clipboard

DocRoot non existant

Open promotobillet opened this issue 4 years ago • 5 comments

I am trying to find out how to access the www document root for ssh uploads etc. The documented "/usr/share/nginx/html" does not even exist. Please advise where that might be found and how to access.

promotobillet avatar Mar 16 '21 21:03 promotobillet

Are you familiar with Docker services? You may want to references the documentation which details this topic: https://github.com/openbridge/nginx

tspicer avatar Mar 16 '21 23:03 tspicer

Very little. Can you provide instruction how to access the www folder?

promotobillet avatar Mar 17 '21 12:03 promotobillet

I did provide instruction. See the link I shared as it describes this in detail.

tspicer avatar Mar 17 '21 12:03 tspicer

I've read through that, where does it instruct about how to access the www folder in docker container?

promotobillet avatar Mar 17 '21 12:03 promotobillet

Here is describes "NGINX_DOCROOT sets the default www directory. If you do not set this the images defaults to /usr/share/nginx/html"` https://github.com/openbridge/nginx#digging-into-the-env-file

Then under the section titled "Mounting Your Web App or Site Content" to describes the mapping for the mounts. https://github.com/openbridge/nginx#mounting-your-web-app-or-site-content

It says "To mount your web app or html files, you will need to mount the volume on the host that contains your files. Make sure you are setting the NGINX_DOCROOT in your run or docker-compose.yml file. If you do not set it the default is /usr/share/nginx/html

-v /your/webapp/path:{{NGINX_DOCROOT}}:ro

tspicer avatar Mar 17 '21 13:03 tspicer