[us...@httpd] question on apache rewrite

2009-01-27 Thread Charles Li
I have setup my rewrite with the following: RewriteCond %{HTTP_HOST} ^.*serverINTG.*$ [NC] When I type in http://serverINTG.com/index, it get translated back to the real servername. But if I type in http://serverINTG.com/index/, with a slash, it stay with the alias. How do I make it stay with

Re: [EMAIL PROTECTED] redirect and hide the port number

2008-02-13 Thread Charles Li
--- Krist van Besien <[EMAIL PROTECTED]> wrote: > On Feb 13, 2008 3:44 PM, Charles Li > <[EMAIL PROTECTED]> wrote: > > > So, all I have to change is the R to a P? > > Is this correct: > > > > RewriteEngine on > > RewriteCond %{

Re: [EMAIL PROTECTED] redirect and hide the port number

2008-02-13 Thread Charles Li
--- Krist van Besien <[EMAIL PROTECTED]> wrote: > On Feb 12, 2008 8:48 PM, Charles Li > <[EMAIL PROTECTED]> wrote: > > I am trying to use rewrite to direct selected > traffic > > from the HTTP server (oracle iAS) to a oc4j > container > > on the same

[EMAIL PROTECTED] help with redirect base on context

2008-02-12 Thread Charles Li
I would like to redirect base on the context: When user access my server with the following: http://server/outside I would like to redirect them to another site. I try the following, but did not get it work. RewriteEngine on RewriteCond %{REQUEST_URI} ^/outside$ [NC] RewriteRule ^

[EMAIL PROTECTED] redirect and hide the port number

2008-02-12 Thread Charles Li
/basic.jsp [R] When users access http://storePre.com, they would be directed to http://server:/basic.jsp. I would like it to be http://server/basic.jsp. Is it possible? Thanks, Charles Li Looking for

[EMAIL PROTECTED] http rewrite help

2007-07-12 Thread Charles Li
Hi, I am using the following rewrite rule to redirect a alias to a specific application: RewriteCond %{HTTP_HOST} ^.*survey.*$ [NC] RewriteRule ^/$ http://survey.store.com.us/Survey/$1 [R] server name is company.store.com alias is survey.store.com When users click on the survey url, they are di

[EMAIL PROTECTED] content of httpd.conf file

2006-04-20 Thread Charles Li
, this line is so huge, it prevents vi opening the httpd.conf file. Anyone know why its so huge?  Why do it keep on growing? What is the purpose of this line?Thanks, Charles Li__Do You Yahoo!?Tired of spam? Yahoo! Mail has the best spam

[EMAIL PROTECTED] KeepAliveTimeout

2006-03-30 Thread Charles Li
We have deployed j2ee application on the Oracle App Server, which uses the Apache server. I see "IOException: Broken pipe" errors in the application log.  The KeepAliveTimeout is set to the default of 15 seconds. Could the broken pipe error be caused by the short KeepAliveTimeout setting of 15 sec

[EMAIL PROTECTED] port switching from web cache and http

2006-03-02 Thread Charles Li
We use Oracle Application Server, which uses HTTP.  It has a web cache component, which sits on top of the HTTP.  We have observe that when we access HTTP through the web cache, say port 7000, it sometimes goes back to the HTTP port, say port 7001.  How do I tell it to stay at the web cache port? 

[users@httpd] URL-rewrite

2005-06-20 Thread Charles Li
I have virtual host setup with HTTP server. I would like to user URL rewrite. I was told that I need to add the rewrite rules in each virtual host. Is this true, or should I be able to inherit from the parent with the rewriteoption? Thanks, Charles Li