My problem seem to be simple ...
I have 1 server on my lan 192.168.0.2 with a root path /var/www/ (apache2) and 1 domain example.com (nginx) and 1 subdomain bug.example.com (nginx)
and want only a proxy beetween
http://192.168.0.2/bugs/ --->> http://bug.example.com/
I use a bugtracker (Mantis) in the root directory like this /var/www/bugs
this config work :
server {
listen 80;
server_name bug.example.com;
location / {
proxy_pass http://192.168.0.2/bugs/;
}
}
But i don't have access to css or images ...
Css :
<link rel="stylesheet" type="text/css" href="http://192.168.0.2/bugs/css/default.css" />
image :
<link rel="shortcut icon" href="/bugs/images/favicon.ico" type="image/x-icon" />
I have test a LOT OF configuration with "proxy_set_header" , "proxy_redirect" , "rewrite" ... but never with success :(
Can anybody help me ?