Nginx 配置多站点vhost 的方法

时间:2021-01-20 04:05:57
【文件属性】:
文件名称:Nginx 配置多站点vhost 的方法
文件大小:37KB
文件格式:PDF
更新时间:2021-01-20 04:05:57
gi gin host 假设你想在Linux Nginx中用不同的域名访问不同的目录,这时就要配置多个vhost,具体配置如下,假设网站根目录设定在/var/www/ 1、在/var/www/下新建两个目录 /var/www/ushark.net /var/www/ushark.wang 2、编辑/etc/nginx/nginx.conf http { include /etc/nginx/mime.types; default_type application/octet-stream; log_format main '$remote_addr - $remote_user [$time_l

网友评论