上接CentOS 5.4 下redmine的简单配置

时间:2022-09-16 21:39:46

上接CentOS 5.4下安装redmine的简单配置:

地址如下:http://blog.csdn.net/leekwen/article/details/8518158

如果你不想以地址:http://IP-Addr/redmine的方式访问,

而是想直接去通过http://IP-Addr的方式访问的话,

你可以直接修改/etc/httdp/conf/httpd.conf配置文件,设置如下:

[root@localhost ~]#vi /etc/httpd/conf/httpd.conf
[root@localhost ~]# tail -n 22 /etc/httpd/conf/httpd.conf
# Redmine Configure Start
LoadModule passenger_module /usr/lib/ruby/gems/1.8/gems/passenger-3.0.19/ext/apache2/mod_passenger.so
    PassengerRoot /usr/lib/ruby/gems/1.8/gems/passenger-3.0.19
    PassengerRuby /usr/bin/ruby
    PassengerUser apache
<VirtualHost *:80>
    ServerName www.localhost.com
# !!! Be sure to point DocumentRoot to 'public'!
#    DocumentRoot /var/www/html/
    DocumentRoot /usr/local/redmine-2.1.6/public
    ErrorLog logs/redmine_error_log
    AddHandler cgi-script .cgi
    <Directory "/usr/local/redmine-2.1.6/public">
      Options Indexes -MultiViews FollowSymLinks ExecCGI
      Order allow,deny
      Allow from all
      AllowOverride all
      RailsEnv production
      RailsBaseURI /
    </Directory>
</VirtualHost>
# Redmine Configure End

只修了这三处,就可以直接地用IP地址访问了。