上接CentOS 5.4 下redmine的简单配置

本文介绍如何在CentOS5.4系统中配置Redmine应用,使其可以通过http://IP-Addr直接访问,而不需要附加/redmine路径。文章详细展示了如何修改httpd.conf配置文件来实现这一目标。

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

地址如下:http://blog.youkuaiyun.com/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地址访问了。

评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

Leekwen

您的鼓励,是我坚持更新的动力!

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值