[prev in list] [next in list] [prev in thread] [next in thread] 

List:       linux-tr
Subject:    [Linux]  nginx ve proxy
From:       Taner_KARAGÖL <karagol () aselsan ! com ! tr>
Date:       2017-01-26 5:34:56
Message-ID: 9ed2fa4b6db14dd1a6faf4440d78846d () MBX03 ! aselsan ! com ! tr
[Download RAW message or body]

Merhaba;

Firmamızda internete çıkış için Proxy (nginx değil) kullanılmakta.
Nginx ile bazı denemeler yapmak istiyorum ama nginx'in de herkes gibi internete \
çıkabilmesi için Proxy kullanması gerekiyor. Bu duruma sanırım "chained Proxy" \
denilebilir.

Nginx configleri nasıl olmalı ki Proxy kullanarak internete çıkabilsin.

Örneğin bir Centos reposu için aşağıdaki konfig ile reverse Proxy güzelce çalışmakta \
(nginx direk internet çıkışı var ise çalışıyor): server {
  listen 80;
    server_name *.company.com;
      location /CentOS/7.2.1511/x86_64 {
      proxy_pass http://mirror.centos.org/CentOS/7.2.1511/os/x86_64/;
        }
}


Ama nginx direk internet çıkışı olmadığından dolayı yukarıdaki konfig çalışmıyor. Bir \
şekilde proxy'den çıkmasını sağlamak lazım.


######################################################################
Dikkat:

Bu elektronik posta mesaji kisisel ve ozeldir. Eger size 
gonderilmediyse lutfen gondericiyi bilgilendirip mesaji siliniz. 
Firmamiza gelen ve giden mesajlar virus taramasindan gecirilmekte, 
guvenlik nedeni ile kontrol edilerek saklanmaktadir. Mesajdaki 
gorusler ve bakis acisi gondericiye ait olup Aselsan A.S. resmi 
gorusu olmak zorunda degildir.

######################################################################
Attention: 

This e-mail message is privileged and confidential. If you are 
not the intended recipient please delete the message and notify 
the sender. E-mails to and from the company are monitored for 
operational reasons and in accordance with lawful business practices. 
Any views or opinions presented are solely those of the author and 
do not necessarily represent the views of the company.

######################################################################


[Attachment #3 (text/html)]

<html xmlns:v="urn:schemas-microsoft-com:vml" \
xmlns:o="urn:schemas-microsoft-com:office:office" \
xmlns:w="urn:schemas-microsoft-com:office:word" \
xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" \
xmlns="http://www.w3.org/TR/REC-html40"> <head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-9">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
	{font-family:"Cambria Math";
	panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
	{font-family:Calibri;
	panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
	{margin:0cm;
	margin-bottom:.0001pt;
	font-size:11.0pt;
	font-family:"Calibri",sans-serif;
	mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
	{mso-style-priority:99;
	color:#0563C1;
	text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
	{mso-style-priority:99;
	color:#954F72;
	text-decoration:underline;}
code
	{mso-style-priority:99;
	font-family:"Courier New";}
pre
	{mso-style-priority:99;
	mso-style-link:"HTML Preformatted Char";
	margin:0cm;
	margin-bottom:.0001pt;
	font-size:10.0pt;
	font-family:"Courier New";}
span.EmailStyle17
	{mso-style-type:personal-compose;
	font-family:"Calibri",sans-serif;
	color:windowtext;}
span.HTMLPreformattedChar
	{mso-style-name:"HTML Preformatted Char";
	mso-style-priority:99;
	mso-style-link:"HTML Preformatted";
	font-family:"Courier New";
	mso-fareast-language:TR;}
.MsoChpDefault
	{mso-style-type:export-only;
	font-family:"Calibri",sans-serif;
	mso-fareast-language:EN-US;}
@page WordSection1
	{size:612.0pt 792.0pt;
	margin:70.85pt 70.85pt 70.85pt 70.85pt;}
div.WordSection1
	{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="TR" link="#0563C1" vlink="#954F72">
<div class="WordSection1">
<p class="MsoNormal">Merhaba;<o:p></o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal">Firmamızda internete çıkış için Proxy (nginx değil) \
kullanılmakta.<o:p></o:p></p> <p class="MsoNormal">Nginx ile bazı denemeler yapmak \
istiyorum ama nginx&#8217;in de herkes gibi internete çıkabilmesi için Proxy \
kullanması gerekiyor. Bu duruma sanırım &#8220;chained Proxy&#8221; \
denilebilir.<o:p></o:p></p> <p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal">Nginx configleri nasıl olmalı ki Proxy kullanarak internete \
çıkabilsin.<o:p></o:p></p> <p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal">Örneğin bir Centos reposu için aşağıdaki konfig ile reverse \
Proxy güzelce çalışmakta (nginx direk internet çıkışı var ise \
çalışıyor):<o:p></o:p></p> <p class="MsoNormal"><span \
style="font-size:10.0pt;font-family:&quot;Courier \
New&quot;;mso-fareast-language:TR">server {<o:p></o:p></span></p> <p \
class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Courier \
New&quot;;mso-fareast-language:TR">&nbsp; listen 80;<o:p></o:p></span></p> <p \
class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Courier \
New&quot;;mso-fareast-language:TR">&nbsp;&nbsp;&nbsp; server_name \
*.company.com;<o:p></o:p></span></p> <p class="MsoNormal"><span \
style="font-size:10.0pt;font-family:&quot;Courier \
New&quot;;mso-fareast-language:TR">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; location \
/CentOS/7.2.1511/x86_64 {<o:p></o:p></span></p> <p class="MsoNormal"><span \
style="font-size:10.0pt;font-family:&quot;Courier \
New&quot;;mso-fareast-language:TR">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; proxy_pass \
http://mirror.centos.org/CentOS/7.2.1511/os/x86_64/;<o:p></o:p></span></p> <p \
class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Courier \
New&quot;;mso-fareast-language:TR">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
}<o:p></o:p></span></p> <p class="MsoNormal"><span \
style="font-size:10.0pt;font-family:&quot;Courier \
New&quot;;mso-fareast-language:TR">}<o:p></o:p></span></p> <p \
class="MsoNormal"><o:p>&nbsp;</o:p></p> <p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal">Ama nginx direk internet çıkışı olmadığından dolayı yukarıdaki \
konfig çalışmıyor. Bir şekilde proxy&#8217;den çıkmasını sağlamak \
lazım.<o:p></o:p></p> <p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal"><o:p></o:p></p>
</div>

<P>
<HR>
<STRONG><FONT color=#ff0000>Dikkat:</FONT></STRONG></P>
<P></P>
<P>Bu elektronik posta mesaji kisisel ve ozeldir. Eger size gonderilmediyse 
lutfen gondericiyi bilgilendirip mesaji siliniz. Firmamiza&nbsp;gelen 
ve&nbsp;giden&nbsp;mesajlar virus taramasindan gecirilmekte, guvenlik nedeni ile 
kontrol edilerek saklanmaktadir. Mesajdaki gorusler ve bakis acisi gondericiye 
ait olup Aselsan A.S. resmi gorusu olmak zorunda degildir.</P><FONT 
color=#ff0000><STRONG>
<HR>
</STRONG></FONT><STRONG><FONT color=#ff0000>Attention: </FONT></STRONG>
<P>This e-mail message is privileged and confidential. If you are not the 
intended recipient please delete the message and notify the sender. E-mails to 
and from the company are monitored for operational reasons and in accordance 
with lawful business practices. Any views or opinions presented are solely those 
of the author and do not necessarily represent the views of the company.</P>
<HR>

<P>&nbsp;</P>
</body>
</html>



_______________________________________________
Linux E-Posta Listesi
Linux@liste.linux.org.tr
Liste kurallari: http://liste.linux.org.tr/kurallar.php

Bu Listede neden bulundu=F0unuzu bilmiyorsan=FDz veya art=FDk bu listeden g=
elen e-postalar=FD almak istemiyorsan=FDz a=FEa=F0=FDdaki ba=F0lant=FD adre=
sini kullanarak 1 dakika i=E7inde =FCyeli=F0inizi sonland=FDrabilirsiniz.
https://liste.linux.org.tr/mailman/listinfo/linux

--===============2073826466871874525==--

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic