# Can't make Discourse accessible through Apache

**URL:** <https://meta.discourse.org/t/cant-make-discourse-accessible-through-apache/26775>\
**Category:** Self-hosting\
**Created:** [25 Marzo 2015, 5:01pm UTC](https://meta.discourse.org/t/cant-make-discourse-accessible-through-apache/26775 "2015-03-25T17:01:34Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![elberet](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/elberet/32/122404_2.png) [@elberet](https://meta.discourse.org/u/elberet)\
**Post date:** [25 Marzo 2015, 10:28pm UTC](https://meta.discourse.org/t/cant-make-discourse-accessible-through-apache/26775/7 "2015-03-25T22:28:00Z")

</div>

No, you should expose `"127.0.0.1:4000:80"`, then use the config snippet I’ve linked to and proxy into the container.

Let me repeat: **you can not run Discourse on port 80 while another webserver is running on your host system.** It’s simply not possible.

As for Apache’s default page appearing, did you wrap that block in a `<VirtualHost>` block? For Apache 2.2: did you enable name-based virtual hosting?

Also, and I cannot stress this enough, if you’re going to be a server admin, you should understand what you’re doing or you’re going to put yourself and your users at risk. Be responsible and RTFM. ([Read The F…riendly Manual](http://httpd.apache.org/docs/2.2/))

---

_[View the full topic](https://meta.discourse.org/t/cant-make-discourse-accessible-through-apache/26775)._
