精华内容
参与话题
问答
  • apache 监听多个端口

    千次阅读 2019-02-11 13:43:11
    进入/usr/local/apache/conf/目录下 打开httpd.conf Listen 80 Listen 81
    进入/usr/local/apache/conf/目录下 
    打开httpd.conf 
    Listen 80
    Listen 81
    
    展开全文
  • 现在想实现这样种效果,在一个Apache服务器中设置多个监听端口,每端口都对应着个网站  打开Apache的httpf.conf文件,我使用的Apache版本是2.2.31  找到,大概129行附近  #LoadModule vhost_alias_...

      现在想实现这样一种效果,在一个Apache服务器中设置多个监听端口,每一个端口都对应着一个网站

      打开Apache的httpf.conf文件,我使用的Apache版本是2.2.31

      找到,大概129行附近

      

    #LoadModule vhost_alias_module modules/mod_vhost_alias.so
    去掉前面的#号,这句话的意思是开启虚拟服务器的模式

    再找到,我的在471行

    #Include conf/extra/httpd-vhosts.conf
    去掉前面的#号,这句话的意思是引入虚拟服务器配置文件

    接着,找到DocumentRoot


    这个值要设置为你所有网站目录的最顶层目录

    比如,A文件夹中包含B文件夹和C文件夹,B、C文件夹分别对应一个网站,这时,DocumentRoot就要设置为指向A文件夹的路径


    继续,找到Listen 80

    在下面添加,例如要监听81端口


    保存后打开extra文件夹下的httpd-vhosts.conf文件

    默认的这两个可以删掉


    添加我们需要的

    <VirtualHost *:80>
    DocumentRoot "D:/example/example/1"
    ServerName  www.xxx.com
    </VirtualHost>
    注意空格 否则会报语法错误!
    保存,重启Apache

    这样就OK了

    展开全文
  • 个服务器上,有时候可能需要同时开启多个端口才能满足需求。 那么再apache中怎么配置域名的多端口呢,比如个网站,如何通过同一个域名不同端口访问同一个网站。 如: www.baidu.com:80和...

    一个服务器上,有时候可能需要同时开启多个端口才能满足需求。

    那么再apache中怎么配置域名的多端口呢,比如一个网站,如何通过同一个域名不同端口访问同一个网站。

    如:

    www.baidu.com:80和www.baidu.com:8080tong同时指向www.baidu .com所指向的网站。

    解决办法:

    打开。http.conf

    找到

    Listen 0.0.0.0:80
    Listen [::0]:80

    追加

    Listen 0.0.0.0:8080
    Listen [::0]:8080

    这样就解决了

    展开全文
  • 严重: Servlet.service() for servlet jsp threw ...org.apache.jasper.JasperException: /userAdd.jsp(34,5) Attribute label invalid for tag text according to TLD at org.apache.jasper.compiler.Defa...

    严重: Servlet.service() for servlet jsp threw exception
    org.apache.jasper.JasperException: /userAdd.jsp(34,5) Attribute label invalid for tag text according to TLD
    	at org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:40)
    	at org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:407)
    	at org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:236)
    	at org.apache.jasper.compiler.Validator$ValidateVisitor.checkXmlAttributes(Validator.java:1235)
    	at org.apache.jasper.compiler.Validator$ValidateVisitor.visit(Validator.java:846)
    	at org.apache.jasper.compiler.Node$CustomTag.accept(Node.java:1530)
    	at org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2361)
    	at org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2411)
    	at org.apache.jasper.compiler.Validator$ValidateVisitor.visit(Validator.java:865)
    	at org.apache.jasper.compiler.Node$CustomTag.accept(Node.java:1530)
    	at org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2361)
    	at org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2411)
    	at org.apache.jasper.compiler.Node$Visitor.visit(Node.java:2417)
    	at org.apache.jasper.compiler.Node$Root.accept(Node.java:495)
    	at org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2361)
    	at org.apache.jasper.compiler.Validator.validateExDirectives(Validator.java:1763)
    	at org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:198)
    	at org.apache.jasper.compiler.Compiler.compile(Compiler.java:354)
    	at org.apache.jasper.compiler.Compiler.compile(Compiler.java:334)
    	at org.apache.jasper.compiler.Compiler.compile(Compiler.java:321)
    	at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:592)
    	at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:328)
    	at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
    	at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
    	at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
    	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
    	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    	at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:646)
    	at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:436)
    	at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:374)
    	at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:302)
    	at org.apache.struts2.dispatcher.ServletDispatcherResult.doExecute(ServletDispatcherResult.java:159)
    	at org.apache.struts2.dispatcher.StrutsResultSupport.execute(StrutsResultSupport.java:186)
    	at com.opensymphony.xwork2.DefaultActionInvocation.executeResult(DefaultActionInvocation.java:373)
    	at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:277)
    	at com.opensymphony.xwork2.interceptor.DefaultWorkflowInterceptor.doIntercept(DefaultWorkflowInterceptor.java:176)
    	at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)
    	at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)
    	at com.opensymphony.xwork2.validator.ValidationInterceptor.doIntercept(ValidationInterceptor.java:263)
    	at org.apache.struts2.interceptor.validation.AnnotationValidationInterceptor.doIntercept(AnnotationValidationInterceptor.java:68)
    	at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)
    	at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)
    	at com.opensymphony.xwork2.interceptor.ConversionErrorInterceptor.intercept(ConversionErrorInterceptor.java:133)
    	at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)
    	at com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:207)
    	at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)
    	at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)
    	at com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:207)
    	at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)
    	at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)
    	at com.opensymphony.xwork2.interceptor.StaticParametersInterceptor.intercept(StaticParametersInterceptor.java:190)
    	at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)
    	at org.apache.struts2.interceptor.MultiselectInterceptor.intercept(MultiselectInterceptor.java:75)
    	at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)
    	at org.apache.struts2.interceptor.CheckboxInterceptor.intercept(CheckboxInterceptor.java:94)
    	at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)
    	at org.apache.struts2.interceptor.FileUploadInterceptor.intercept(FileUploadInterceptor.java:243)
    	at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)
    	at com.opensymphony.xwork2.interceptor.ModelDrivenInterceptor.intercept(ModelDrivenInterceptor.java:100)
    	at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)
    	at com.opensymphony.xwork2.interceptor.ScopedModelDrivenInterceptor.intercept(ScopedModelDrivenInterceptor.java:141)
    	at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)
    	at org.apache.struts2.interceptor.debugging.DebuggingInterceptor.intercept(DebuggingInterceptor.java:267)
    	at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)
    	at com.opensymphony.xwork2.interceptor.ChainingInterceptor.intercept(ChainingInterceptor.java:142)
    	at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)
    	at com.opensymphony.xwork2.interceptor.PrepareInterceptor.doIntercept(PrepareInterceptor.java:166)
    	at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)
    	at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)
    	at com.opensymphony.xwork2.interceptor.I18nInterceptor.intercept(I18nInterceptor.java:176)
    	at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)
    	at org.apache.struts2.interceptor.ServletConfigInterceptor.intercept(ServletConfigInterceptor.java:164)
    	at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)
    	at com.opensymphony.xwork2.interceptor.AliasInterceptor.intercept(AliasInterceptor.java:190)
    	at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)
    	at com.opensymphony.xwork2.interceptor.ExceptionMappingInterceptor.intercept(ExceptionMappingInterceptor.java:187)
    	at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)
    	at org.apache.struts2.json.JSONInterceptor.intercept(JSONInterceptor.java:179)
    	at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)
    	at org.apache.struts2.impl.StrutsActionProxy.execute(StrutsActionProxy.java:52)
    	at org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:485)
    	at org.apache.struts2.dispatcher.ng.ExecuteOperations.executeAction(ExecuteOperations.java:77)
    	at org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.doFilter(StrutsPrepareAndExecuteFilter.java:91)
    	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
    	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    	at org.springframework.orm.hibernate3.support.OpenSessionInViewFilter.doFilterInternal(OpenSessionInViewFilter.java:174)
    	at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:77)
    	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
    	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    	at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:78)
    	at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:77)
    	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
    	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
    	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
    	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
    	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
    	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
    	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
    	at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859)
    	at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:602)
    	at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
    	at java.lang.Thread.run(Thread.java:745)

    了解(不同解决方案):

    有关于JSTL中org.apache.jasper.JasperException与javax.el.PropertyNotFoundException的错误解决方法

    JavaWeb 项目org.apache.jasper.JasperException解决方法

    报错:org.apache.jasper.JasperException: /index.jsp (line: 1, column: 17) equal symbol expected

    表示:与Struts标签库有关,然后发现text标签我使用错误,找度娘,知道:Struts的textfield标签才是使用于文本输入框

    参考:

    struts2,标签<s:text>是和jsp的<input type="text">对应吗?【<s:text>是Struts2用来显示资源文件中信息或格式化数据时使用的,一般要配合<s:i18n>标签】

     

    展开全文
  • 在jdk升级的时候,遇到了这异常, 严重: Servlet.service() for servlet ...org.apache.jasper.JasperException: /WEB-INF/jsp/login.jsp (line: 3, column: 0) The absolute uri: http://java.sun.com/jsp/jstl/c...
  • 最近遇到的一个问题 把 &amp;amp;amp;nbsp;&amp;amp;amp;nbsp;&amp;amp;amp;nbsp;&amp;amp;amp;nbsp;&amp;amp;amp;nbsp;&amp;amp;amp;lt;%@ taglib uri=&amp;amp;quot;...
  • org.apache.jasper.JasperException 解决思路

    万次阅读 2018-09-28 12:35:07
    读取taglib标签报错,报错内容: org.apache.jasper.JasperException ...(省略) The absolute uri: http://java.sun.com/jsp/jstl/core cannot be resolved in either web.xml or the jar f...
  • org.apache.jasper.JasperException:异常

    千次阅读 2018-04-25 15:32:13
    org.apache.jasper.JasperException异常页面有语法错误!我的页面把comment['comment.typeID']改成comment['typeID']就行,知识积累,细心点!
  • 错误详情jetty org.apache.jasper.JasperException: PWC6345: There is an error in invoking javac. A full JDK (not just JRE) is required 在 linux上部署的java项目,访问jsp页面报错信息: jetty org.apache....
  • 最近在搭建 struts2 项目的时候,运行启动后遇见了org.apache.jasper.JasperException: /success.jsp (line: 2, column: 4) Invalid directive 报错,具体报错信息如下: Struts Problem Report Struts has ...
  • org.apache.jasper.JasperException: /xxx/xxx/xxx.jsp (line: 225, column: 30) equal symbol expected 遇到问题,分三步解决 、确定大概方向 从报错信息中我们可以得知,错误存在xxx文件下的xxx.jsp中,且...
  • 今天在做项目时,遇到一个问题:无法访问首页,报 Unable to compile class for JSP错误。...在这里检查了很次没有发现问题,这页面是根据另一个页面复制而来,修改相应参数内容 语法上来说应该不存在问...
  • 配置阿里云服务器的时候,将...redhat的tomcat中java_home一个jre 查看日志发现JAVA_HOME 变为/u01/jdk1.8/jdk1.8.0_102/jre 后面有了jre。 14-Jul-2019 20:19:58.764 INFO [main] org.apache.catalina.startup...
  • tomcat org.apache.catalina.LifecycleException 时,没在意,还以为是数据库配置没配置好,瞎搞了一通。后来从百度上搜了搜,得到了几种答案 。 web.xml没有配置好   转:{  出现这错误,郁闷了好久,...
  • 简介 Linux 是web 项目部署非常理想的环境,作为一个...笔者使用apache-tomcat-9.0.11 部署WEB 项目时在浏览器中访问jsp 文件时输出如下信息: org.apache.jasper.JasperException: java.lang.IllegalStateExcepti...
  • ERROR: org.apache.hadoop.hbase.PleaseHoldException: org.apache.hadoop.hbase.PleaseHoldException: Master is ini
  • Could not initialize class org.apache.spark.internal.config.package$ Could not initialize class org.apache.spark.internal.config.package$ ...有一个spark sql项目,使用local[*]模式测试,在本地...
  • apache httpd配置多个端口

    万次阅读 2017-08-04 18:25:43
    apache配置多个http端口方法:1,进入/usr/local/apache/conf/目录下 2,打开httpd.conf 3,方法1:ServerName localhost:80 Listen 80 Listen 81并将#Include conf/extra/httpd-vhosts.conf,这句中的#去掉 4,...
  • Apache多域名映射多个端口

    千次阅读 2015-08-27 21:08:56
    、httpd.conf文件配置 #保证以下模块加载 LoadModule proxy_module modules/mod_proxy.so LoadModule proxy_http_module modules/mod_proxy_http.so   # 引入httpd-vhosts.conf  Include conf/extra/httpd-...
  • 启动框架 org.apache.catalina.startup

    万次阅读 2008-09-20 11:02:00
    org.apache.catalina.startup.Bootstrap第步自然从main函数开始,我们可以从中看出bootstrap的初始化过程 main函数首先是调用init方法 ,然后根据main的参数,比如start、startd、stop、stopd等等,启动或停止...
  • 2019独角兽企业重金招聘Python工程师标准>>> ...
  • 转载自:http://www.myexception.cn/apache/1781414.html 感谢同事宏江投递本稿。 ...节前某个部门的测试环境反馈tomcat会意外退出,我们到实际环境排查后发现不是...org.apache.coyote.AbstractProtocol pause Pau
  • 2019-11-26 18:02:27.486 ERROR 109370 --- [Tomcat-startStop-1] org.apache.catalina.core.ContainerBase : A child container failed during start java.util.concurrent.ExecutionException: org.apache.cat...
  • org.apache.catalina.startup.Catalina stopServer 严重: Catalina.stop: java.net.ConnectException: Connection refused: connect at java.net.DualStackPlainSocketImpl.connect0(Native Method) at java.net....
  • 解决zookeeper中的org.apache.curator.CuratorConnectionLossException: KeeperErrorCode = ConnectionLoss问题 话不说直接上图 今天运行dubbo的时候,接收端一直在报这错误,在网上找了很方法都不行,然后...
  • 前两天在更新完tomcat后启动时报错,内容如下: 2013-06-18 18:58:26 org.apache.coyote.http11.Http11AprProtocol start INFO: Starting Coyote ... 2013-06-18 18:58:26 org.apache.coyote.ajp.AjpAprProtocol s
  • hbase配置及解决错误: 找不到或无法加载主类 org.apache.hadoop.hbase.util.GetJavaProperty等三问题 文章背景 最近在为公司搭建hadoop集群,安装hbase的时候出现了很问题,下面写了我遇到的三坑,如果你们按...
  • 之前一直用笔记本开发,今天把台式机环境搞好了,从git拉了工程,maven工程install出现错误,详情: [INFO] Scanning for projects... [INFO] Downloading from nexus: ...
  • apache 配置多个端口,部署多个项目

    千次阅读 2018-09-03 15:43:24
     1、添加监听端口 Listen 70  2、配置要访问的项目,在httpd.conf文件中添加如下内容 &lt;VirtualHost *:70&gt;  DocumentRoot /home/CMS/GYCMS/file  ServerName localhost:70 &lt;/Virtual...
  • 发布一个WebService服务:   a,在类上添加@WebService注解   (注:此注解是jdk1.6提供的,位于javax.jws.WebService包中)   b,通过EndPoint(端点服务)发布一个WebService   (注:EndPoint是jdk提供的...

空空如也

1 2 3 4 5 ... 20
收藏数 221,943
精华内容 88,777
关键字:

多个apache同一个端口