You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by "Suman, Kaushik" <ks...@ebay.com> on 2003/11/18 01:15:03 UTC

[users@httpd] apache/tomcat configuration question

how do you go about creating an alias that points https://download.myserv.com to https://lifeline.myserv.com:8443/download?

This server is running Red Hat with Apache and Tomcat.  If you can help, let me know you if you need more info.2  I think this requires creating virtual hosts.  I'm not sure how to do this on Apache.

---------------------------------------------------------------------
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] apache/tomcat configuration question

Posted by Aaron Morris <aa...@mindspring.com>.

Brian Dessent wrote:

> "Suman, Kaushik" wrote:
> 
>>how do you go about creating an alias that points https://download.myserv.com to https://lifeline.myserv.com:8443/download?
>>
>>This server is running Red Hat with Apache and Tomcat.  If you can help, let me know you if you need more info.2  I think this requires creating virtual hosts.  I'm not sure how to do this on Apache.
> 
> 
> You might be able to do this as follows:
> 
> NameVirtualHost *:443
> ...
> <VirtualHost *:443>
>     ServerName download.myserv.com
>     Redirect / https://lifeline.myserv.com:8443/download
> </VirtualHost>

This is a bit nitpicky, but "NameVirtualHost *:443" is a pointless 
directive.  I can be a bit deceptive when helping people.  It's better 
just left out.

-- 
Aaron W Morris <aa...@mindspring.com> (decep)




---------------------------------------------------------------------
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] apache/tomcat configuration question

Posted by Brian Dessent <br...@dessent.net>.
"Suman, Kaushik" wrote:
> 
> how do you go about creating an alias that points https://download.myserv.com to https://lifeline.myserv.com:8443/download?
> 
> This server is running Red Hat with Apache and Tomcat.  If you can help, let me know you if you need more info.2  I think this requires creating virtual hosts.  I'm not sure how to do this on Apache.

You might be able to do this as follows:

NameVirtualHost *:443
...
<VirtualHost *:443>
    ServerName download.myserv.com
    Redirect / https://lifeline.myserv.com:8443/download
</VirtualHost>

But, the specifics will depend on your current configuration. 
Specifically, on an SSL enabled server you are probably already using
virtual hosts so you don't want to copy this exactly.  Basically, you
want to define a VirutalHost for the "download.myserv.com" URL, into
which you put a Redirect parameter.

There are several things to be aware of:

- YOu cannot have more than one SSL (https) virtual host per IP
address.  So if this machine is serving only https://download.myserv.com
then you're fine, but you cannot also have
https://something-else.myserv.com on that same IP address.

- This method of redirection will cause the user's browser to change the
URL in the title bar and it will make a new request for the redirected
URL, "https://lifeline..."  If you don't want this or this URL is not
publicly accessable then you'll need to either do some mod_rewrite
trickery (if it's all on the same httpd) or use reverse proxying to have
the httpd server get the resource and send it along to the user.  Not
sure how proxying works with https though.

- If you currently aren't using any virtual hosts then you'll have to
create a defualt one to correspond to all the settings in the main part
of httpd.conf outside of any VirtualHost container.

Take this advise with a grain of salt, I'm no expert, and I'd always
double check everything and get a second opinion when dealing with
SSL/https for security.

Brian

---------------------------------------------------------------------
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] Apache Tomcat Memory issue

Posted by Aaron Morris <aa...@mindspring.com>.

Richard Correia wrote:

> Hi,
> 
> My "top" is showing me following statistics. At this time, my webserver
> is getting 2400 hits per minutes for one JSP page.
> 
> Now my question is, this java process shows 11.7% memory usage.
> Does this mean each java process is using 11.7% memory or my jsp engine
> is taking 11.7% memory.
> 
> 
>   PID USER     PRI  NI  SIZE  RSS SHARE STAT  LIB %CPU %MEM   TIME
> COMMAND
> 13983 root       0   0 63956  59M 19440 S      60  0.0 11.7   0:01 java
> 13984 root       0   0 63956  59M 19440 S      60  0.0 11.7   0:57 java
> 13985 root       0   0 63956  59M 19440 S      60  0.0 11.7   8:13 java
> 13986 root       0   0 63956  59M 19440 S      60  0.0 11.7   2:01 java
> 13987 root       0   0 63956  59M 19440 S      60  0.0 11.7   5:58 java
> 13988 root       0   0 63956  59M 19440 S      60  0.0 11.7  71:36 java
> 13989 root       0   0 63956  59M 19440 S      60  0.0 11.7   0:00 java
> 13990 root       0   0 63956  59M 19440 S      60  0.0 11.7   0:00 java
> 13991 root       0   0 63956  59M 19440 S      60  0.0 11.7   0:04 java
> 13993 root       0   0 63956  59M 19440 S      60  0.0 11.7   0:01 java
> 13994 root       0   0 63956  59M 19440 S      60  0.0 11.7   0:38 java
> 13996 root       0   0 63956  59M 19440 S      60  0.0 11.7   0:00 java
> .
> .
> .
> 
> Please let me. This will solve my huge problem
> 
> Sincerely,
> Richard
> 

Under Linux (I assume you are using Linux) each thread is assigned a PID 
and pretty much looks like any other process.  Usually, each thread 
displays the same stats as the "parent" process so it is safe to say 
that the engine is taking 11.7% of memory as a whole.

"ps -ef --forest" will give a good graphical representation of the PIDs 
and threads.

-- 
Aaron W Morris <aa...@mindspring.com> (decep)




---------------------------------------------------------------------
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


[users@httpd] Apache Tomcat Memory issue

Posted by Richard Correia <ri...@ugamsolutions.com>.
Hi,

My "top" is showing me following statistics. At this time, my webserver
is getting 2400 hits per minutes for one JSP page.

Now my question is, this java process shows 11.7% memory usage.
Does this mean each java process is using 11.7% memory or my jsp engine
is taking 11.7% memory.


  PID USER     PRI  NI  SIZE  RSS SHARE STAT  LIB %CPU %MEM   TIME
COMMAND
13983 root       0   0 63956  59M 19440 S      60  0.0 11.7   0:01 java
13984 root       0   0 63956  59M 19440 S      60  0.0 11.7   0:57 java
13985 root       0   0 63956  59M 19440 S      60  0.0 11.7   8:13 java
13986 root       0   0 63956  59M 19440 S      60  0.0 11.7   2:01 java
13987 root       0   0 63956  59M 19440 S      60  0.0 11.7   5:58 java
13988 root       0   0 63956  59M 19440 S      60  0.0 11.7  71:36 java
13989 root       0   0 63956  59M 19440 S      60  0.0 11.7   0:00 java
13990 root       0   0 63956  59M 19440 S      60  0.0 11.7   0:00 java
13991 root       0   0 63956  59M 19440 S      60  0.0 11.7   0:04 java
13993 root       0   0 63956  59M 19440 S      60  0.0 11.7   0:01 java
13994 root       0   0 63956  59M 19440 S      60  0.0 11.7   0:38 java
13996 root       0   0 63956  59M 19440 S      60  0.0 11.7   0:00 java
.
.
.

Please let me. This will solve my huge problem

Sincerely,
Richard


---------------------------------------------------------------------
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