You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by James Ellis <el...@hotmail.com> on 2007/12/13 16:59:45 UTC

[users@httpd] VirtualHost Ignored For New URL

I have the following VirtualHost:
 
<VirtualHost server1:443>Keyfile /opt/IBMIHS/ssl/mycustomizedkeyfile.kdbSSLEnableSSLClientAuth 0ServerName server1Alias   /wcsstore               "/opt/WebSphere/AppServer/installedApps/stdwcs1/WC_wcsdev.ear/Stores.war"Alias   /wcs                    "/opt/WebSphere/AppServer/installedApps/stdwcs1/WC_wcsdev.ear/CommerceAccelerator.war"</VirtualHost>
This server can receive traffic at the following URL just fine: https://server1/... However, we also need to be able to get traffic to this server's VirtualHost at the following URL: https://server1.development/... I have two questions:
1) How can I "debug" this VirtualHost...I mean how can I log whenever this VirtualHost is entered.  I am looking for an equivalent to the Java System.out.println("Inside VirtualHost"); that you can do to debug Java code.
 
2) Any suggestions for how to be enaable this to accept traffic from this URL?  Right now requests to that URL show up in the apache access log as 404 and I get a message in the apache error logs saying: [Thu Dec 13 10:45:12 2007] [error] [client xxx.xxx.xxx.xxx] File does not exist: /opt/IBMIHS/htdocs/en_US/webapp
Thanks,
Jim

RE: [users@httpd] VirtualHost Ignored For New URL

Posted by James Ellis <el...@hotmail.com>.
I figured out how to do it:
 
NameVirtualHost server1.development:443<VirtualHost server1.development:443>Keyfile /opt/IBMIHS/ssl/mykeyfile.kdbSSLEnableSSLClientAuth 0ServerName server1Alias   /wcsstore               "/opt/WebSphere/AppServer/installedApps/stdwcs1/WC_wcsdev.ear/Stores.war"Alias   /wcs                    "/opt/WebSphere/AppServer/installedApps/stdwcs1/WC_wcsdev.ear/CommerceAccelerator.war"</VirtualHost>
 
<VirtualHost server1:443>Keyfile /opt/IBMIHS/ssl/mykeyfile.kdbSSLEnableSSLClientAuth 0ServerName server1Alias   /wcsstore               "/opt/WebSphere/AppServer/installedApps/stdwcs1/WC_wcsdev.ear/Stores.war"Alias   /wcs                    "/opt/WebSphere/AppServer/installedApps/stdwcs1/WC_wcsdev.ear/CommerceAccelerator.war"</VirtualHost>
Thanks,Jim
 
 
> Date: Thu, 13 Dec 2007 11:08:43 -0500> From: covener@gmail.com> To: users@httpd.apache.org> Subject: Re: [users@httpd] VirtualHost Ignored For New URL> > On Dec 13, 2007 10:59 AM, James Ellis <el...@hotmail.com> wrote:> > 1) How can I "debug" this VirtualHost...I mean how can I log whenever this> > VirtualHost is entered. I am looking for an equivalent to the Java> > System.out.println("Inside VirtualHost"); that you can do to debug Java> > code.> > Add %v to your LogFormat, or choose a separate Accesslog for this vhost.> > >> > 2) Any suggestions for how to be enaable this to accept traffic from this> > URL? Right now requests to that URL show up in the apache access log as 404> > and I get a message in the apache error logs saying:> > [Thu Dec 13 10:45:12 2007] [error] [client xxx.xxx.xxx.xxx] File does not> > exist: /opt/IBMIHS/htdocs/en_US/webapp> >> > Your using a different hostname, does it resolve to the same IP> address? If it doesn't, but you don't have other vhosts listening on> port 443, change your VirtualHost to specify *:443.> > > -- > Eric Covener> covener@gmail.com> > ---------------------------------------------------------------------> The official User-To-User support forum of the Apache HTTP Server Project.> See <URL:http://httpd.apache.org/userslist.html> for more info.> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org> " from the digest: users-digest-unsubscribe@httpd.apache.org> For additional commands, e-mail: users-help@httpd.apache.org> 

Re: [users@httpd] VirtualHost Ignored For New URL

Posted by Eric Covener <co...@gmail.com>.
On Dec 13, 2007 10:59 AM, James Ellis <el...@hotmail.com> wrote:
>  1) How can I "debug" this VirtualHost...I mean how can I log whenever this
> VirtualHost is entered.  I am looking for an equivalent to the Java
> System.out.println("Inside VirtualHost"); that you can do to debug Java
> code.

Add %v to your LogFormat, or choose a separate Accesslog for this vhost.

>
>  2) Any suggestions for how to be enaable this to accept traffic from this
> URL?  Right now requests to that URL show up in the apache access log as 404
> and I get a message in the apache error logs saying:
>  [Thu Dec 13 10:45:12 2007] [error] [client xxx.xxx.xxx.xxx] File does not
> exist: /opt/IBMIHS/htdocs/en_US/webapp
>

Your using a different hostname, does it resolve to the same IP
address?  If it doesn't, but you don't have other vhosts listening on
port 443, change your VirtualHost to specify *:443.


-- 
Eric Covener
covener@gmail.com

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org