redmine and nginx

N
  • 3 Feb '11
Hello everyone! Why this config worked
[code]
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;
        }

        ...
}
[/code]

and this not
[code]
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;
        }

        ...
}
[/code]

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
E
  • 3 Feb '11
On Fri, Feb 4, 2011 at 12:36 AM, nahte <nginx-forum at nginx.us> wrote:
> and this not
> [code]
> 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;
> ? ? ? ?}
>

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.
P
  • 3 Feb '11
You may also read the redmine documentation about installing redmine in a subdirectory. There are a few specialties.

"nahte" <nginx-forum at nginx.us> schrieb:

>Hello everyone! Why this config worked
>[code]
>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;
>        }
>
>        ...
>}
>[/code]
>
>
>and this not
>[code]
>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;
>        }
>
>        ...
>}
>[/code]
>
>
>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
>
>
>_______________________________________________
>nginx mailing list
>nginx at nginx.org
>http://nginx.org/mailman/listinfo/nginx

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