Apache, IIS and 502 proxy error
I have some servers in my network. There is one public Apache server that proxies requests to these servers. These servers are not directly visible from internet. Some of these servers run IIS and ASP.NET web applications. When accessing these servers through internet then sometimes Apache reports a problem: 502 proxy error.
After some digging in internet I found out what’s going on between Apache and IIS. There is very informative bug report in Apache issue tracker – Bug 37770 – proxy: error reading status line from remote server (null). Comment #17 states reason of error as follows:
The problem also only occurs for us when we use an IIS backend device, with an apache its ok. From a tcpdump the only diff I can see between the two sessions is that the IIS closes the connection when the keep-alive time out is reached with a TCP RST packet, while the apache does a Fin/Ack handshake. When IIS sends this RST packet the next request to the mod_proxy device that’s hits the worker with the RST connection returns the 502 error msg.
So, there is some misunderstandings between Apache proxy stuff and IIS. Although some guys suggest to use very long timeouts and hacks to Apache source code there is very simple fix that works very well for me. Make sure you have mod_env enabled and add these lines to Apache configuration file.
SetEnv force-proxy-request-1.0 1
SetEnv proxy-nokeepalive 1
After restarting Apache server the communication between Apache and IIS should work fine. After these modifications I have seen no error 502 anymore.
This post is very timely. I just set up dev environments for me and my co-workers at my job, and this issue has been frustrating us. Many thanks.
You are welcome :)
Nice blog
I am facing same problem. I have done the above mentioned changes SetEnv. But still getting the same error.I am using apache 2.2.3
This solution worked for me, thanks for posting it
Good Solution.. Worked for me..
Firstly, I would like to know the impact of 502 error. When the apache act as proxy reported 502, how the apache will assume the status of IIS servers?
On other hand, the two setenv will fallback to httpd/1.0 without keepalive. Does it may increaes the TCP sockets needed to be opened as no more keepalive?
This will increase the loading for the IIS server.
I am getting this error in two scenarious after this env setting is done,
if the request that is made from the browser is time taking/bigger size data as a result.
and observed if number of simultaneous requests are in the range of 5-10
Please help me
Althu, this was written in 2009, but helped me last day. Was having same issue and was unable to find root couse. This helps. Thanks a lot and keep up the good things.
Great! This is exactly what I was looking for and it works! Thanks!
I had a similar problem and resorted to turning of HTTP keep-alive among the common response headers in IIS. Works for both IIS6 and IIS7.
Checked out your Gateway IP, Same problem did hurt me also on inspection i found that i did’t give my Gateway IP to my LAN Card.
After upgrading my IIS backend from Windows 2003/IIS6 to Windows 2008/IIS7 I suddenly got 502 errors. Thanks to this post I was able to sort out the issue, thanks a lot!!!
Thanks DigiMortal, this solved a very big problem for me!
/ Jakob
Pingback:Fix Apache Error 502 Errors - Windows XP, Vista, 7, 8
Pingback:How To Fix Apache Error Reading From Remote Server in Windows
Hello, after reading this amazing paragraph i am too happy to share my know-how here with mates.
After I initially commented I appear to have clicked the -Notify
me when new comments are added- checkbox and from now on every time a comment
is added I recieve four emails with the exact same comment.
Is there a way you can remove me from that service? Cheers!
My web page: https://www.cucumber7.com/
Thanks for finally writing about > Apache, IIS and 502 proxy error < Liked it!
Hmm is anyone else encountering problems with the pictures on this blog loading?
I’m trying to determine if its a problem on my end or
if it’s the blog. Any feedback would be greatly appreciated.
Feel free to visit my page Slate roof sheets for Efficient coverage
My programmer is trying to persuade me to move
to .net from PHP. I have always disliked the idea because of
the costs. But he’s tryiong none the less. I’ve been using WordPress on various
websites for about a year and am concerned about switching to another
platform. I have heard very good things about blogengine.net.
Is there a way I can transfer all my wordpress
posts into it? Any kind of help would be really appreciated!
I’m no longer sure where you’re getting your info, however
great topic. I needs to spend a while learning more or understanding more.
Thank you for magnificent info I used to be on the
lookout for this info for my mission.
Very nice post. I just stumbled upon your weblog and wished to
say that I have truly enjoyed surfing around your blog posts.
After all I’ll be subscribing to your rss feed and I hope
you write again soon!
my site … Engine Performance
Very good site you hаve heee but I waѕ curious if you knew of any community forums that cover the same topics discussed here?
I’d really love to bbe a part of group where I can get
feed-back frⲟm other excperienced individuals that share the same interest.
If you have anny suggestions, please let me know.
Bless you!
Feel free to visit my page unblocked games 66
I just couldn’t depart your website before suggesting that I actually loved
the standard info an individual provide in your visitors? Is going to be back often to inspect new posts
Here is my blog … https://www.cucumber7.com/
This is my first time visit at here and i am really happy to read everthing at single place.
I have been surfing online more than 3 hours today, yet I never found any interesting article like yours.
It is pretty worth enough for me. In my view, if all website
owners and bloggers made good content as you did,
the web will be a lot more useful than ever before.
My web page :: Camshaft Timing Control
Best AI Galleries
Useful info. Lucky me I discovered your website by chance, and
I am shocked why this coincidence did not took place earlier!
I bookmarked it.
Thank you a bunch for sharing this with all folks you
actually recognize what you are talking about! Bookmarked.
Kindly also talk over with my website =). We could have a hyperlink
alternate arrangement between us
https://applewithbtcs.com/ Apple4 bitcoin | buy apple products with bitcoin and cryptocurrency
https://luxury.applebitcoins.com Apple bitcoins
| buy apple products with bitcoin and cryptocurrency
https://applebtcs.com Apple bitcoins | buy apple products with bitcoin and cryptocurrency
https://cryptobitmart.com Bull Miners | Crypto Mining Equipment
at Unbeatable Prices
https://applewithbtcs.com/ Apple4 bitcoin | buy apple products with
bitcoin and cryptocurrency
you’re in reality a just right webmaster. The website loading speed is amazing.
It sort of feels that you are doing any distinctive trick.
Furthermore, The contents are masterwork. you have performed a great process on this topic!
excellent points altogether, you simply won a new reader.
What might you suggest in regards to your post that you made a few
days ago? Any positive?
Een doordacht en prikkelend artikel. Ik heb hhet gedeeld op X (voorheen Twitter)
om te helpen de boodschap te verspreidenom het onder de aandacht te brengenom het te promotenom
de bekendheid te vergrotenom het te dele meet anderen.
Feel free to surf to my webpage – https://www.youtube888.com/
https://cryptobitmart.comCryptobitmart | Online Shopping
with Cryptocurrency
https://applewithbtcs.com/ Apple4 bitcoin | buy apple products
with bitcoin and cryptocurrency
What’s up colleagues, nice post and fastidious urging commented here, I am in fact enjoying by these.
Unquestionably believe that that you said. Your favourite justification seemed to be at
the net the simplest factor to remember of. I say to you, I definitely get
irked while other folks think about concerns that they just
do not recognize about. You managed to hit the nail upon the highest and outlined out the whole
thing with no need side effect , other people could take
a signal. Will likely be again to get more. Thanks
It’s perfect time to make some plans for the future and it is time to be happy.
I’ve read this post and if I could I want to suggest you some interesting things or tips.
Perhaps you can write next articles referring to
this article. I wish to read even more things about it!
global pet insurance market
The Private Instagram Viewer is a simple tool meant to allow you anonymously investigate public Instagram profiles without
logging into your own account. Whether you’re eager virtually a username,
want to look someones profile portray in full
size, or check out their bio and public posts, this tool makes it fast and private.
Hmm it looks like your site ate my first comment (it
was extremely long) so I guess I’ll just sum it up what I submitted and
say, I’m thoroughly enjoying your blog. I as well am an aspiring blog blogger but I’m still new to everything.
Do you have any points for first-time blog writers?
I’d certainly appreciate it.
Whoa plenty of useful material!
Hi, I believe your website might be having internet browser
compatibility problems. Whenever I take a look at your blog in Safari,
it looks fine however when opening in IE, it has some overlapping issues.
I merely wanted to provide you with a quick heads up!
Apart from that, wonderful site!
Definitely believe that which you stated. Your favorite reason seemed to be on the web the simplest factor to take into account of.
I say to you, I definitely get annoyed at the same time as other people think about
worries that they just do not understand about. You controlled to hit the
nail upon the top as smartly as defined out the entire
thing without having side effect , people can take a signal.
Will likely be again to get more. Thanks
Excellent read! It answered my questions. Bookmarking this for later.
If anyone’s interested, feel free to visitZysk z NV
Casino. Thanks again!
Good posts. Cheers!
I love digital stream because that’s always there when me want
this. AM drink? Jazz out of France. Late-night sessions?
That downtempo synth via the city. Me don’t have to
dig up mixes nor skip songs—just smash go then allow
everything flow. It’s similar to someone who forever gets
which I crave to listen to.
There is a mood special when connecting with a real-time channel,
feeling someone else is listening at the same time.
This seems honest. I came across channels that play classic
rap, USSR-style funk, also bizarre night talk shows based in Canada.
Internet streaming is more than music—this is an endless space streaming
alongside my day.
Stop by my web page: Online radio
Thanks for sharing your thoughts. I really appreciate your efforts and I am waiting for your next write ups thanks once again.
Hey
Stoped by to tell you how interesting your site is!
I myself have an post about 놀쟈초대코드
feel free to visit and give me some comments!
Thank!
여성전용마사지 gave me the mental break I desperately needed
Ridiculous story there. What happened after? Take care!
I know this if off topic but I’m looking into starting my own blog and was wondering what all is
needed to get set up? I’m assuming having a blog like
yours would cost a pretty penny? I’m not very internet
savvy so I’m not 100% positive. Any suggestions or advice would be greatly appreciated.
Many thanks
The gentle hands at 부산여성전용마사지 spoke to my body in a way words never could.
The peaceful energy of 수원여성전용마사지 lingered with me long after I left the space.
Truly when someone doesn’t know then its up to other visitors that they will assist, so here it takes place.|
I’ve been browsing online more than 3 hours nowadays, but I never discovered any attention-grabbing article like yours. It’s beautiful value sufficient for me. Personally, if all website owners and bloggers made excellent content material as you probably did, the net will likely be a lot more helpful than ever before.
Hey
Stoped by to tell you how interesting your site is!
I also have an page about 유출출사
feel free to visit and give me some likes
Thank you!
Many businesses look for appealing visual content for platforms like YouTube and Instagram.
My web blog work from home social media jobs india [git.fofpower.cn]
Wow, that’s what I was exploring for, what a data!
existing here at this web site, thanks admin of this web site.
잊고 있었던 나의 감정들을 조용히 끌어안아 준 곳, 바로 수원여성전용마사지입니다.
I’m not sure where you’re getting your information, but good topic.
I needs to spend some time learninbg much more or understanding more.
Thanks for magnificent informatioon I wwas looking for this info for my mission.
Hello
Stoped by to say how interesting your post is!
I have a site about 유출출사
come visit and give me some feedback
Thank!
Hi Dear, are you really visiting this website daily, if so afterward
you will absolutely take pleasant knowledge.
After 부산토닥이,
my shoulders and heart both felt lighter.
The service at 강남호스트바 exceeded my expectations.
https://stanproperty.com/property/binjai-on-the-park-penthouse-for-sale2/
Nicely put. Cheers.
Tremendous things here. I am very happy to see your article.
Thanks so much and I am looking forward to touch you.
Will you kindly drop me a mail?
เว็บสล็อต เว็บตรง slot truewallet
This is nicely expressed! !
E2bet là nhà cái uy tín hàng đầu Châu Á với nhiều
sản phẩm hấp dẫn như: Cá cược thể thao, đá gà, casino,… Bạn có thể đăng ký tài
khoản dễ dàng và nhanh chóng,
What Is FitSpresso? FitSpresso is a dietary supplement that is made to support healthy fat-burning in the body
I quite like reading through an article that can make men and women think.
Also, thank you for permitting me to comment!
Whoa lots of fantastic material.
Excellent site you have got here.. It’s difficult to find high-quality
writing like yours nowadays. I honestly appreciate individuals like you!
Take care!!
인천토닥이는 깔끔하고
모든 게 매끄러웠어요.
Thanks , I’ve just been looking for info approximately
this subject for a while and yours is the greatest I have found out so far.
However, what in regards to the bottom line? Are you certain about the supply?
강남토닥이 여성전용마사지를 받은 이후로 몸이
한결 부드러워지고 컨디션이 좋아졌어요.
ค่าย PG เกมสล็อตแตกง่าย!
ทำกำไรได้จริง แค่ปลายนิ้วก็รวยได้!,หมดปัญหาเกมสล็อตทำเงินยาก!
ลอง PGSLOT สิ! สล็อตแตกจริง รับทรัพย์เต็มๆ,โอกาสทองมาแล้ว!
PGSLOT แจกหนัก ทุกคนที่สมัคร,ไม่ต้องมีทุนเยอะก็เล่นได้!
PGSLOT เกมสล็อต pgยอดนิยม กำไรงาม จ่ายเต็ม,เข้าเล่น PGSLOT ตอนนี้!
โกยกำไรมหาศาล ทันที!,ที่สุดของความบันเทิงและรางวัลใหญ่ ต้องที่ PGSLOT เท่านั้น!,
พีจีสล็อต: มีคืนยอดเสียให้!
คุ้มกว่านี้ไม่มีอีกแล้ว รับเงินคืนไปเลย!,พิเศษสำหรับสมาชิกใหม่!
PGSLOT แจกโบนัสแรกเข้า รับเองง่ายๆ,พลาดไม่ได้!
พีจีสล็อต โปรโมชั่นเด็ดประจำสัปดาห์ แจกโบนัสเพียบ,ฝากน้อยได้เยอะกับ PGSLOT!
สิทธิพิเศษมากมาย รอคุณอยู่เพียบ,
พีจีสล็อต ชวนเพื่อนมาเล่น รับค่าคอมมิชชั่นสูงที่สุดในไทย!,คุ้มยิ่งกว่าคุ้ม!
เดิมพัน PGSLOT ไม่มีผิดหวัง โปรโมชั่นเยอะ โบนัสแยะ,
สนุกกับ PGSLOT ได้ทุกที่!
ใช้งานง่ายทุกอุปกรณ์ ครบครันในหนึ่งเดียว,ปลอดภัยหายห่วง!
PGSLOT เว็บตรง ไม่ผ่านเอเย่นต์ ระบบออโต้ ใน 30 วินาที,พร้อมดูแลตลอด 24 ชั่วโมง!
ทีมงานคุณภาพ ใส่ใจทุกปัญหา,PGSLOT เว็บสล็อตอันดับ 1 ที่นักเดิมพันไว้วางใจ มั่นคงและเชื่อถือได้,เข้าเล่น PGSLOT ได้ทันที เล่นผ่านเว็บบราวเซอร์ ง่ายๆ แค่คลิก!,ระบบลื่นไหล ไม่มีสะดุด!
พีจีสล็อต มอบประสบการณ์สุดยอด,
ยืนยันจากผู้เล่นจริง!
พีจีสล็อต โบนัสเข้าตลอด เล่นแล้วรวย!,ประทับใจบริการ PGSLOT มาก ไม่ต้องรอนานเลย ประทับใจแน่นอน!,นี่แหละสล็อตที่ตามหา!
พีจีสล็อต ภาพสวย เสียงคมชัด โบนัสแตกบ่อยจริง!,
จากใจคนเคยเล่น! พีจีสล็อต
ตรงใจทุกความต้องการ สุดยอดจริงๆ!,ใครยังไม่ลอง PGSLOT ถือว่าพลาดมาก!
ช่องทางรวยง่ายๆ รอคุณอยู่,สุดยอดเว็บสล็อตแห่งปี!
PGSLOT เกมแตกง่าย เพลินตลอด!
Very quickly this web page will be famous amid all blogging users, due
to it’s nice articles or reviews
obviously like your web-site but you have to check the spelling on several of your posts. A number of them are rife with spelling issues and I find it very troublesome to tell the truth nevertheless I’ll definitely come back again.
I was curious if you ever considered changing the layout of your blog?
Its very well written; I love what youve got to say.
But maybe you could a little more in the way of content so people could connect
with it better. Youve got an awful lot of text for only having one or 2 images.
Maybe you could space it out better?
No matter if some one searches for his required thing, therefore he/she wishes to be available that in detail,
therefore that thing is maintained over here.