# This is clearly not a complete httpd.conf file. But it does contain # any changes or additions to our httpd.conf that were required to # use DSpace and Tomcat with mod_webapp. Should you have any # questions, please email jsimms@utk.edu. # Load the module at the end of the other LoadModule directives LoadModule webapp_module libexec/mod_webapp.so # Similarly, add the module at the end of other AddModule directives AddModule mod_webapp.c # We run as dspace:dspace (same for Tomcat) User dspace Group dspace # Set the ServerName in the top-level, as well as in the VirtualHost. # We got an "Invalid Virtual Host name" error unless we had both. ServerName dspace.sunsite.utk.edu # Lines right of dspace-httpd.conf RedirectMatch ^/$ https://dspace.sunsite.utk.edu/ RedirectMatch ^(/[^o].*) https://dspace.sunsite.utk.edu$1 RedirectMatch ^(/.[^a].*) https://dspace.sunsite.utk.edu$1 RedirectMatch ^(/..[^i].*) https://dspace.sunsite.utk.edu$1 WebAppConnection conn warp localhost:8008 WebAppDeploy dspace-oai conn /oai # For some reason, the dspace-httpd.conf file does not bracket SSL # related directives within an block. For us, this # caused errors; your experience may differ. # Obviously, much has been removed from the VirtualHost section # (mainly, all the SSL certificate stuff, etc.). However, you # can see that only a few additions were required to get DSpace # running. Note the ServerName directive, present both here and # above in the main server configuration. ServerName dspace.sunsite.utk.edu SSLEngine on WebAppDeploy dspace conn /