Reviewboard: You don't have permission to access / on this server.

22 views
Skip to first unread message

Ron A

unread,
Jun 14, 2019, 7:21:33 PM6/14/19
to Review Board Community
Hi, I'm running reviewboard 3.0.15 with apache 2.4 on centos 7.

I'm not able to resolve this issue below.

You don't have permission to access / on this server.
Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request.

The apache error log has this info.
[autoindex:error] [pid 18974] [client x.x.x.x:53374] AH01276: Cannot serve directory /mnt/data/www/reviewboard/htdocs/: No matching DirectoryIndex (index.html) found, and server-generated directory index forbidden by Options directive

The wsgi_module is loaded.
In the file apache-wsigi.conf I have set it to Require all granted

<Directory "/mnt/data/www/reviewboard/htdocs">
     Require all granted
</Directory>

The apache user has access to  /mnt/data/www/reviewboard/htdocs 

It seems like apache doesn't know how to resolve the file htdocs/reviewboard.wsgi  or something?
Thanks for the help,
Ron

Christian Hammond

unread,
Jun 25, 2019, 6:11:39 PM6/25/19
to revie...@googlegroups.com
Hi Rob.

Sorry for the wait. You may have gotten past this by now (or given up), but something to check is that your distro doesn’t have a default site set up (often called 000_default.conf or similar), which can throw things off. I suspect that’s not the case here, but just to check.

Did your Apache/mod_wsgi come from the distro, or was it installed custom? What distro are you running?

Christian



--
Supercharge your Review Board with Power Pack: https://www.reviewboard.org/powerpack/
Want us to host Review Board for you? Check out RBCommons: https://rbcommons.com/
Happy user? Let us know! https://www.reviewboard.org/users/
---
You received this message because you are subscribed to the Google Groups "Review Board Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to reviewboard...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/reviewboard/6498d2f3-bfed-4640-9c46-d068834593a2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
--
Christian Hammond
President/CEO of Beanbag
Makers of Review Board

Paul Mansfield

unread,
Jun 26, 2019, 5:01:54 AM6/26/19
to Review Board Community
Ensure the wsgi module is installed and loaded into your web server. In apache on centos, I have the following installed:

mod_wsgi-3.4-18.el7.x86_64
uwsgi-plugin-common-2.0.17.1-2.el7.x86_64
uwsgi-2.0.17.1-2.el7.x86_64
uwsgi-plugin-python2-2.0.17.1-2.el7.x86_64
mod_proxy_uwsgi-2.0.17.1-2.el7.x86_64



You need the following in your /etc/httpd/conf.d/rb.conf file - the wsgi things are the most important:

WSGIPassAuthorization On
WSGIScriptAlias "/" "/var/www/reviewboard/htdocs/reviewboard.wsgi/"


Alias /media "/var/www/reviewboard/htdocs/media"
Alias /static "/var/www/reviewboard/htdocs/static"
Alias /errordocs "/var/www/reviewboard/htdocs/errordocs"
Alias /favicon.ico "/var/www/reviewboard/htdocs/static/rb/images/favicon.png"


DocumentRoot "/var/www/reviewboard/htdocs"
<Directory "/var/www/reviewboard/htdocs">
AllowOverride All
Options -Indexes +FollowSymLinks
Allow from all
</Directory>

Reply all
Reply to author
Forward
0 new messages