Project

General

Profile

"http://192.168.0.13/redmine" display the public repertory

Added by Nicolas Pernot about 14 years ago

Hi,

I try to install Redmine on my server and access it on network.
Redmine is install in /usr/share/redmine
and in /var/www, there is a link "redmine" on "/usr/share/redmine/public".

All is on my server :
OS: Ubuntu
IP Static: 192.168.0.13

Apache configuration, for Redmine :

<VirtualHost *:80>
        ServerAdmin webmaster@localhost
        ServerName localhost

        DocumentRoot /var/www
        RailsEnv production
        RailsBaseURI /redmine

        <Directory /usr/share/redmine/public/>
                Options FollowSymLinks
                AllowOverride None
                Order deny,allow
                Allow from all
        </Directory>

        ErrorLog /var/log/apache2/error.log
        LogLevel warn
        CustomLog /var/log/apache2/access.log combined
</VirtualHost>

That works on local, when I type : http://localhost/redmine/
But doesn't works when I type : http://127.0.0.1/redmine/ (locale) or http://192.168.0.13/redmine/ (on network)
In there both cases, Firefox displays the public directory.

I think, the problem come from apache configuration but I need your help for fix the problem.

Thank you for your help and sorry for english mistakes (I'm just a French ;) )

Regards.


Replies (2)

RE: "http://192.168.0.13/redmine" display the public repertory - Added by Holger Just about 14 years ago

Apache does virtual hosting by default. Virtual Hosts are identified by the value of the Host header. So you could either add all the DNS names into a ServerAlias in your virtual host directive or remove NameVirtualHost *:80 from your configuration.

Also you should read about virtual hosts in Apache in general. The Apache documentation is rather good in this regard.

RE: "http://192.168.0.13/redmine" display the public repertory - Added by Nicolas Pernot about 14 years ago

Many Thanks !
I've added following strings after ServerName string :

ServerAlias 127.0.0.1
ServerAlias 192.168.0.13

All seems to work.

Thanks Again

Bye

    (1-2/2)