# Wordpress Setup (Nginx + Apache)

**URL:** <https://www.ruby-forum.com/t/wordpress-setup-nginx-apache/211282>\
**Category:** NGINX\
**Created:** [August 31, 2011, 5:06pm UTC](https://www.ruby-forum.com/t/wordpress-setup-nginx-apache/211282 "2011-08-31T17:06:57Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![luislavena](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/0ea827/32.png) [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Post date:** [August 31, 2011, 5:06pm UTC](https://www.ruby-forum.com/t/wordpress-setup-nginx-apache/211282/1 "2011-08-31T17:06:57Z")

</div>

Hello fellas,

I’ve been setup wordpress blog using NginX as front end and Apache as a  
backend. My nginx config are :  
[http://fpaste.org/ae4M/](http://fpaste.org/ae4M/)

But, if I check the httpd and nginx log, the result(s) shows :

… snip …  
125.164.xxx.xxx - - [31/Aug/2011:22:03:51 +0700] “GET /wp-admin/  
HTTP/1.1”  
200 58394 “-” “Mozilla/5.0 (Windows NT 6.1; WOW64; rv:6.0)  
Gecko/20100101  
Firefox/6.0” “172.16.17.244”  
… snip …

HTTP Code shows the php served on Nginx ☹  
Is this config is correctly ? The apache’s log shows nothing.

---

<div class="post-metadata">

**Author:** ![antituhan](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/6bbea6/32.png) [@antituhan](https://www.ruby-forum.com/u/antituhan)\
**Post date:** [August 31, 2011, 5:29pm UTC](https://www.ruby-forum.com/t/wordpress-setup-nginx-apache/211282/2 "2011-08-31T17:29:49Z")

</div>

location / {  
root /data/xtremenitro/;  
index index.php index.html index.htm;  
proxy\_pass [http://127.0.0.1:81](http://127.0.0.1:81);  
}

This may be the reason - you are serving the files on your nginx server

---

<div class="post-metadata">

**Author:** ![antituhan](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/6bbea6/32.png) [@antituhan](https://www.ruby-forum.com/u/antituhan)\
**Post date:** [August 31, 2011, 6:48pm UTC](https://www.ruby-forum.com/t/wordpress-setup-nginx-apache/211282/3 "2011-08-31T18:48:52Z")

</div>

location / {  
proxy\_pass [http://127.0.0.1:81](http://127.0.0.1:81);  
}

Try this and make sure your Wordpress configuration is good on your  
Apache webserver

---

<div class="post-metadata">

**Author:** ![antituhan](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/6bbea6/32.png) [@antituhan](https://www.ruby-forum.com/u/antituhan)\
**Post date:** [August 31, 2011, 6:20pm UTC](https://www.ruby-forum.com/t/wordpress-setup-nginx-apache/211282/4 "2011-08-31T18:20:26Z")

</div>

Christopher wrote:

> nginx mailing list  
> [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
> [mailman.nginx.org archive](http://mailman.nginx.org/mailman/listinfo/nginx)

Anyway, I think the directive above is through to Apache Web Server.  
Isn’t it ? Because the /location // directive means all files on / will  
be  
pass the proxy on port :81.  
CMIIW.

–  
View this message in context:  
[http://nginx.2469901.n2.nabble.com/Wordpress-Setup-Nginx-Apache-tp6746900p6747173.html](http://nginx.2469901.n2.nabble.com/Wordpress-Setup-Nginx-Apache-tp6746900p6747173.html)  
Sent from the nginx mailing list archive at [Nabble.com](http://Nabble.com).

---

<div class="post-metadata">

**Author:** ![antituhan](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/6bbea6/32.png) [@antituhan](https://www.ruby-forum.com/u/antituhan)\
**Post date:** [September 5, 2011, 7:00am UTC](https://www.ruby-forum.com/t/wordpress-setup-nginx-apache/211282/5 "2011-09-05T07:00:32Z")

</div>

Simone fumagalli wrote:

> Ciao
> 
> –  
> Simone F.
> 
> * * *
> 
> nginx mailing list  
> [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
> [mailman.nginx.org archive](http://mailman.nginx.org/mailman/listinfo/nginx)

Ok, I’ll try it 😉

---

<div class="post-metadata">

**Author:** ![antituhan](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/6bbea6/32.png) [@antituhan](https://www.ruby-forum.com/u/antituhan)\
**Post date:** [September 1, 2011, 11:57am UTC](https://www.ruby-forum.com/t/wordpress-setup-nginx-apache/211282/6 "2011-09-01T11:57:52Z")

</div>

On 08/31/2011 05:06 PM, antituhan wrote:

> Hello fellas, I’ve been setup wordpress blog using NginX as front end  
> and Apache as a backend.

If you are using this setup you might be interested in this plugin

> **[NGINX Manager](https://wordpress.org/plugins/nginx-manager/)**
>
> Easily purge Nginx cache. Each time a post is modified clear the cached version of the page and of all the related page.

In this way you can serve directly with Nginx static version of your  
pages and offload Apache

Ciao

–  
Simone F.
