problem finding css

2003-07-24 Thread Astrid Wagner
Hi,
I am using Apache 1.3 with tomcat 4.1.24.
When I use netscape 7 to run my web application everything works fine.
When I use e.g netscape 4 the style sheets can not be found.
How do I have to configure Apache/tomcat ?
In the html page the source is refered to as:
  link href=/main.css rel=stylesheet type=text/css

Right now  I have in http.conf:
VirtualHost *
 DocumentRoot 
/home/oraedt/app/oracle/product/9iAS_1.0.2.2/jakarta-tomcat-4.1.24/webapps/iprweb
 ServerName upolu.sps.mot.com
 JkMount /iprweb/* ajp13
/VirtualHost

   Alias   /html/  /home/minerva/servers/upolu/ipr_files/static_html/

The main.css is installed in 
/home/minerva/servers/upolu/ipr_files/static_html.
Thanks for any hint ..

Astrid


RE: problem finding css

2003-07-24 Thread Ralph Einfeldt
I would expect that you have to use link href=/html/main.css ...
to get the file. Otherwise the alias directive won't match.

 -Original Message-
 From: Astrid Wagner [mailto:[EMAIL PROTECTED]
 Sent: Thursday, July 24, 2003 12:35 PM
 To: [EMAIL PROTECTED]
 Subject: problem finding css 
 
 
 
link href=/main.css rel=stylesheet type=text/css
 
 Alias   /html/  /home/minerva/servers/upolu/ipr_files/static_html/
 
 The main.css is installed in 
 /home/minerva/servers/upolu/ipr_files/static_html.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: problem finding css

2003-07-24 Thread Simon Pabst
href=/main.css looks like wrong syntax,

either use:
href=main.css
(if your html files linking to that css file are in the same directory)
or:
href=/html/main.css
(if your html files are somewhere else, you need to specify the URI to the 
CSS file, i.e. the local part of the URL without the Host- or DNS-name)

At 12:34 24.07.2003 +0200, you wrote:
Hi,
I am using Apache 1.3 with tomcat 4.1.24.
When I use netscape 7 to run my web application everything works fine.
When I use e.g netscape 4 the style sheets can not be found.
How do I have to configure Apache/tomcat ?
In the html page the source is refered to as:
  link href=/main.css rel=stylesheet type=text/css

Right now  I have in http.conf:
VirtualHost *
 DocumentRoot 
/home/oraedt/app/oracle/product/9iAS_1.0.2.2/jakarta-tomcat-4.1.24/webapps/iprweb
 ServerName upolu.sps.mot.com
 JkMount /iprweb/* ajp13
/VirtualHost

   Alias   /html/  /home/minerva/servers/upolu/ipr_files/static_html/

The main.css is installed in 
/home/minerva/servers/upolu/ipr_files/static_html.
Thanks for any hint ..

Astrid


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: problem finding css

2003-07-24 Thread Astrid Wagner
No I forgot to state that http.conf has also:
DocumentRoot /home/minerva/servers/upolu//ipr_files/static_html
otherwise it wouldn't  find it in any case.
I assume the main.css is looked up in 
/home/oraedt/app/oracle/product/9iAS_1.0.2.2/jakarta-tomcat-4.1.24/webapps/iprweb
because of my:
VirtualHost *
 DocumentRoot 
/home/oraedt/app/oracle/product/9iAS_1.0.2.2/jakarta-tomcat-4.1.24/webapps/iprweb
 ServerName upolu.sps.mot.com
 JkMount /iprweb/* ajp13
/VirtualHost
directive.
Somehow new netscape versions seem to go to the next DocumentRoot to 
find a resource when not found in first because
as stated before it works with netscape 7.
My problem is therefore:
How do I tell Apache to take main.css from the global DocumentRoot in 
http.conf and only the web
application from the one in the VirtualHost directive. Static text as 
well as web should use the same machine/port number.
I guess I have to read about the VirtualHost tag more.
Thanks anyway.
Astrid

Ralph Einfeldt wrote:

I would expect that you have to use link href=/html/main.css ...
to get the file. Otherwise the alias directive won't match.
 

-Original Message-
From: Astrid Wagner [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 24, 2003 12:35 PM
To: [EMAIL PROTECTED]
Subject: problem finding css 



  link href=/main.css rel=stylesheet type=text/css

   Alias   /html/  /home/minerva/servers/upolu/ipr_files/static_html/

The main.css is installed in 
/home/minerva/servers/upolu/ipr_files/static_html.
   

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
 




RE: problem finding css

2003-07-24 Thread Ralph Einfeldt
Now your are confusing me.

This is what I believe to be true:

   Any request can just be served from one DocumentRoot.

   Which DocumentRoot is used, is defined by the way you 
   configure apache

   If the request contains a server name that matches a 
   given virtual host, the setting for this host take 
   precedence. If this virtual host has an own DocumentRoot 
   this is used and nothing else. If the server name can't 
   be matched, the global definitions are used.

   So to get files from the global DocumentRoot the request 
   has to contain a different servername than upolu.sps.mot.com.

What different versions of netscape could do, to produce 
the behaviour that you describe is unclear to me.

Recommended Solution:
  I think that you don't need the DocumentRoot definition in
  your virtual host. (Unless you have static files in that
  directory that should be served through apache).
  (As I'm currently not using tomcat behind apache I'm not 
  completely shure)

 -Original Message-
 From: Astrid Wagner [mailto:[EMAIL PROTECTED]
 Sent: Thursday, July 24, 2003 1:29 PM
 To: Tomcat Users List
 Subject: Re: problem finding css
 
 
 DocumentRoot /home/minerva/servers/upolu//ipr_files/static_html
 
 VirtualHost *
   DocumentRoot 
 /home/oraedt/app/oracle/product/9iAS_1.0.2.2/jakarta-tomcat-4.
 1.24/webapps/iprweb
   ServerName upolu.sps.mot.com
   JkMount /iprweb/* ajp13
 /VirtualHost

 Somehow new netscape versions seem to go to the next DocumentRoot to 
 find a resource when not found in first because as stated before it 
 works with netscape 7.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: problem finding css

2003-07-24 Thread Astrid Wagner
For my purposes it was wrong to use the VirtualHost directive because
my web appl. runs on same host /port.
I just left the JkMount directive and it works with old and new netscape 
version.
The mapping to the web appl. doc root is done by workers.properties and
server.xml and I thought I have to do this in httpd.conf
Thanks.
Astrid

Astrid Wagner wrote:

No I forgot to state that http.conf has also:
DocumentRoot /home/minerva/servers/upolu//ipr_files/static_html
otherwise it wouldn't  find it in any case.
I assume the main.css is looked up in 
/home/oraedt/app/oracle/product/9iAS_1.0.2.2/jakarta-tomcat-4.1.24/webap
ps/iprweb
because of my:
VirtualHost *
 DocumentRoot 
/home/oraedt/app/oracle/product/9iAS_1.0.2.2/jakarta-tomcat-4.1.24/webap
ps/iprweb
 ServerName upolu.sps.mot.com
 JkMount /iprweb/* ajp13
/VirtualHost
directive.
Somehow new netscape versions seem to go to the next DocumentRoot to 
find a resource when not found in first because
as stated before it works with netscape 7.
My problem is therefore:
How do I tell Apache to take main.css from the global DocumentRoot 
in http.conf and only the web
application from the one in the VirtualHost directive. Static text 
as well as web should use the same machine/port number.
I guess I have to read about the VirtualHost tag more.
Thanks anyway.
Astrid

Ralph Einfeldt wrote:

I would expect that you have to use link href=/html/main.css ...
to get the file. Otherwise the alias directive won't match.
 

-Original Message-
From: Astrid Wagner [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 24, 2003 12:35 PM
To: [EMAIL PROTECTED]
Subject: problem finding css
  link href=/main.css rel=stylesheet type=text/css

   Alias   /html/  /home/minerva/servers/upolu/ipr_files/static_html/

The main.css is installed in 
/home/minerva/servers/upolu/ipr_files/static_html.
  


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
 





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: problem finding css

2003-07-24 Thread srevilak
 I assume the main.css is looked up in
 /home/oraedt/app/oracle/product/9iAS_1.0.2.2/jakarta-tomcat-4.1.24/webapps/iprweb
 because of my:
 VirtualHost *
   DocumentRoot
 /home/oraedt/app/oracle/product/9iAS_1.0.2.2/jakarta-tomcat-4.1.24/webapps/iprweb
   ServerName upolu.sps.mot.com
   JkMount /iprweb/* ajp13
 /VirtualHost

Apache first select the virtual host, then uses the settings given for
that VirtualHost.  If the HirtualHost declares a document root, then
that overrides the DocumentRoot in the main server config.

Apache does not traverse virtualhosts when attempting to fulfill a
request.  It selects (the most specific) one and uses it.


 My problem is therefore:
 How do I tell Apache to take main.css from the global DocumentRoot in
 http.conf and only the web
 application from the one in the VirtualHost directive. Static text as
 well as web should use the same machine/port number.
 I guess I have to read about the VirtualHost tag more.

I'd recommend not using VirtualHost *.  Name them explictily (you
can use ServerAlias to provide alternate names if needed).  If a
request does not match any of the virtualhosts listed, the server will
use the first one in the list.  You can think of that as a default.

For serving multiple sites with one server, I'd do one step further;
get rid of the document root in the main server config, and use a
virtual host for each site.  If nothing else, the layout will be
clearer, and it will be easier to understand what's going on.

If all else fails, there's the quick and dirty solution.  Find the
line in the error logs that mentions the missing file

  [Thu Jul 24 09:38:38 2003] [error] [client 192.168.1.1] File does not exist: 
/path/to/main.css

And make a symlink :)

-- 
Steve

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]