SunQuest
           Apache Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsSystem AdministrationApache Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
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  
Old September 20th, 2001, 09:49 AM
ftshadow ftshadow is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2001
Posts: 2 ftshadow User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
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&param2=value2 http/1.1 to apache, my web server receive GET /param1=value1&param2=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.

Reply With Quote
  #2  
Old September 20th, 2001, 07:43 PM
freebsd freebsd is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2001
Posts: 5 freebsd User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
>> 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.

Reply With Quote
  #3  
Old September 21st, 2001, 05:16 AM
ftshadow ftshadow is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2001
Posts: 2 ftshadow User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
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.

Reply With Quote
Reply

Viewing: Dev Shed ForumsSystem AdministrationApache Development > rewrite with post method


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway