# Oddmuse cgi though thttpd--\> localhost links

**URL:** <https://www.ruby-forum.com/t/oddmuse-cgi-though-thttpd-localhost-links/195920>\
**Category:** NGINX\
**Created:** [October 2, 2010, 10:48pm UTC](https://www.ruby-forum.com/t/oddmuse-cgi-though-thttpd-localhost-links/195920 "2010-10-02T22:48:25Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Xan](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/x/ac8455/32.png) [@Xan](https://www.ruby-forum.com/u/Xan)\
**Post date:** [October 2, 2010, 10:48pm UTC](https://www.ruby-forum.com/t/oddmuse-cgi-though-thttpd-localhost-links/195920/1 "2010-10-02T22:48:25Z")

</div>

Hi,

I follow [http://wiki.nginx.org/ThttpdCGI](http://wiki.nginx.org/ThttpdCGI) for running oddmuse. This are  
my configurations:

nginx:

[…]  
location ~ .pl$ {  
proxy\_pass [http://127.0.0.1:8082](http://127.0.0.1:8082); #8080 → thttpd  
proxy\_set\_header X-Real-IP $remote\_addr;

```
    }

```

thttpd:

[…]  
cgipat= **.cgi|**.pl  
host=127.0.0.1  
port=8082

It appears the main page of oddmuse but all the links (“Edit this page”  
for example) point to localhost although 172.26.0.3 (my real ip and  
nginx ip).

What can I do?

Xan.

Posted at Nginx Forum:

> **[oddmuse cgi though thttpd--\> localhost links](https://forum.nginx.org/read.php?2,136368,136368#msg-136368)**
>
> Hi, I follow http://wiki.nginx.org/ThttpdCGI for running oddmuse. This are my configurations: nginx: \[...\] location ~ \\.pl$ { proxy\_pass http://127.0.0.1:8082; #8080 --\> thttpd proxy\_set\_head
