wordpress 整容模板,下载班级优化大师,西瓜wordpress,动漫制作专业专升本对应的专业我有2个php项目#xff0c;想放在同一个lnmp环境里如果你说两个项目是通过两个不同的域名来访问的话#xff0c;直接参考以下conf文件内容第一段#xff1a;server {listen 80 ;server_name www.host1.cc; #监听的hostnameroot /var/www/www_host1_cc/; #第一个项目…我有2个php项目想放在同一个lnmp环境里如果你说两个项目是通过两个不同的域名来访问的话直接参考以下conf文件内容第一段server {listen 80 ;server_name www.host1.cc; #监听的hostnameroot /var/www/www_host1_cc/; #第一个项目的根目录location / {root /var/www/www_host1_cc/;index index.php index.html index.htm;}error_page 404 /404.html;location /404.html {root /usr/share/nginx/html;}error_page 500 502 503 504 /50x.html;location /50x.html {root /usr/share/nginx/html;}location ~ .*\.(php|php5)?(\/.*)*$ {fastcgi_pass 127.0.0.1:9000;fastcgi_index index.php;set $path_info ;set $real_script_name $fastcgi_script_name;if ($fastcgi_script_name ~ ^(.?\.php)(/.)$) {set $real_script_name $1;set $path_info $2;}fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;fastcgi_param SCRIPT_NAME $real_script_name;fastcgi_param PATH_INFO $path_info;include fastcgi_params;}}第二段(此处参考第一段仅需要修改对应的server_name 和 root)然后将域名解析到服务器的IP地址即可。很简单啊 。配置nginx vhost就行了。使用docker