Re: vertial host apache/tomcat
#ErrorLog logs/dummy-host.example.com-error_log #CustomLog logs/dummy-host.example.com-access_log common #/VirtualHost # 17-09-2003 Johan Louwers -- [EMAIL PROTECTED] # virtualhost www.verder.fr # france website verder www.verder.fr VirtualHost * ServerAdmin [EMAIL PROTECTED] DocumentRoot /export/home/webroot/www.verder.fr ServerName www.verder.fr ErrorLog /export/home/weblog/error-log_www.verder.fr CustomLog /export/home/weblog/common-log_www.verder.fr common /VirtualHost # 17-09-2003 Johan Louwers -- [EMAIL PROTECTED] # virtualhost mnt.verder.fr # mnt part of the france verder website. VirtualHost * ServerAdmin [EMAIL PROTECTED] DocumentRoot /export/home/webroot/mnt.verder.fr ServerName mnt.verder.fr ErrorLog /export/home/weblog/error-log_mnt.verder.fr CustomLog /export/home/weblog/common-log_mnt.verder.fr common /VirtualHost # 16-09-2003. Johan Louwers [EMAIL PROTECTED] # LoadModule mod_jk2.so inserted and activated to make apache http deamon # with jakarta tomcat both on port 80. LoadModule jk2_module modules/mod_jk2.so # --END HTTPD.CONF-- - Original Message - From: Luke Vanderfluit [EMAIL PROTECTED] To: Johan Louwers [EMAIL PROTECTED] Sent: Wednesday, September 17, 2003 10:31 PM Subject: Re: vertial host apache/tomcat Hi Johan, I don't know what your httpd.conf looks like, When using VirtualHost the first block must be the main domain, then your virtual domains. post your full httpd.conf kind regards, Luke On Wed, 2003-09-17 at 20:54, Johan Louwers wrote: Ok, finaly have apache and tomcat running both on port 80. I have created the following dir's /export/home/www.someserver.com /export/home/mnt.someserver.com This will be the location of http://www.someserver.com and http://mnt.someserver.com To test I have placed a document named info_www.txt in /export/home/www.someserver.com and placed info_mnt.txt in /export/home/mnt.someserver.com I have created 2 vertiualhosts like this in my httpd.conf: _ NameVirtualHost * VirtualHost * ServerAdmin [EMAIL PROTECTED] DocumentRoot/export/home/www.someserver.com ServerName www.someserver.com ErrorLog /export/home/log/errorlog-2 CustomLog /export/home/log/customlog-2 custom /VirtualHost VirtualHost * ServerAdmin [EMAIL PROTECTED] DocumentRoot /export/home/mnt.someserver.com ServerName mnt.someserver.com ErrorLog /export/home/log/errorlog-1 CustomLog /export/home/log/customlog-1 custom /VirtualHost _ If open www.someserver.com/www.txt this is correct and working Then I open www.someserver.com/info_mnt.txt and this also opend. This should not be possible info_mnt.txt should only be availabale true the domain mnt.someserver.com. How is it possible I also can open it true www.someserver.com ? I also like to run jsp files under www.someserver.com and mnt.someserver.com ... people are not allowd to open documents from mnt in the www part.. How do I change the webapps dirs and make them available under http://mnt.someserver.com and http://www,someserver.com ? Thanks already, Regards. Johan. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- when my computer smiles, I'm happy ===.~ ~, Luke Vanderfluit |'/'] Mobile: 0421 276 282\~/` - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: vertial host apache/tomcat
# # Bring in additional module-specific configurations # IfModule mod_ssl.c Include conf/ssl.conf /IfModule ### Section 3: Virtual Hosts # # VirtualHost: If you want to maintain multiple domains/hostnames on your # machine you can setup VirtualHost containers for them. Most configurations # use only name-based virtual hosts so the server doesn't need to worry about # IP addresses. This is indicated by the asterisks in the directives below. # # Please see the documentation at # URL:http://httpd.apache.org/docs-2.0/vhosts/ # for further details before you try to setup virtual hosts. # # You may use the command line option '-S' to verify your virtual host # configuration. # # Use name-based virtual hosting. # NameVirtualHost * # # VirtualHost example: # Almost any Apache directive may go into a VirtualHost container. # The first VirtualHost section is used for requests without a known # server name. # #VirtualHost * #ServerAdmin [EMAIL PROTECTED] #DocumentRoot /www/docs/dummy-host.example.com #ServerName dummy-host.example.com #ErrorLog logs/dummy-host.example.com-error_log #CustomLog logs/dummy-host.example.com-access_log common #/VirtualHost # 17-09-2003 Johan Louwers -- [EMAIL PROTECTED] # virtualhost www.verder.fr # france website verder www.verder.fr VirtualHost * ServerAdmin [EMAIL PROTECTED] DocumentRoot /export/home/webroot/www.verder.fr ServerName www.verder.fr ErrorLog /export/home/weblog/error-log_www.verder.fr CustomLog /export/home/weblog/common-log_www.verder.fr common /VirtualHost # 17-09-2003 Johan Louwers -- [EMAIL PROTECTED] # virtualhost mnt.verder.fr # mnt part of the france verder website. VirtualHost * ServerAdmin [EMAIL PROTECTED] DocumentRoot /export/home/webroot/mnt.verder.fr ServerName mnt.verder.fr ErrorLog /export/home/weblog/error-log_mnt.verder.fr CustomLog /export/home/weblog/common-log_mnt.verder.fr common /VirtualHost # 16-09-2003. Johan Louwers [EMAIL PROTECTED] # LoadModule mod_jk2.so inserted and activated to make apache http deamon # with jakarta tomcat both on port 80. LoadModule jk2_module modules/mod_jk2.so # --END HTTPD.CONF-- - Original Message - From: Luke Vanderfluit [EMAIL PROTECTED] To: Johan Louwers [EMAIL PROTECTED] Sent: Wednesday, September 17, 2003 10:31 PM Subject: Re: vertial host apache/tomcat Hi Johan, I don't know what your httpd.conf looks like, When using VirtualHost the first block must be the main domain, then your virtual domains. post your full httpd.conf kind regards, Luke On Wed, 2003-09-17 at 20:54, Johan Louwers wrote: Ok, finaly have apache and tomcat running both on port 80. I have created the following dir's /export/home/www.someserver.com /export/home/mnt.someserver.com This will be the location of http://www.someserver.com and http://mnt.someserver.com To test I have placed a document named info_www.txt in /export/home/www.someserver.com and placed info_mnt.txt in /export/home/mnt.someserver.com I have created 2 vertiualhosts like this in my httpd.conf: _ NameVirtualHost * VirtualHost * ServerAdmin [EMAIL PROTECTED] DocumentRoot/export/home/www.someserver.com ServerName www.someserver.com ErrorLog /export/home/log/errorlog-2 CustomLog /export/home/log/customlog-2 custom /VirtualHost VirtualHost * ServerAdmin [EMAIL PROTECTED] DocumentRoot /export/home/mnt.someserver.com ServerName mnt.someserver.com ErrorLog /export/home/log/errorlog-1 CustomLog /export/home/log/customlog-1 custom /VirtualHost _ If open www.someserver.com/www.txt this is correct and working Then I open www.someserver.com/info_mnt.txt and this also opend. This should not be possible info_mnt.txt should only be availabale true the domain mnt.someserver.com. How is it possible I also can open it true www.someserver.com ? I also like to run jsp files under www.someserver.com and mnt.someserver.com ... people are not allowd to open documents from mnt in the www part.. How do I change the webapps dirs and make them available under http://mnt.someserver.com and http://www,someserver.com ? Thanks already, Regards. Johan. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- when my computer smiles, I'm happy ===.~ ~, Luke Vanderfluit |'/'] Mobile: 0421 276 282\~/` - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL
Re: vertial host apache/tomcat
:-) I will post the message again that contains the original message. The question was: # --begin original message -- Ok, finaly have apache and tomcat running both on port 80. I have created the following dir's /export/home/www.someserver.com /export/home/mnt.someserver.com This will be the location of http://www.someserver.com and http://mnt.someserver.com To test I have placed a document named info_www.txt in /export/home/www.someserver.com and placed info_mnt.txt in /export/home/mnt.someserver.com I have created 2 vertiualhosts like this in my httpd.conf: _ NameVirtualHost * VirtualHost * ServerAdmin [EMAIL PROTECTED] DocumentRoot/export/home/www.someserver.com ServerName www.someserver.com ErrorLog /export/home/log/errorlog-2 CustomLog /export/home/log/customlog-2 custom /VirtualHost VirtualHost * ServerAdmin [EMAIL PROTECTED] DocumentRoot /export/home/mnt.someserver.com ServerName mnt.someserver.com ErrorLog /export/home/log/errorlog-1 CustomLog /export/home/log/customlog-1 custom /VirtualHost _ If open www.someserver.com/www.txt this is correct and working Then I open www.someserver.com/info_mnt.txt and this also opend. This should not be possible info_mnt.txt should only be availabale true the domain mnt.someserver.com. How is it possible I also can open it true www.someserver.com ? I also like to run jsp files under www.someserver.com and mnt.someserver.com ... people are not allowd to open documents from mnt in the www part.. How do I change the webapps dirs and make them available under http://mnt.someserver.com and http://www,someserver.com ? Thanks already, Regards. Johan. # --end original message -- - Original Message - From: [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Thursday, September 18, 2003 7:44 AM Subject: Re: vertial host apache/tomcat What's the question? Johan Louwers wrote: Luke, I placed my httpd.conf in this mail. Hope you (or someone else) knows the answer. # --BEGIN HTTPD.CONF-- # # Based upon the NCSA server configuration files originally by Rob McCool. # # This is the main Apache server configuration file. It contains the # configuration directives that give the server its instructions. # See URL:http://httpd.apache.org/docs-2.0/ for detailed information about # the directives. # # Do NOT simply read the instructions in here without understanding # what they do. They're here only as hints or reminders. If you are unsure # consult the online docs. You have been warned. # # The configuration directives are grouped into three basic sections: # 1. Directives that control the operation of the Apache server process as a # whole (the 'global environment'). # 2. Directives that define the parameters of the 'main' or 'default' server, # which responds to requests that aren't handled by a virtual host. # These directives also provide default values for the settings # of all virtual hosts. # 3. Settings for virtual hosts, which allow Web requests to be sent to # different IP addresses or hostnames and have them handled by the # same Apache server process. # # Configuration and logfile names: If the filenames you specify for many # of the server's control files begin with / (or drive:/ for Win32), the # server will use that explicit path. If the filenames do *not* begin # with /, the value of ServerRoot is prepended -- so logs/foo.log # with ServerRoot set to /usr/local/apache will be interpreted by the # server as /usr/local/apache/logs/foo.log. # ### Section 1: Global Environment # # The directives in this section affect the overall operation of Apache, # such as the number of concurrent requests it can handle or where it # can find its configuration files. # # # ServerRoot: The top of the directory tree under which the server's # configuration, error, and log files are kept. # # NOTE! If you intend to place this on an NFS (or otherwise network) # mounted filesystem then please read the LockFile documentation (available # at URL:http://httpd.apache.org/docs-2.0/mod/mpm_common.html#lockfile); # you will save yourself a lot of trouble. # # Do NOT add a slash at the end of the directory path. # ServerRoot /usr/local/apache # # The accept serialization lock file MUST BE STORED ON A LOCAL DISK. # IfModule !mpm_winnt.c IfModule !mpm_netware.c #LockFile logs/accept.lock /IfModule /IfModule # # ScoreBoardFile: File used to store internal server process information. # If unspecified (the default), the scoreboard will be stored in an # anonymous shared memory segment, and will be unavailable to third-party # applications. # If specified, ensure that no two
Re: vertial host apache/tomcat
Hi Johan, Are the domains correctly configured in a dns somewhere? That is: when your browser requests a fqdn (fully qualified domain name), the dns needs to translate it to an IP address. You should have a DNS entry for these domains - on a dns server somewhere on the internet - on a dns server you have set up yourself Alternatively for testing: On the machine running the browser, you could put entries in the 'hosts' file. So when your browser requests a fqdn, it gets translated to an IP address. Your httpd.conf, just the last bit concerning virtual hosts could look like this. Simplified for testing and tested to work. NameVirtualHost 192.168.25.5 VirtualHost 192.168.25.5 DocumentRoot /home/httpd/htdocs/ ServerName knife.chipcity.com.au /VirtualHost VirtualHost 192.168.25.5 DocumentRoot /home/httpd/htdocs/virtual1/ ServerName fork.chipcity.com.au /VirtualHost Hope this helps, kind regards, Luke On Thu, 2003-09-18 at 17:05, Johan Louwers wrote: :-) I will post the message again that contains the original message. The question was: # --begin original message -- Ok, finaly have apache and tomcat running both on port 80. I have created the following dir's /export/home/www.someserver.com /export/home/mnt.someserver.com This will be the location of http://www.someserver.com and http://mnt.someserver.com To test I have placed a document named info_www.txt in /export/home/www.someserver.com and placed info_mnt.txt in /export/home/mnt.someserver.com I have created 2 vertiualhosts like this in my httpd.conf: _ NameVirtualHost * VirtualHost * ServerAdmin [EMAIL PROTECTED] DocumentRoot/export/home/www.someserver.com ServerName www.someserver.com ErrorLog /export/home/log/errorlog-2 CustomLog /export/home/log/customlog-2 custom /VirtualHost VirtualHost * ServerAdmin [EMAIL PROTECTED] DocumentRoot /export/home/mnt.someserver.com ServerName mnt.someserver.com ErrorLog /export/home/log/errorlog-1 CustomLog /export/home/log/customlog-1 custom /VirtualHost _ If open www.someserver.com/www.txt this is correct and working Then I open www.someserver.com/info_mnt.txt and this also opend. This should not be possible info_mnt.txt should only be availabale true the domain mnt.someserver.com. How is it possible I also can open it true www.someserver.com ? I also like to run jsp files under www.someserver.com and mnt.someserver.com ... people are not allowd to open documents from mnt in the www part.. How do I change the webapps dirs and make them available under http://mnt.someserver.com and http://www,someserver.com ? Thanks already, Regards. Johan. # --end original message -- - Original Message - From: [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Thursday, September 18, 2003 7:44 AM Subject: Re: vertial host apache/tomcat What's the question? Johan Louwers wrote: Luke, I placed my httpd.conf in this mail. Hope you (or someone else) knows the answer. # --BEGIN HTTPD.CONF-- # # Based upon the NCSA server configuration files originally by Rob McCool. # # This is the main Apache server configuration file. It contains the # configuration directives that give the server its instructions. # See URL:http://httpd.apache.org/docs-2.0/ for detailed information about # the directives. # # Do NOT simply read the instructions in here without understanding # what they do. They're here only as hints or reminders. If you are unsure # consult the online docs. You have been warned. # # The configuration directives are grouped into three basic sections: # 1. Directives that control the operation of the Apache server process as a # whole (the 'global environment'). # 2. Directives that define the parameters of the 'main' or 'default' server, # which responds to requests that aren't handled by a virtual host. # These directives also provide default values for the settings # of all virtual hosts. # 3. Settings for virtual hosts, which allow Web requests to be sent to # different IP addresses or hostnames and have them handled by the # same Apache server process. # # Configuration and logfile names: If the filenames you specify for many # of the server's control files begin with / (or drive:/ for Win32), the # server will use that explicit path. If the filenames do *not* begin # with /, the value of ServerRoot is prepended -- so logs/foo.log # with ServerRoot set to /usr/local/apache will be interpreted by the # server as /usr/local/apache/logs/foo.log. # ### Section 1: Global Environment # # The directives in this section affect
Re: vertial host apache/tomcat
Hi Johan, I don't know what your httpd.conf looks like, When using VirtualHost the first block must be the main domain, then your virtual domains. post your full httpd.conf kind regards, Luke On Wed, 2003-09-17 at 20:54, Johan Louwers wrote: Ok, finaly have apache and tomcat running both on port 80. I have created the following dir's /export/home/www.someserver.com /export/home/mnt.someserver.com This will be the location of http://www.someserver.com and http://mnt.someserver.com To test I have placed a document named info_www.txt in /export/home/www.someserver.com and placed info_mnt.txt in /export/home/mnt.someserver.com I have created 2 vertiualhosts like this in my httpd.conf: _ NameVirtualHost * VirtualHost * ServerAdmin [EMAIL PROTECTED] DocumentRoot/export/home/www.someserver.com ServerName www.someserver.com ErrorLog /export/home/log/errorlog-2 CustomLog /export/home/log/customlog-2 custom /VirtualHost VirtualHost * ServerAdmin [EMAIL PROTECTED] DocumentRoot /export/home/mnt.someserver.com ServerName mnt.someserver.com ErrorLog /export/home/log/errorlog-1 CustomLog /export/home/log/customlog-1 custom /VirtualHost _ If open www.someserver.com/www.txt this is correct and working Then I open www.someserver.com/info_mnt.txt and this also opend. This should not be possible info_mnt.txt should only be availabale true the domain mnt.someserver.com. How is it possible I also can open it true www.someserver.com ? I also like to run jsp files under www.someserver.com and mnt.someserver.com ... people are not allowd to open documents from mnt in the www part.. How do I change the webapps dirs and make them available under http://mnt.someserver.com and http://www,someserver.com ? Thanks already, Regards. Johan. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- when my computer smiles, I'm happy ===.~ ~, Luke Vanderfluit |'/'] Mobile: 0421 276 282\~/` - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]