You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Dennis Harris <dh...@q5systems.com> on 2005/08/25 19:03:57 UTC

Virtual Host Not Working Correctly

Hi Guys,
 
I am setting up a Virtual Host in Tomcat, I've added the following entry
in my server.xml file.
 
<Host name="q5aims.net" debug="0" appBase="webapps" unpackWARs="true">
<Alias>www.q5aims.net</Alias>
<Logger className="org.apache.catalina.logger.FileLogger"
directory="logs" prefix="virtual_log1." suffix=".log" timestamp="true"/>
<Context path="/q5aims_net" docBase="q5aims_net" debug="0"
reloadable="true"/>
</Host>

However, when I test the link, it says the page cannot be found. In the
directory "q5aims_net" I have one doc, "index.html"

Any ideas why this isn't working?

Thanks


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Re: Virtual Host Not Working Correctly

Posted by Hassan Schroeder <ha...@webtuitive.com>.
Dennis Harris wrote:

> I am setting up a Virtual Host in Tomcat, I've added the following entry
> in my server.xml file.
>  
> <Host name="q5aims.net" debug="0" appBase="webapps" unpackWARs="true">/

> <Context path="/q5aims_net" docBase="q5aims_net" debug="0"
> reloadable="true"/>
> </Host>
> 
> However, when I test the link, it says the page cannot be found. In the
> directory "q5aims_net" I have one doc, "index.html"

Are you trying to access
     'http://q5aims.net/index.html'
or
     'http://q5aims.net/q5aims_net/index.html'
as your Context entry indicates?

-- 
Hassan Schroeder ----------------------------- hassan@webtuitive.com
Webtuitive Design ===  (+1) 408-938-0567   === http://webtuitive.com

                           dream.  code.



---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org