1 В избранное 0 Ответвления 0

OSCHINA-MIRROR/limingxinleo-simple-subcontrollers.phalcon

Присоединиться к Gitlife
Откройте для себя и примите участие в публичных проектах с открытым исходным кодом с участием более 10 миллионов разработчиков. Приватные репозитории также полностью бесплатны :)
Присоединиться бесплатно
Клонировать/Скачать
swoole.nginx.conf 1.4 КБ
Копировать Редактировать Web IDE Исходные данные Просмотреть построчно История
李铭昕 Отправлено 13.06.2018 09:16 373691d
server {
listen 80;
server_name swoole.phalcon.xin;
root /Users/limx/Applications/php/phalcon/public;
client_max_body_size 8M;
proxy_set_header Host $host:$server_port;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Real-PORT $remote_port;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
#charset koi8-r;
#access_log /var/log/nginx/log/host.access.log main;
location /index.php {
deny all;
}
location / {
set $proxy_status 0;
if ($uri = "/") {
set $proxy_status 1;
}
if (!-e $request_filename) {
set $proxy_status 1;
}
if ($proxy_status = 1){
set $suffix "?_url=${uri}${is_args}${query_string}";
proxy_pass http://127.0.0.1:8080$suffix;
}
}
#error_page 404 /404.html;
# redirect server error pages to the static page /50x.html
#
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root /usr/share/nginx/html;
}
# proxy the PHP scripts to Apache listening on 127.0.0.1:80
#
#location ~ \.php$ {
# proxy_pass http://127.0.0.1;
#}
# deny access to .htaccess files, if Apache's document root
# concurs with nginx's one
#
#location ~ /\.ht {
# deny all;
#}
}

Опубликовать ( 0 )

Вы можете оставить комментарий после Вход в систему

1
https://api.gitlife.ru/oschina-mirror/limingxinleo-simple-subcontrollers.phalcon.git
git@api.gitlife.ru:oschina-mirror/limingxinleo-simple-subcontrollers.phalcon.git
oschina-mirror
limingxinleo-simple-subcontrollers.phalcon
limingxinleo-simple-subcontrollers.phalcon
master