2011-12-14 202 views
2

我最近在我的Ubuntu 11.10盒子上安装了Redmine,在这里工作, ,并从localhost/redmine工作正常。现在我正在尝试将 放到网络上供我办公室的其他人使用,但在某处遇到了连接问题。我通过多线程阅读,但还没有找到 的答案。最新的东西是通过我的http://2222.us/redmine附加Redmine在本地主机上工作,但无法从网络访问?

管理平台:: utils的:: relative_url_root = “/管理平台”

我试过访问,但只收到 连接超时错误。我的httpd.conf中的内容只有一行

服务器名127.0.0.1

80端口监听

#netstat的-nao | grep的80

TCP 0 0 0.0.0.0:80 0.0.0.0:* LISTEN关闭(0.00/0/0)

而且我的内容网站启用文件管理平台是

<VirtualHost *:80> 
    ServerAdmin [email protected] 

    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> 

    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 ${APACHE_LOG_DIR}/error.log 

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

    CustomLog ${APACHE_LOG_DIR}/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> 

    # See 
    # http://www.modrails.com/documentation/Users%20guide%20Apache.html 
    # for details on what these options do. They will lead to an increase 
    # in memory usage, but significantly reduced access times. 


    # Speeds up spawn time tremendously -- if your app is compatible. 
    # RMagick seems to be incompatible with smart spawning 
    PassengerSpawnMethod smart 


    # Keep the application instances alive longer. Default is 300 (seconds) 
    PassengerPoolIdleTime 300 


    # Additionally keep a copy of the Rails framework in memory. If you're 
    # using multiple apps on the same version of Rails, this will speed up 
    # the creation of new RailsAppSpawners. This isn't necessary if you're 
    # only running one or 2 applications, or if your applications use 
    # different versions of Rails. 
    RailsFrameworkSpawnerIdleTime 0 

    # Just in case you're leaking memory, restart a listener 
    # after processing 5000 requests 
    PassengerMaxRequests 5000 


    # Only check for restart.txt et al up to once every 5 seconds, 
    # instead of once per processed request 
    PassengerStatThrottleRate 5 

    # Specify the minimum number of instances passenger can keep 
    # while cleaning idle instances 
    PassengerMinInstances 3 

    <Location /redmine> 
     Options Indexes -ExecCGI FollowSymLinks -MultiViews 
     # AllowOverride None 
     Order allow,deny 
     Allow from all 

     # mod_rails 
     # PassengerUser redmine 
     #RailsEnv edoceo_live 
     RailsBaseURI /redmine 

     # environment.rb 
     # Redmine::Utils::relative_url_root = "/redmine"  
    </Location> 

</VirtualHost> 

# Then after the virtualhost is loaded, send it a request 
# to initialize the redmine installation 
PassengerPreStart http://2222.us/redmine/ 

它应该工作,但它不是?有人可以建议吗?

回答

1

上帝,我笨,我使用了错误的IP .....

0

您可能在这里遇到防火墙问题,或者更有可能需要在路由器上设置端口转发,以将端口80上的流量转发到您的Linux机器。

+0

我使用了错误的IP的整个时间以来,我要求谷歌为我的IP,我应该刚刚运行ifconfig并得到了它告诉我的。 – ehime 2011-12-14 21:34:14

相关问题