I am trying to get some config to work.
For example If I post to http://sub.domain.com/wow.php
I want to have the post data available in http://www.domian.com/wow.php by using the following config.
www.domain.com is running on apache+php and sub.domain.com is running on nginx.
nginx.conf is:
server {
listen IP:80;
server_name sub.domain.com;
location /wow.php {
proxy_pass http://www.domain.com/wow.php;
}
}
If i now post to http://sub.domain.com/wow.php the POST variables are empty if I run
<?
print_r($_POST);
?>
<form methox="post">
<input type="text" />
<input type="submit" />
</form>
on http://www.domain.com/wow.php
I really need this simplifies configuration get to work.