Redmine and nginx

Hello everyone! Why this config worked

server {
        ...

        #location / {
        #    root   path_to_my_site;
        #    index  index.php index.html index.htm;
        #}

        location / {
            root /srv/www/redmine/redmine/public/;
            access_log /srv/www/redmine/redmine/log/access.log;
            error_log /srv/www/redmine/redmine/log/error.log;
            index index.html index.htm;
            passenger_enabled on;
            allow all;
        }

        ...
}

and this not

server {
        ...

        location / {
            root   path_to_my_site;
            index  index.php index.html index.htm;
        }

        location /redmine {
            root /srv/www/redmine/redmine/public/;
            access_log /srv/www/redmine/redmine/log/access.log;
            error_log /srv/www/redmine/redmine/log/error.log;
            index index.html index.htm;
            passenger_enabled on;
            allow all;
        }

        ...
}

or exist another method to move redmine from mydomain.com to
mydomain.com/redmine ?

Posted at Nginx Forum:
http://forum.nginx.org/read.php?2,171945,171945#msg-171945

On Fri, Feb 4, 2011 at 12:36 AM, nahte [email protected] wrote:

   location /redmine {
       root /srv/www/redmine/redmine/public/;
       access_log /srv/www/redmine/redmine/log/access.log;
       error_log /srv/www/redmine/redmine/log/error.log;
       index index.html index.htm;
       passenger_enabled on;
       allow all;
   }

This is not how passenger works. Actually, the one you should read is
passenger’s documentation. How to achieve what you want is explained
there.

You may also read the redmine documentation about installing redmine in
a subdirectory. There are a few specialties.

“nahte” [email protected] schrieb:

   location / {

[/code]
}


nginx mailing list
[email protected]
http://nginx.org/mailman/listinfo/nginx


Diese Nachricht wurde von meinem Android-Mobiltelefon mit K-9 Mail
gesendet.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs