Project

General

Profile

Change default website to IP address insterad of IP/redmine?

Added by allen yeh over 14 years ago

Most of the advice I've seen seems to be geared towards mongrel, but I'm running a apache2/passenger and I have no idea how to change the redmine address to IP only instead of IP/redmine

in /etc/apache2/sites-enabled I found a file that has this:

<VirtualHost *:80>
ServerAdmin webmaster@localhost

DocumentRoot /var/www/
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /var/www/>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
</Directory>

I don't know how to modify it the correct way though, so far it just messes things up.

<Directory /var/www/redmine>
RailsBaseURI /redmine
</Directory>
ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
<Directory "/usr/lib/cgi-bin">
AllowOverride None
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
Order allow,deny
Allow from all
</Directory>

ErrorLog /var/log/apache2/error.log

  1. Possible values include: debug, info, notice, warn, error, crit,
  2. alert, emerg.
    LogLevel warn

CustomLog /var/log/apache2/access.log combined

Alias /doc/ "/usr/share/doc/"
<Directory "/usr/share/doc/">
Options Indexes MultiViews FollowSymLinks
AllowOverride None
Order deny,allow
Deny from all
Allow from 127.0.0.0/255.0.0.0 ::1/128
</Directory>

</VirtualHost>
~


Replies (2)

RE: Change default website to IP address insterad of IP/redmine? - Added by allen yeh over 14 years ago

I think I figured it out:

Instead of
DocumentRoot /var/www/

you put

DocumentRoot /usr/share/redmine/public

That seems to have done the trick after restarting apache2.

    (1-2/2)