Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DocRoot non existant #21

Open
promotobillet opened this issue Mar 16, 2021 · 5 comments
Open

DocRoot non existant #21

promotobillet opened this issue Mar 16, 2021 · 5 comments

Comments

@promotobillet
Copy link

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.

@tspicer
Copy link
Contributor

tspicer commented Mar 16, 2021

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

@promotobillet
Copy link
Author

promotobillet commented Mar 17, 2021 via email

@tspicer
Copy link
Contributor

tspicer commented Mar 17, 2021

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

@promotobillet
Copy link
Author

promotobillet commented Mar 17, 2021

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

@tspicer
Copy link
Contributor

tspicer commented Mar 17, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants