# Won't Run on Different Port

**URL:** https://meta.discourse.org/t/wont-run-on-different-port/52843
**Category:** Self-hosting
**Created:** [November 13, 2016, 5:49am UTC](https://meta.discourse.org/t/wont-run-on-different-port/52843 "2016-11-13T05:49:17Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![Jackz](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jackz/32/121545_2.png) [@Jackz](https://meta.discourse.org/u/Jackz)
#### Post date: [November 13, 2016, 5:49am UTC](https://meta.discourse.org/t/wont-run-on-different-port/52843/1 "2016-11-13T05:49:17Z")

</div>

Hello. I’m trying to install discourse on my server.  
I have an apache server currently running on port 80 and 443 at /var/www  
I want to install discourse to run at port 8080 for HTTP (I don’t care for https at the moment)

I have set the app.yml file to be:  
8080:81 and I’ve tried 8080:8080.

I have the hostname set to 0.0.0.0, and I’m tried to access it from the computer’s LAN ip, and from itself. It just says connection refused. Server is currently running. It seems like its running but not displaying anything or such?

I’m stumped at this point so I’m looking for some help.

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [November 13, 2016, 7:48am UTC](https://meta.discourse.org/t/wont-run-on-different-port/52843/2 "2016-11-13T07:48:47Z")

</div>

I don’t think we support running on a different port, you will need to proxy requests instead. There are #howto topics on it here.

---

<div class="post-metadata">

### Author: ![Jackz](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jackz/32/121545_2.png) [@Jackz](https://meta.discourse.org/u/Jackz)
#### Post date: [November 13, 2016, 7:52am UTC](https://meta.discourse.org/t/wont-run-on-different-port/52843/3 "2016-11-13T07:52:40Z")

</div>

I thought there was a way to run on different ports. I’ve been reading multiple howto topics, but none of say instructions how to directly do it with apache. I did throe get discourse running on a VM so it seems it is working.

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [November 14, 2016, 5:45pm UTC](https://meta.discourse.org/t/wont-run-on-different-port/52843/4 "2016-11-14T17:45:53Z")

</div>

I think what you want to do is to expose `8080:80` and then have Apache reverse-proxy [forum.yourdomain.com](http://forum.yourdomain.com) to port 8080.

---

<div class="post-metadata">

### Author: ![Jackz](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jackz/32/121545_2.png) [@Jackz](https://meta.discourse.org/u/Jackz)
#### Post date: [November 15, 2016, 12:02am UTC](https://meta.discourse.org/t/wont-run-on-different-port/52843/5 "2016-11-15T00:02:53Z")

</div>

Thank you! I didn’t understand how to set it up. I got it working now.
