NGINX 第3页
Debian卸载Nginx命令-Ddmit

Debian卸载Nginx命令

操作前备份配置文件,命令如下: # 卸载nginx以及删除配置文件数据 sudo apt purge nginx nginx-common nginx-core #保留 Nginx 配置文件但只删除 Nginx 包 sudo apt remove nginx nginx-common...
ddmit的头像-DdmitDdmit11个月前
01550
Nginx安装维护入门学习笔记,以及各种实例-Ddmit

Nginx安装维护入门学习笔记,以及各种实例

本文转载自:Nginx安装维护入门学习笔记,以及各种实例。 Nginx 是一款面向性能设计的 HTTP 服务器,能反向代理 HTTP,HTTPS 和邮件相关(SMTP,POP3,IMAP)的协议链接。并且提供了负载均衡以及 ...
ddmit的头像-DdmitDdmit6年前
023980
nginx配置404跳转-Ddmit

nginx配置404跳转

如果想让网站的404页面跳转到指定规则的新地址,可以通过下面代码设置: # define error page error_page 404 = @notfound; # error page location redirect 301 location @notfound { return 3...
ddmit的头像-DdmitDdmit11个月前
01150
centos7设置nginx开机自启动-Ddmit

centos7设置nginx开机自启动

centos7设置nginx开启自启动,这里是指以yum的方式安装的,具体安装方法参见「CentOS 7通过yum安装Nginx」,如果是源码编译安装的设置方法参见centos7通过编译源码的方式安装nginx」 启动服务 s...
ddmit的头像-DdmitDdmit6年前
020150
通过nginx配置实现静态文件下载(不需后台代码)-Ddmit

通过nginx配置实现静态文件下载(不需后台代码)

nginx配置: server { listen 8123; server_name localhost; charset utf-8; root F:\myftp; location / { default_type 'application/octet-stream'; add_header Content-disposition 'attachm...
ddmit的头像-DdmitDdmit6年前
023750