1
我試圖建立rhodecode +管理平臺在Ubuntu具有以下 配置nginx的配置12.04
http://my_ip/redmine
和
http://my_ip/rhodecode
我使用nginx的作爲Web服務器與redmine運行本地主機:3000 和本地主機上運行的rhodecode:5000,不知何故我錯過了點 配置nginx.conf
我能夠在端口3000(而與使用WEBrick測試)和rhodecode在端口5000兩個管理平臺重定向的個體,但不能將它們設置爲
http://my_ip/redmine
和
http://my_ip/rhodecode
以下是我的nginx .conf文件
worker_processes 1;
events {
worker_connections 1024;
}
http {
passenger_root /usr/local/rvm/gems/ruby-1.9.3-p374/gems/passenger-3.0.19;
passenger_ruby /usr/local/rvm/wrappers/ruby-1.9.3-p374/ruby;
upstream rhodecode {
server 127.0.0.1:5000;
}
include mime.types;
default_type application/octet-stream;
sendfile on;
keepalive_timeout 65;
server {
listen 80;
server_name localhost;
root /var/data/redmine/public;
passenger_enabled on;
client_max_body_size 25m; # Max attachemnt size
location /rhodecode/ {
try_files $uri @rhodecode;
proxy_pass http://127.0.0.1:5000;
}
location /rhodecode {
proxy_pass http://127.0.0.1:5000;
}
}
}
我不想做這個子域,問題很明顯,我想嘗試做它的子URI。反彈其他人? – iniy 2013-10-24 17:28:13