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

OSCHINA-MIRROR/limingxinleo-simple-subcontrollers.phalcon

Присоединиться к Gitlife
Откройте для себя и примите участие в публичных проектах с открытым исходным кодом с участием более 10 миллионов разработчиков. Приватные репозитории также полностью бесплатны :)
Присоединиться бесплатно
Клонировать/Скачать
nginx.conf 1.7 КБ
Копировать Редактировать Web IDE Исходные данные Просмотреть построчно История
李铭昕 Отправлено 13.06.2018 09:13 250d922
server {
listen 80;
server_name phalcon.xin;
root /Users/limx/Applications/php/phalcon/public;
index index.html index.htm index.php;
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 / {
if (!-e $request_filename) {
rewrite "^/(.*)$" /index.php?_url=/$1 last;
}
}
#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;
#}
# pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
#
location ~ \.php(.*)$ {
#fastcgi_pass unix:/tmp/php-fpm.sock;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_split_path_info ^((?U).+\.php)(/?.+)$;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param PATH_INFO $fastcgi_path_info;
fastcgi_param PATH_TRANSLATED $document_root$fastcgi_path_info;
include fastcgi_params;
}
# 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