# How to install wordpress in the Secondary directory?

**URL:** https://meta.discourse.org/t/how-to-install-wordpress-in-the-secondary-directory/37699
**Category:** WordPress
**Created:** [10 Enero, 2016 07:32 UTC](https://meta.discourse.org/t/how-to-install-wordpress-in-the-secondary-directory/37699 "2016-01-10T07:32:33Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![saluzi](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/saluzi/32/77568_2.png) [@saluzi](https://meta.discourse.org/u/saluzi)
#### Post date: [10 Enero, 2016 07:32 UTC](https://meta.discourse.org/t/how-to-install-wordpress-in-the-secondary-directory/37699/1 "2016-01-10T07:32:33Z")

</div>

ask for advice , if “[www.xxx.com](http://www.xxx.com)” installation Discourse, how to install wordpress in the secondary directory “[XXX.com - XXX Sex Videos - Free Porn Movies](http://www.xxx.com/abc)” ? Specifically how to set up? thank you very much.

---

<div class="post-metadata">

### Author: ![erlend\_sh](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/erlend_sh/32/119475_2.png) [@erlend\_sh](https://meta.discourse.org/u/erlend_sh)
#### Post date: [10 Enero, 2016 13:00 UTC](https://meta.discourse.org/t/how-to-install-wordpress-in-the-secondary-directory/37699/2 "2016-01-10T13:00:07Z")

</div>

If you’re installing both on the same server, this is probably what you’re looking for:

> [@Run other websites on the same machine as Discourse](https://meta.discourse.org/t/running-other-websites-on-the-same-machine-as-discourse/17247):
>
> @pfaffman edited this heavily 2022.02.24. Blame me if it’s broken. If you want to run other websites on the same machine as Discourse, you need to set up an extra NGINX or HAProxy proxy in front of the Docker container. NOTE: This is for advanced admins This guide assumes you already have Discourse working - if you don’t, it may be hard to tell whether or not the configuration is working. You cannot use ./discourse-setup to set up Discourse if another server is using port 80 or 443. You will…

If, on the other hand, you’re dealing with two separate websites (e.g. two different Digital Ocean droplets, or two different servers) this is simply a question of configuring your DNS correctly.

Whether they’re both on the same server or different ones, the integration options between Discourse and WordPress are the same.
