我正在从Apache迁移到NGINX环境,需要将以下虚拟服务器配置转换为NGINX.
这对NGINX的“确切翻译”是什么?
最佳答案
server {
listen 80;
server_name myproject.dev;
root /var/www/myproject/web;
}
从这里开始http://wiki.nginx.org/Configuration.
我正在从Apache迁移到NGINX环境,需要将以下虚拟服务器配置转换为NGINX.VirtualHost *:80 DocumentRoot /var/www/myproject/web ServerName myproject.dev ServerAlias myproject.dev Direc
我正在从Apache迁移到NGINX环境,需要将以下虚拟服务器配置转换为NGINX.
这对NGINX的“确切翻译”是什么?
最佳答案
server {
listen 80;
server_name myproject.dev;
root /var/www/myproject/web;
}
从这里开始http://wiki.nginx.org/Configuration.