# Fully hiding localhost:8080 with Nginx as reverse proxy?

**URL:** <https://www.ruby-forum.com/t/fully-hiding-localhost-8080-with-nginx-as-reverse-proxy/244632>\
**Category:** NGINX\
**Created:** [May 16, 2016, 11:01pm UTC](https://www.ruby-forum.com/t/fully-hiding-localhost-8080-with-nginx-as-reverse-proxy/244632 "2016-05-16T23:01:09Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sadaf\_N](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/858c86/32.png) [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Post date:** [May 16, 2016, 11:01pm UTC](https://www.ruby-forum.com/t/fully-hiding-localhost-8080-with-nginx-as-reverse-proxy/244632/1 "2016-05-16T23:01:09Z")

</div>

Hello list,  
As mentioned earlier, Nginx and Apache are currently playing nicely  
together, with Apache handling all my OSTicket needs. However, I’m now  
trying to send mail from OSTicket, and while OST claims success, I’m not  
seeing any messages coming to my account. I was doing some searching and  
found that this can happen if the email appears to come from localhost,  
or  
some other invalid domain. Given my setup, I suspect that this is  
exactly  
the problem. What can I do to have responses from Apache appear to come  
from the domain’s IP, rather than 127.0.0.1:8080? Thanks!

---

<div class="post-metadata">

**Author:** ![redroot](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/919ad9/32.png) [@redroot](https://www.ruby-forum.com/u/redroot)\
**Post date:** [May 18, 2016, 9:04pm UTC](https://www.ruby-forum.com/t/fully-hiding-localhost-8080-with-nginx-as-reverse-proxy/244632/2 "2016-05-18T21:04:16Z")

</div>

On Mon, May 16, 2016 at 05:00:06PM -0400, Alex H. wrote:

Hi there,

> trying to send mail from OSTicket, and while OST claims success, I’m not  
> seeing any messages coming to my account. I was doing some searching and  
> found that this can happen if the email appears to come from localhost, or  
> some other invalid domain.

I’m pretty sure that a php application sending mail is unrelated to  
the nginx that is in front of it (whether by fastcgi\_pass or  
proxy\_pass).

You’ll probably have better luck asking your search engine of choice  
for things like “send email from osticket”.

Cheers,

## f

Francis D. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)
