-
-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
D'oh. If you're seeing this, your DocumentRoot is set incorrectly. It should be set to the public directory. #7168
Comments
You need to point Nginx or Apache to the |
I already done this.but it showing the same error |
Restart Nginx or Apache? This is the only thing I can think of that would cause this error. The file that displays this error is only located at the root directory. The public directory would show an actual error if it wasn't working properly (from experience anyways) |
Is this still relevant? We haven't heard from anyone in a bit. If so, please comment with any updates or additional detail. |
This issue has been automatically closed because it has not had recent activity. If you believe this is still an issue, please confirm that this issue is still happening in the most recent version of Snipe-IT and reply to this thread to re-open it. |
Is this issue really sorted? I have tried what is recommended above without success |
This is a configuration error by end users, not an issue with flarum itself. So long as https://flarum.org/docs/install.html is followed carefully this issue should not happen. If you need further support with this I recommend asking on our discord support channel https://discord.gg/H8Z2GJZ for faster more realtime support.
|
Hi, I'm trying to get snipe-it to work on macos using xamp. <VirtualHost *:8888> <VirtualHost *:8888> <VirtualHost *:8888> ---hosts file visiting http://localhost:8888/it/ gives me the message: D'oh. If you're seeing this, your DocumentRoot is set incorrectly. It should be set to the public directory. and visiting http://local.it/ takes me to the xamp dashboard. where am i going wrong? |
I have not found a clear solution to this issue, can this please be re-opened. |
No - it’s not an issue with Snipe-IT. It’s a server config. Make the public directory your document root in the web server. That’s the solution. The error is telling you how to fix it. |
I found the following solution that worked for me... modifying the .htaccess file instead: Here is the .htaccess file with the modified rewrite lines near the end. Note that I figured this out from FreeScout which uses laravel and the public directory as well.
|
D'oh. If you're seeing this, your DocumentRoot is set incorrectly. It should be set to the public directory.
what i will do?
The text was updated successfully, but these errors were encountered: