RB website showing only directory listing

137 views
Skip to first unread message

shravanthi s

unread,
Jun 26, 2014, 11:53:34 AM6/26/14
to revie...@googlegroups.com
I installed RB 2.0 version on a RHEL 6.5 . I installed all the pre requisites and created RB site and added the line in /etc/httpd/conf/httpd.conf


Everything else in httpd.conf is default settings. But am only seeing the directory listing when i browse the website. Is there some other change in httpd.conf that i need to do? i have installed review board on another machine before (older version of course) and it did not need any further changes. 

Why am i seeing only directory listing when i browse the website? Should i change the document root or something?



Stephen Gallagher

unread,
Jun 27, 2014, 11:17:49 AM6/27/14
to revie...@googlegroups.com
On RHEL 6.5, it's a better idea to just do:

ln -s /var/www/mytest.example.com/conf/apache-wsgi.conf
/etc/httpd/conf.d/reviewboard.conf

and leave it out of the httpd.conf. The drop-directory logic should
handle everything appropriately.

Stephen Gallagher

unread,
Jun 27, 2014, 11:18:43 AM6/27/14
to revie...@googlegroups.com
Addendum: also make sure that apache-wsgi.conf is readable by the
'apache' user, both with standard UNIX permissions and with SELinux (if
you have it enforcing).

shravanthi s

unread,
Jun 29, 2014, 7:32:21 AM6/29/14
to revie...@googlegroups.com
The apache-wsgi.conf file is owned by root but it has read permissions for other users. Also should i create a new reviewboard.conf file in /etc/httpd/conf.d? And add this line 'Include /var/www/mytest.example.com/conf/apache-wsgi.conf' in reviewboard.conf file? I do not have ssl configured for this machine yet.

David Trowbridge

unread,
Jun 29, 2014, 5:02:11 PM6/29/14
to reviewboard
You should be able to just create a symbolic link to the apache-wsgi.conf file inside the relevant apache directories (whether you use conf.d or sites-available/sites-enabled)

-David


--
Get the Review Board Power Pack at http://www.reviewboard.org/powerpack/
---
Sign up for Review Board hosting at RBCommons: https://rbcommons.com/
---
Happy user? Let us know at http://www.reviewboard.org/users/
---
You received this message because you are subscribed to the Google Groups "reviewboard" group.
To unsubscribe from this group and stop receiving emails from it, send an email to reviewboard...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

shravanthi s

unread,
Jul 1, 2014, 8:41:11 AM7/1/14
to revie...@googlegroups.com
I created a symbolic link as suggested


But now am seeing RHEL test page when i try to access the website. The only difference in this environment from my previous installations is that /var/www is a separate mount or file system on this machine as we needed more space in this path. Does that matter to review board installation?


On Thursday, 26 June 2014 21:23:34 UTC+5:30, shravanthi s wrote:

Stephen Gallagher

unread,
Jul 1, 2014, 12:46:26 PM7/1/14
to revie...@googlegroups.com
On 07/01/2014 08:41 AM, shravanthi s wrote:
> I created a symbolic link as suggested
>
> ln -s /var/www/mytest.example.com/conf/apache-wsgi.conf
> /etc/httpd/conf.d/reviewboard.conf
> <http://mytest.example.com/conf/apache-wsgi.conf/etc/httpd/conf.d/reviewboard.conf>
>
> But now am seeing RHEL test page when i try to access the website. The
> only difference in this environment from my previous installations is
> that /var/www is a separate mount or file system on this machine as we
> needed more space in this path. Does that matter to review board
> installation?


Could you please attach apache-wsgi.conf so we could see what is wrong
with it?


Also, make sure that you are not ALSO doing 'include /var/www/....' in
httpd.conf

shravanthi s

unread,
Jul 2, 2014, 1:24:08 AM7/2/14
to revie...@googlegroups.com
The httpd.conf file has the line

Include conf.d/*.conf

And i have created a sym link  ln -s /var/www/mytest.example.com/conf/apache-wsgi.conf  /etc/httpd/conf.d/reviewboard.conf 

The apache-wsgi.conf is as below :

<VirtualHost mytest.example.com:80>
        ServerName mytest.example.com
        DocumentRoot "/var/www/mytest.example.com/htdocs"

        # Error handlers
        ErrorDocument 500 /errordocs/500.html

        WSGIPassAuthorization On
        WSGIScriptAlias "/" "/var/www/mytest.example.com/htdocs/reviewboard.wsgi/"

        <Directory "/var/www/mytest.example.com/htdocs">
                AllowOverride All
                Options -Indexes +FollowSymLinks
                Allow from all
        </Directory>

        # Prevent the server from processing or allowing the rendering of
        # certain file types.
        <Location "/media/uploaded">
                SetHandler None
                Options None

                AddType text/plain .html .htm .shtml .php .php3 .php4 .php5 .phps .asp
                AddType text/plain .pl .py .fcgi .cgi .phtml .phtm .pht .jsp .sh .rb

                <IfModule mod_php5.c>
                        php_flag engine off
                </IfModule>
        </Location>

        # Alias static media requests to filesystem
        Alias /media "/var/www/mytest.example.com/htdocs/media"
        Alias /static "/var/www/mytest.example.com/htdocs/static"
        Alias /errordocs "/var/www/mytest.example.com/htdocs/errordocs"
        Alias /favicon.ico "/var/www/mytest.example.com/htdocs/static/rb/images/favicon.png"
</VirtualHost>



On Thursday, 26 June 2014 21:23:34 UTC+5:30, shravanthi s wrote:

shravanthi s

unread,
Jul 3, 2014, 10:03:52 AM7/3/14
to revie...@googlegroups.com
Any update? Am still not able to get this working


On Thursday, 26 June 2014 21:23:34 UTC+5:30, shravanthi s wrote:

Stephen Gallagher

unread,
Jul 3, 2014, 10:13:45 AM7/3/14
to revie...@googlegroups.com
On 07/02/2014 01:24 AM, shravanthi s wrote:
> The httpd.conf file has the line
>
> Include conf.d/*.conf
>
> And i have created a sym link ln -s
> /var/www/mytest.example.com/conf/apache-wsgi.conf
> <http://mytest.example.com/conf/apache-wsgi.conf> /etc/httpd/conf.d/reviewboard.conf
>
> The apache-wsgi.conf is as below :
>
> <VirtualHost mytest.example.com:80>
> ServerName mytest.example.com
> DocumentRoot "/var/www/mytest.example.com/htdocs"


Did you actually install ReviewBoard into
/var/www/mytest.example.com/htdocs? This seems... unlikely?


It's not the best idea to install ReviewBoard into a sub-directory of
the real /var/www path that the standard webserver install uses.

Try installing ReviewBoard into /srv/reviewboard or somewhere else
outside of /var/www, temporarily disable SELinux(*) and symlink the
apache-wsgi.conf in place.


(*) This is a more complicated topic.
> <http://mytest.example.com/conf/apache-wsgi.conf>
>
> Everything else in httpd.conf is default settings. But am only
> seeing the directory listing when i browse the website. Is there
> some other change in httpd.conf that i need to do? i have installed
> review board on another machine before (older version of course) and
> it did not need any further changes.
>
> Why am i seeing only directory listing when i browse the website?
> Should i change the document root or something?
>
>
>
> --
> Get the Review Board Power Pack at http://www.reviewboard.org/powerpack/
> ---
> Sign up for Review Board hosting at RBCommons: https://rbcommons.com/
> ---
> Happy user? Let us know at http://www.reviewboard.org/users/
> ---
> You received this message because you are subscribed to the Google
> Groups "reviewboard" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to reviewboard...@googlegroups.com
> <mailto:reviewboard...@googlegroups.com>.

shravanthi s

unread,
Jul 3, 2014, 12:44:19 PM7/3/14
to revie...@googlegroups.com
Thanks for your reply Stephen.

I can try creating a review board site in some other location as you suggested. Probably in /srv/reviewboard. I had initially used the following command to create review board website
'rb-site install /var/www/mytest.example.com' . But looks like its giving me issues.

Now i will try the following command 
'rb-site install /srv/reviewboard/mytest2.example.com' and then create a symbolic link with this newly installed conf file.

Should i remove the websites i had created in /var/www before creating a new website in /srv/reviewboard?

Also is there any specific reason why it is suggested to create review board site in /var/www?

I cannot disable SELinux temporarily as it is against our company policies and there are security concerns related to it. Would it work even if i dont disable it?


On Thursday, 26 June 2014 21:23:34 UTC+5:30, shravanthi s wrote:

Stephen Gallagher

unread,
Jul 3, 2014, 1:32:36 PM7/3/14
to revie...@googlegroups.com
On 07/03/2014 12:44 PM, shravanthi s wrote:
> Thanks for your reply Stephen.
>
> I can try creating a review board site in some other location as you
> suggested. Probably in /srv/reviewboard. I had initially used the
> following command to create review board website
> 'rb-site install /var/www/mytest.example.com' . But looks like its
> giving me issues.
>
> Now i will try the following command
> 'rb-site install /srv/reviewboard/mytest2.example.com' and then create a
> symbolic link with this newly installed conf file.
>
> Should i remove the websites i had created in /var/www before creating a
> new website in /srv/reviewboard?
>
> Also is there any specific reason why it is suggested to create review
> board site in /var/www?
>
> I cannot disable SELinux temporarily as it is against our company
> policies and there are security concerns related to it. Would it work
> even if i dont disable it?

Well, you can run with SELinux in enforcing (I do) but it requires
making a number of policy tweaks to get SELinux to be aware that the
content in /srv/reviewboard or wherever is allowed to be accessed by the
httpd_t context. It's hard to explain and I am by no means an expert on
the subject.

I might suggest that if you really need this level of support, it would
be worth looking into an RBCommons setup or a support contract from
Beanbag, Inc. (makers of ReviewBoard).[1]

[1] https://www.beanbaginc.com/support/contracts/

shravanthi s

unread,
Jul 4, 2014, 4:55:00 AM7/4/14
to revie...@googlegroups.com
Am not sure why it is causing a problem now :( I had installed reviewboard successfully on another machine which was also RHEL 6.5 previously with ReviewBoard 1.7.22 version using the same procedure and it worked just fine. Now am trying to install latest version on a new server using same steps but its failing. Am not sure if its something to do with my new machine or the latest version of rb or my apache configuration. I tried to create a new site in /srv/reviewboard/mytest.example.com . And i added a symlink as well to point to latest apache-wsgi.conf file. But am not able to access the website in my browser when i try to access it using http://1XX.XX.XX.18/ . Not sure what is going wrong here. I will check if i can turn off SE Linux through our IT.

Thanks,
Shravanthi


shravanthi s

unread,
Jul 8, 2014, 5:27:14 AM7/8/14
to revie...@googlegroups.com
It looks like the issue was with DNS entry. I was trying to access the instance using IP while i had given the virtual hostname as instance name. I got this working! 
Thanks for your suggestions


Reply all
Reply to author
Forward
0 new messages