Gary Roach wrote on 08/28/2015 16:48: > On 08/28/2015 06:24 AM, Jörg-Volker Peetz wrote: >> Gary Roach wrote on 08/28/2015 01:01: >> <snip> >>> The requested URL /redmine was not found on this server. >>> Apache/2.4.10 (Debian) Server at supercrunch Port 80 >>> >>> I'm wondering why the server can't fine redmine. The redmine.conf is in the >>> sites-enabled directory with a softlink to the sites-available directory. >>> >> <snip> >> >> How does your redmine.conf file look like? > > The following is in /etc/apache2/sites-enabled/redmine.conf > > # The passenger module (from the libapache2-mod-passenger package) must be > # enabled > <VirtualHost *:80> > # ServerName localhost > # this is the passenger config > RailsEnv production > SetEnv X_DEBIAN_SITEID "default" > PassengerDefaultUser www-data > Alias "/plugin_assets/" /var/cache/redmine/default/plugin_assets/ > DocumentRoot /usr/share/redmine/public > <Directory "/usr/share/redmine/public"> > Allow from all > Options -MultiViews > Require all granted > </Directory> > </VirtualHost> > >> >> Did you make any changes in /usr/share/redmine/config for using redmine via >> the >> sub-URI /redmine? >> Especially, in /usr/share/redmine/config/environments.rb? > I have made no changes to either of these files. While looking through the > files, I did notice that there didn't seem to be any html files (except 2 > error > files) in any of the redmine paths. ????
There are none also in my nginx/unicorn configuration. I'm not sure which redmine version you're now using. For using the sub-URI /redmine I'd expect to see "Alias"es as in /usr/share/doc/redmine/examples/apache2-passenger-alias.conf which start with "/redmine"? I, with redmine 3, do set the environment variable RAILS_RELATIVE_URL_ROOT to "/redmine" and I had to install a soft link from /usr/share/redmine/public/redmine -> . (done by something like "cd /usr/share/redmine/public ; ln -s . redmine"). Further I had to change the file environment.rb in /usr/share/redmine/config . But I'm not sure if that works in your case. Anyhow, I'll attach the file. Regards, jvp.
environment.rb
Description: application/ruby