From: Alexey Sidorov <alex@reutman.ru>
To: ALT Linux sysadmin discuss <sysadmins@lists.altlinux.org>
Subject: Re: [Sysadmins] nginx + apache + mod_php + php-mmcache
Date: Tue, 14 Nov 2006 14:27:19 +0300
Message-ID: <4559A817.5090600@reutman.ru> (raw)
In-Reply-To: <4559A702.2020500@reutman.ru>
Alexey Sidorov пишет:
> ну спасибо, подкинули развлечение.... :)
> прикрутил nginx к апачу (или апач к nginx'у?), заработало.
> решил пойти дальше (PHP через FastCGI)
> данный момент в сизифе отсутствует?
> php -b127.0.0.1:8888 не хочет работать....
>
Ну или как вариант думал отдавать апачу только .php, остальное обрабатывать nginx'ом
server {
listen 81;
server_name .*;
location / {
root /var/www/html;
index index.php;
}
location ~ \.php$ {
root /var/www/html;
index index.php;
proxy_pass http://127.0.0.1:80/;
proxy_redirect off;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
access_log /var/log/nginx/access.log;
}
Ругается, мол
2006/11/14 14:05:58 [emerg] 777#0: "proxy_pass" may not have URI part in location given by regular expression or inside the "if" statement in /etc/nginx/nginx.conf:36
--
С уважением, Алексей Сидоров
mailto:alex@reutman.ru
JID: alex@reutman.ru
ICQ: 5052225
next prev parent reply other threads:[~2006-11-14 11:27 UTC|newest]
Thread overview: 35+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-11-13 12:12 [Sysadmins] mod_gzip и SEND_AS_IS:HAS_CE Alexey Sidorov
2006-11-13 15:40 ` Konstantin A. Lepikhov
2006-11-13 16:51 ` Michael Shigorin
2006-11-13 15:41 ` [Sysadmins] nginx + apache + mod_php + php-mmcache Michael Shigorin
2006-11-13 17:19 ` [Sysadmins] nginx + apache + mod_php + php-eaccelerator Andrei Bulava
2006-11-13 20:26 ` Michael Shigorin
2006-11-14 8:02 ` Andrei Bulava
2006-11-14 10:18 ` Michael Shigorin
2006-11-15 11:26 ` Денис Смирнов
2006-11-15 8:04 ` Andrei Bulava
2006-11-15 8:05 ` Alexey I. Froloff
2006-11-15 21:35 ` Michael Shigorin
2006-11-15 21:34 ` Michael Shigorin
2006-11-13 17:45 ` [Sysadmins] nginx + apache + mod_php + php-mmcache Денис Смирнов
2006-11-14 11:22 ` Alexey Sidorov
2006-11-14 11:27 ` Alexey Sidorov [this message]
2006-11-14 11:46 ` Konstantin A. Lepikhov
2006-11-14 12:04 ` Alexey Sidorov
2006-11-14 11:39 ` Michael Shigorin
2006-11-14 11:54 ` Alexey Sidorov
2006-11-14 12:06 ` Michael Shigorin
2006-11-14 13:27 ` Alexey Sidorov
2006-11-14 12:13 ` Alexey Sidorov
2006-11-14 11:46 ` Konstantin A. Lepikhov
2006-11-14 12:03 ` Alexey Sidorov
2006-11-14 13:44 ` Konstantin A. Lepikhov
2006-11-14 14:02 ` Alexey Sidorov
2006-11-14 15:37 ` Konstantin A. Lepikhov
2006-11-14 18:17 ` Алексей Сидоров
2006-11-14 19:53 ` Konstantin A. Lepikhov
2006-11-15 6:10 ` Alexey Sidorov
2006-11-15 10:23 ` Konstantin A. Lepikhov
2006-11-15 11:17 ` Alexey Sidorov
2006-11-15 11:39 ` Konstantin A. Lepikhov
2006-11-15 12:58 ` Alexey Sidorov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4559A817.5090600@reutman.ru \
--to=alex@reutman.ru \
--cc=sysadmins@lists.altlinux.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
ALT Linux sysadmins discussion
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/sysadmins/0 sysadmins/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 sysadmins sysadmins/ http://lore.altlinux.org/sysadmins \
sysadmins@lists.altlinux.org sysadmins@lists.altlinux.ru sysadmins@lists.altlinux.com
public-inbox-index sysadmins
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.sysadmins
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git