|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Stay one step ahead of the competition. Evaluate and give feedback
on some of the hottest web development tools on the market today.
Make your opinion heard! Click
Here
|
|
#1
|
|||
|
|||
|
rewrite with post method
I wrote a Web Server and I use Apache WebServer too.
I want to redirect all http requests from my Apache WebServer to te second Server. In httpd.conf I wrote: <VirtualHost myserver:80> ServerName myservername RewriteEngine on RewriteRule ^(.*) URL$1 [R,L] </VirtualHost> And it works :-) When I send for example GET /param1=value1¶m2=value2 http/1.1 to apache, my web server receive GET /param1=value1¶m2=value2 But the problem is with post request when I send a form POST / http/1.1 ..... param1=value1 param2=value2 Apache receive the correct request but my server web receive GET / http/1.1 and it's all !! I need the parameters param1 et param2 how can I do that ? Thanks. |
|
#2
|
|||
|
|||
|
>> But the problem is with post request
Because RewriteRule ^(.*) http://IpServer:8080$1 [R,L] uses GET method at all time. If IpServer is on the same server as myserver, use internal redirect. However, your RewriteRule ^(.*) tells me you are doing this for entire mydomain site, so you can also use proxy in mod_rewrite. Do a search in this forum as this has been discussed several times. Try keywords like: internal redirect, proxy or etc. under my username. |
|
#3
|
|||
|
|||
|
I searched et found severals threads about my problem but I don't quite understand.
Can you give me the correct code to include in httpd.conf file so that my WebServer could receive datas from post methods thanks. |
![]() |
| Viewing: Dev Shed Forums > System Administration > Apache Development > rewrite with post method |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|