suse 上apache 启用 module_headers 并配置 cache-control

启用 headers_moule

在 centos 配置比较简单,只需要 loadmodules 即可:

cat /etc/httpd/conf.modules.d/00-base.conf | grep headers
LoadModule headers_module modules[......]

查看更多内容

Posted in web和容器 | suse 上apache 启用 module_headers 并配置 cache-control已关闭评论

nginx + uwsgi 配置 flask 开发框架

介绍

类似于,nginx 结合 php-fpm 可以支持跳转到 php 程序一样,nginx 后端也可以挂 uwsgi 来用 python 程序作为server端。

参考文档

《一个UWSGI的例子》:https://blog.csdn.net/crazyhacking/article/det[……]

查看更多内容

Posted in web和容器 | nginx + uwsgi 配置 flask 开发框架已关闭评论

nginx + php-fpm 的简易配置

nginx 转发到 php-fpm

安装软件

yum install nginx -y
yum install php-fpm -y

配置nginx

在 /etc/nginx/conf.d/default.conf 基础上直接修改,就可以作为你的应用使用:

server {
    li[......]

查看更多内容

Posted in DEVOPS, web和容器 | nginx + php-fpm 的简易配置已关闭评论