wdcp添加tomcat,同时支持php和java教程

2019-10-16 16:12:15王冬梅
  • nginx: the configuration file /www/wdlinux/nginx/conf/nginx.conf syntax is ok
  • nginx: configuration file /www/wdlinux/nginx/conf/nginx.conf test is successful

    不加端口号访问测试: 至此nginx已经成功将来自myweb.com域名的请求代理到8080端口 如果需要配置多域名的话,还需要修改tomcat虚拟主机配置文件 默认配置文件路径:/etc/tomcat6/ 默认项目路径:/var/lib/tomcat6/webapps/ tomcat默认指向/var/lib/tomcat6/webapps/ROOT目录 创建新项目目录,这里直接复制ROOT项目,进行修改

    1. [root@E webapps]# pwd
    2. /var/lib/tomcat6/webapps
    3. [root@E webapps]# chown -R root myweb.com
    4. 修改权限,使新项目权限和默认项目权限一致
    5. [root@E webapps]# chgrp -R tomcat myweb.com
    6. [root@E webapps]# ll
    7. 总用量 24
    8. drwxrwxr-x 5 root tomcat 4096 10月 30 22:06 examples
    9. drwxrwxr-x 5 root tomcat 4096 10月 30 22:06 host-manager
    10. drwxrwxr-x 5 root tomcat 4096 10月 30 22:06 manager
    11. drwxr-xr-x 3 root tomcat 4096 10月 30 22:48 myweb.com
    12. drwxrwxr-x 3 root tomcat 4096 10月 30 22:06 ROOT
    13. drwxrwxr-x 5 root tomcat 4096 10月 30 22:06 sample
    14. [root@E myweb.com]# cd myweb.com/
    15. [root@E myweb.com]# rm -f index.html