2011年2月3日星期四

redmine and nginx

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@nginx.org
http://nginx.org/mailman/listinfo/nginx

没有评论:

发表评论