Welcome to WebmasterWorld Guest from 54.196.233.239

Forum Moderators: Ocean10000 & incrediBILL & phranque

Message Too Old, No Replies

Post on url with nginx and proxy pass

     

Ruben

11:14 am on Dec 30, 2011 (gmt 0)

10+ Year Member


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.
 

Featured Threads

Hot Threads This Week

Hot Threads This Month