# Redmine and nginx

**URL:** <https://www.ruby-forum.com/t/redmine-and-nginx/202687>\
**Category:** NGINX\
**Created:** [February 3, 2011, 6:37pm UTC](https://www.ruby-forum.com/t/redmine-and-nginx/202687 "2011-02-03T18:37:16Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![dubstep](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/cdc98d/32.png) [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Post date:** [February 3, 2011, 6:37pm UTC](https://www.ruby-forum.com/t/redmine-and-nginx/202687/1 "2011-02-03T18:37:16Z")

</div>

Hello everyone! Why this config worked

```auto
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

```auto
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](http://mydomain.com) to  
[mydomain.com/redmine](http://mydomain.com/redmine) ?

Posted at Nginx Forum:

> **[redmine and nginx](https://forum.nginx.org/read.php?2,171945,171945#msg-171945)**
>
> Hello everyone! Why this config worked \[code\] server { ... #location / { # root path\_to\_my\_site; # index index.php index.html index.htm; #} location / {

---

<div class="post-metadata">

**Author:** ![nahte](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/c2a13f/32.png) [@nahte](https://www.ruby-forum.com/u/nahte)\
**Post date:** [February 3, 2011, 7:55pm UTC](https://www.ruby-forum.com/t/redmine-and-nginx/202687/2 "2011-02-03T19:55:12Z")

</div>

On Fri, Feb 4, 2011 at 12:36 AM, nahte [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) 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.

---

<div class="post-metadata">

**Author:** ![nahte](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/c2a13f/32.png) [@nahte](https://www.ruby-forum.com/u/nahte)\
**Post date:** [February 3, 2011, 11:12pm UTC](https://www.ruby-forum.com/t/redmine-and-nginx/202687/3 "2011-02-03T23:12:10Z")

</div>

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

“nahte” [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) schrieb:

> ```
> location / {
> 
> ```
> 
> [/code]  
> }  
> …
> 
> * * *
> 
> nginx mailing list  
> [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
> [mailman.nginx.org archive](http://nginx.org/mailman/listinfo/nginx)

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