right now I am working on setting up some virtual host
ie: virtual1.name.com and virtual2.name.com
so based on the tutorials I read
I modified three files:
-----Apache files------
worker2.properties:
worker.connect_id.port=8112
worker.connect_id.host=192.168.1.1
worker.connect_id.type=ajp13
httpd.conf:
<VirtualHost 192.168.1.1>
ServerAdmin
[email protected]
DocumentRoot "C:/Program Files/Apache Software Foundation/Tomcat 7.0/webapps/virtualhost"
ServerName "virtual1.name.com:80"
<Directory "C:/Program Files/Apache Software Foundation/Tomcat 7.0/webapps/virtualhost/cgi-bin">
Options ExecCGI
SetHandler cgi-script
</Directory>
JkMount /servlet/* connect_id
JkMount /*.html connect_id
JkMount /*.jsp connect_id
</VirtualHost>
----Tomcat----
myserver.xml
<Connector className="org.apache.ajp.tomcat4.Ajp13Connector"
port="8112" minProcessors="3" maxProcessors="10"
acceptCount="10" debug="0"/>
<Host name="virtual1.name.com" debug="0" unpackWARs="true">
<Logger className="org.apache.catalina.logger.FileLogger"
directory="logs" prefix="virtual_log." suffix=".txt" timestamp="true"/>
<Context path="" docBase="C:/Program Files/Apache Software Foundation/Tomcat 7.0/webapps/virtualhost" debug="0" reloadable="true"/>
<Valve className="org.apache.catalina.valves.AccessLogValve"
directory="logs" prefix="virtual_log." suffix=".txt"
pattern="common"/>
</Host>
what am I missing?
the question is that it is always working if I type
http://127.0.0.1:8112/virtualhost/index.html (Tomcat folder can be found)
never work for
http://192.168.1.1 or
http://virtual1.name.com
some help please?