<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Linux Forum &mdash; Проблемы с веб-сервером]]></title>
	<link rel="self" href="https://linuxforum.ru/extern.php?action=feed&amp;tid=16192&amp;type=atom" />
	<updated>2011-08-31T10:27:23Z</updated>
	<generator>PunBB</generator>
	<id>https://linuxforum.ru/viewtopic.php?id=16192</id>
		<entry>
			<title type="html"><![CDATA[Re: Проблемы с веб-сервером]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=207684#p207684" />
			<content type="html"><![CDATA[<div class="fancy_spoiler_switcher"><div class="fancy_spoiler_switcher_header" data-lang-open="открыть спойлер" data-lang-close="скрыть спойлер"><strong>+</strong>&nbsp;открыть спойлер</div><div class="fancy_spoiler"><p>#######################################################################<br />#<br /># This is the main Nginx configuration file.&nbsp; <br />#<br /># More information about the configuration options is available on <br />#&nbsp; &nbsp;* the English wiki - <a href="http://wiki.nginx.org/Main">http://wiki.nginx.org/Main</a><br />#&nbsp; &nbsp;* the Russian documentation - <a href="http://sysoev.ru/nginx/">http://sysoev.ru/nginx/</a><br />#<br />#######################################################################</p><p>#----------------------------------------------------------------------<br /># Main Module - directives that cover basic functionality<br />#<br />#&nbsp; &nbsp;<a href="http://wiki.nginx.org/NginxHttpMainModule">http://wiki.nginx.org/NginxHttpMainModule</a><br />#<br />#----------------------------------------------------------------------</p><p>user&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; nginx;<br />worker_processes&nbsp; 8;</p><p>worker_priority&nbsp; -10;<br />error_log&nbsp; /var/log/nginx/error.log;<br />#error_log&nbsp; /var/log/nginx/error.log&nbsp; notice;<br />#error_log&nbsp; /var/log/nginx/error.log&nbsp; info;</p><p>pid&nbsp; &nbsp; &nbsp; &nbsp; /var/run/nginx.pid;</p><br /><p>#----------------------------------------------------------------------<br /># Events Module <br />#<br />#&nbsp; &nbsp;<a href="http://wiki.nginx.org/NginxHttpEventsModule">http://wiki.nginx.org/NginxHttpEventsModule</a><br />#<br />#----------------------------------------------------------------------</p><p>events {<br />&nbsp; &nbsp;worker_connections&nbsp; 16384;<br />&nbsp; &nbsp; use epoll;<br />}</p><br /><p>#----------------------------------------------------------------------<br /># HTTP Core Module<br />#<br />#&nbsp; &nbsp;<a href="http://wiki.nginx.org/NginxHttpCoreModule">http://wiki.nginx.org/NginxHttpCoreModule</a> <br />#<br />#----------------------------------------------------------------------</p><p>http {<br />log_format&nbsp; combined2&nbsp; &#039;$remote_addr - $remote_user [$time_local] &#039;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &#039;&quot;$request&quot; $status $body_bytes_sent &#039;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &#039;&quot;$http_referer&quot; &quot;$http_user_agent&quot; &quot;$host&quot;&#039;;<br />&nbsp; &nbsp; log_format&nbsp; isp &#039;$bytes_sent $request_length&#039;;<br />log_not_found off;<br />&nbsp; &nbsp; include&nbsp; &nbsp; &nbsp; &nbsp;/etc/nginx/mime.types;<br />&nbsp; &nbsp; default_type&nbsp; application/octet-stream;</p><p>&nbsp; &nbsp; access_log&nbsp; &nbsp; /var/log/nginx/access.log combined2;</p><p>&nbsp; &nbsp; sendfile&nbsp; &nbsp; &nbsp; &nbsp; on;<br />&nbsp; &nbsp; tcp_nodelay&nbsp; &nbsp; &nbsp;on;<br />&nbsp; &nbsp; tcp_nopush&nbsp; &nbsp; &nbsp; on;<br />&nbsp; &nbsp; postpone_output 1460;</p><p>&nbsp; &nbsp; keepalive_timeout&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;15;<br />&nbsp; &nbsp; client_header_timeout&nbsp; &nbsp; &nbsp; &nbsp;40;<br />&nbsp; &nbsp; client_body_timeout&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;30;<br />&nbsp; &nbsp; send_timeout&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 30;</p><p>&nbsp; &nbsp; ignore_invalid_headers&nbsp; &nbsp; &nbsp; on;<br />&nbsp; &nbsp; reset_timedout_connection&nbsp; &nbsp;on;</p><p> large_client_header_buffers&nbsp; &nbsp; &nbsp;512 8k;<br />&nbsp; &nbsp; client_header_buffer_size&nbsp; &nbsp; &nbsp; &nbsp;1k;<br />&nbsp; &nbsp; client_body_buffer_size&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;64k;<br />&nbsp; &nbsp; request_pool_size&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;96k;<br />client_max_body_size 16m;<br />&nbsp; &nbsp; gzip&nbsp; on;</p><p>&nbsp; &nbsp; limit_req_zone $binary_remote_addr zone=lphp:10m&nbsp; rate=150r/s;<br />&nbsp; &nbsp; limit_zone cglob $binary_remote_addr 16m;<br />&nbsp; &nbsp; limit_conn cglob 20;<br />proxy_cache_path /var/cache/nginx levels=2 keys_zone=pagecache:15m inactive=60m max_size=500m;<br />&nbsp; &nbsp; server {<br />&nbsp; &nbsp; &nbsp; &nbsp; listen IP:80;<br />&nbsp; &nbsp; &nbsp; &nbsp; server_name test2.ru <a href="http://www.test2.ru">www.test2.ru</a>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; limit_conn&nbsp; &nbsp;cglob&nbsp; 10;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; limit_req&nbsp; &nbsp;zone=lphp&nbsp; burst=5;<br />&nbsp; &nbsp; &nbsp; &nbsp; rewrite ^(/manager/.*)$&nbsp; &nbsp; https://$host$1&nbsp; &nbsp; permanent;<br />&nbsp; &nbsp; &nbsp; &nbsp; error_page 404 = @fallback;<br />&nbsp; &nbsp; &nbsp; &nbsp; location ~* ^/(webstat/|awstats|webmail/|myadmin/|manimg/) {<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; proxy_pass http://IP:8080;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; proxy_redirect <a href="http://test2.ru:8080">http://test2.ru:8080</a>/ /;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; proxy_set_header Host $host;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; proxy_set_header X-Real-IP $remote_addr;<br />&nbsp; &nbsp; &nbsp; &nbsp; }<br />&nbsp; &nbsp; &nbsp; &nbsp; location / {<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; proxy_pass http://IP:8080;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; proxy_redirect <a href="http://test2.ru:8080">http://test2.ru:8080</a>/ /;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; proxy_set_header Host $host;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; proxy_set_header X-Real-IP $remote_addr;<br />&nbsp; &nbsp; &nbsp; &nbsp; }<br />&nbsp; &nbsp; &nbsp; &nbsp; location ~* ^.+\.(jpg|jpeg|gif|png|svg|js|css|mp3|ogg|mpe?g|avi|zip|gz|bz2?|rar)$ {<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; root /var/www/test/data/www/test2.ru;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; access_log /var/www/httpd-logs/test2.ru.access.log ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; access_log /var/www/nginx-logs/test isp;<br />&nbsp; &nbsp; &nbsp; &nbsp; }<br />&nbsp; &nbsp; &nbsp; &nbsp; location @fallback {<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; proxy_pass http://IP:8080;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; proxy_set_header Host $host;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; proxy_set_header X-Real-IP $remote_addr;<br />&nbsp; &nbsp; &nbsp; &nbsp; }<br />&nbsp; &nbsp; }<br />}</p></div></div><p>При попытке ввойти без index.php нечего не логируеться. Только ответ идет 500 (Internal Error).<br />Могу скинуть логи nginx.</p>]]></content>
			<author>
				<name><![CDATA[MAS]]></name>
				<uri>https://linuxforum.ru/profile.php?id=15004</uri>
			</author>
			<updated>2011-08-31T10:27:23Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=207684#p207684</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Проблемы с веб-сервером]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=207679#p207679" />
			<content type="html"><![CDATA[<p>Ок. А теперь логи при попытке зайти на сайт без индексного файла. Я так понимаю, что у Вас перед апачем нжинкс стоит? конфиг нжинса сюда же</p>]]></content>
			<author>
				<name><![CDATA[Hrafn]]></name>
			</author>
			<updated>2011-08-31T10:11:39Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=207679#p207679</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Проблемы с веб-сервером]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=207656#p207656" />
			<content type="html"><![CDATA[<p><a href="http://s52.radikal.ru/i138/1108/ba/0508afa8f84a.jpg">http://s52.radikal.ru/i138/1108/ba/0508afa8f84a.jpg</a></p>]]></content>
			<author>
				<name><![CDATA[MAS]]></name>
				<uri>https://linuxforum.ru/profile.php?id=15004</uri>
			</author>
			<updated>2011-08-31T09:00:57Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=207656#p207656</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Проблемы с веб-сервером]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=207643#p207643" />
			<content type="html"><![CDATA[<p>скриншоты настройки домена из ISP дайте</p>]]></content>
			<author>
				<name><![CDATA[Hrafn]]></name>
			</author>
			<updated>2011-08-31T07:38:43Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=207643#p207643</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Проблемы с веб-сервером]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=207612#p207612" />
			<content type="html"><![CDATA[<p>Здравствуйте,проблема следующая:<br />При входе на domen.ru отображается пустая страница.<br />При входе на domen.ru/index.php или что либо другое (/index.html) - отображается корректная работа сайта.<br />Я в замешательстве....<br />При чем,если включить только apache2,без nginx,то грузиться без проблем. Такая шняга случилась на всех сайтах веб-сервера,ранее такого не было,и самое главное в конфигах не рылся.<br />На сервере стоит ISPmanager.</p>]]></content>
			<author>
				<name><![CDATA[MAS]]></name>
				<uri>https://linuxforum.ru/profile.php?id=15004</uri>
			</author>
			<updated>2011-08-30T23:47:23Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=207612#p207612</id>
		</entry>
</feed>
