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:

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]
nginx Info Page


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