[us...@httpd] IE failed to cache images on subdomain if Vary header is sent

2009-04-19 Thread howard chen
Hello,

Since I am using mod_deflate to compress resources (js, html)

But it also give me Vary: Host for images resources, this is okay.

But I found that now if the images is served from subdomain, it will
not be cached by IE7 (by looking at the Temporary Internet Files
folder)

Now I have no method but to unset the vary , e.g.

Header unset Vary

Then caching is back for IE7.

Any better or correct method?


Thanks.

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



[us...@httpd] Empty error_log

2009-04-19 Thread Martijn de Munnik

Hi,

I'm running Apache 2.2.11 on Solaris 10_x86. I'm using webmin/ 
virtualmin to configure virtual hosts and there created fine. But al  
the error_logs are empty. Below is an example of the log lines in a  
config file of a virtualhost.


ErrorLog "|/etc/webmin/virtual-server/writelogs.pl 121992855025460 / 
home/massageafspraak.nl/logs/error_log"
CustomLog "|/etc/webmin/virtual-server/writelogs.pl 121992855025460 / 
home/massageafspraak.nl/logs/access_log" combined


When I restart the server the error_log file is created when it does  
not exist. But it stays empty forever, even I force an internal server  
error or a 404. The access_log works as aspected. I also tried to use  
the ErrorLog without the pipe, that doesn't work either. Permissions  
on both files are the same:


-rw-rw   1 massageafspraak.nl nobody168075 Sep 19  2008  
access_log
-rw-rw   1 massageafspraak.nl nobody 0 Apr  6 15:59  
error_log


Apache is running as nobody:

  nobody 12520  9559   0 15:14:43 ?   0:00 /opt/csw/apache2/ 
sbin/httpd -k start -DSSL


and the user nobody has the primary group nobody.

When I restart apache these lines appear in the error_log of the  
server (/var/opt/csw/apache2/log/error_log)


[Sun Apr 19 15:20:06 2009] [notice] suEXEC mechanism enabled  
(wrapper: /opt/csw/apache2/sbin/suexec)
[Sun Apr 19 15:20:11 2009] [notice] FastCGI: wrapper mechanism enabled  
(wrapper: /opt/csw/apache2/sbin/suexec)
[Sun Apr 19 15:20:11 2009] [notice] FastCGI: process manager  
initialized (pid 14175)
[Sun Apr 19 15:20:11 2009] [notice] Digest: generating secret for  
digest authentication ...

[Sun Apr 19 15:20:11 2009] [notice] Digest: done
[Sun Apr 19 15:20:11 2009] [notice] mod_python: Creating 8 session  
mutexes based on 256 max processes and 0 max threads.
[Sun Apr 19 15:20:11 2009] [notice] mod_python: using mutex_directory / 
tmp
[Sun Apr 19 15:20:11 2009] [notice] Apache/2.2.11 (Unix) mod_fastcgi/ 
2.4.2 DAV/2 SVN/1.4.5 mod_ssl/2.2.11 OpenSSL/0.9.8g mod_python/3.3.1  
Python/2.5.1 mod_perl/2.0.3 Perl/v5.8.8 configured -- resuming normal  
operations
[Sun Apr 19 15:20:11 2009] [warn] FastCGI: (dynamic) server "/opt/csw/ 
apache2/share/htdocs/suexec/loopbaankamer.nl/php5-cgi" (uid 1035, gid  
1043) started (pid 14182)
[Sun Apr 19 15:20:27 2009] [warn] FastCGI: (dynamic) server "/opt/csw/ 
apache2/share/htdocs/suexec/noordzuidbevrijdingsfestival.nl/php5- 
cgi" (uid 1071, gid 1066) started (pid 14198)
[Sun Apr 19 15:20:27 2009] [warn] FastCGI: (dynamic) server "/opt/csw/ 
apache2/share/htdocs/suexec/boerplay.com/php5-cgi" (uid 1027, gid  
1035) started (pid 14199)


I really don't know why the error_logs of the virtualhosts stay empty.  
I don't have any clues where to look for :(


Any ideas?

regards,
Martijn

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



Re: [us...@httpd] Empty error_log

2009-04-19 Thread Eric Covener
On Sun, Apr 19, 2009 at 9:23 AM, Martijn de Munnik  wrote:
> ErrorLog "|/etc/webmin/virtual-server/writelogs.pl 121992855025460
> /home/massageafspraak.nl/logs/error_log"
> CustomLog "|/etc/webmin/virtual-server/writelogs.pl 121992855025460
> /home/massageafspraak.nl/logs/access_log" combined

> I really don't know why the error_logs of the virtualhosts stay empty. I
> don't have any clues where to look for :(

Try eliminating webmin's piped logger.

-- 
Eric Covener
cove...@gmail.com

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



[us...@httpd] problem on jmeter installation

2009-04-19 Thread h iroshan
Hi,

I need to test performance of the Apache 2.2 by Jmeter.I try to
install Jmeter on Linux(ubuntu 8.10), I used the
jakarta-jmeter-2.3.2.tgz version, untar it
and execute it with command jmeter, jmeter pop up a window but nothing on
it??


Re: [us...@httpd] problem on jmeter installation

2009-04-19 Thread Eric Covener
On Sun, Apr 19, 2009 at 1:20 PM, h iroshan  wrote:
> Hi,
>
> I need to test performance of the Apache 2.2 by Jmeter.I try to install
> Jmeter on Linux(ubuntu 8.10), I used the jakarta-jmeter-2.3.2.tgz version,
> untar it
> and execute it with command jmeter, jmeter pop up a window but nothing on

This is the Apache HTTP Server users list, not a jmeter list.

-- 
Eric Covener
cove...@gmail.com

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



[us...@httpd] Redirecting request from HTTP to HTTPS

2009-04-19 Thread Tarun Narang
Hi,

 

How could I redirect all my requests for http to https ?

 

Our application was running on oracle application server having inbuilt
Apache HTTP server 1.3. It was recommended to us to upgrade the modules 

of apache (like SSL, open SSL, perl and others) without upgrade the
oracle application server. 

Given the above situation, it was not possible to upgrade the apache
modules without upgrade the oracle application server.

Then We decided to introduce a proxy server (Apache 2.2) 

which will receive all the incoming requests and forward them to the
existing Oracle Apache Server 1.3. 

To do these changes, SSL was implemented on port 4430 and non SSL
request to be recieved at 8080 for Apache 2.2. 

Now Apache Server 2.2 receive all the requests on port 8080 and redirect
the requests to the existing server 1.3

(which is reconfigured to run on a new port 8082 and SSL port 443).

 

Now I am able to redirect all my non SSL requests for port 8080 to 8082
by putting the below entry in httpd.conf file:

 

LoadModule proxy_module modules/mod_proxy.so

ProxyRequests Off



Order deny,allow

Allow from all



 

ProxyPass /hsbc http://localhost:8082/hsbc

 

Now when I do the request from browser like this -
http://localhost:8080/hsbc it redirects it to
http://localhost:8082/hsbc. 

However, I have to redirect the non SSL request to SSL request, like
when the user requests for http://localhost:8080/hsbc it should be
redirected to 

https://localhost:4430/hsbc which should redirect it to
https://localhost:443/hsbc. We cannot directly redirect the SSL requests
to Apache 1.3

because we have to use the upgraded modules present at apache 2.2 and
not 1.3.

 

Please help how could I redirect the http request to https as mentioned
aforesaid.

 

Regards,

Tarun Narang

 

CONFIDENTIALITY NOTICE

This message and any attachment are confidential and may also be
privileged. If you are not the intended recipient of this e-mail you may
not copy, forward, disclose or otherwise use it or any part of it in any
form whatsoever. If you are not the intended recipient please telephone
or e-mail the sender and delete this message and any attachment from
your system.

 



[us...@httpd] How to define constant in apache configuration?

2009-04-19 Thread Alfonsas Stonis
Hi,

I want to define constant that I will use latter in several places.
Old documentation says that there was Define statement (or similar)

Define myUrl "ldap://localhost";
...
AuthLDAPUrl $myUrl

However, there is nothing in current documentation (I was not able to
find the same or similar module).

Can you tell me how to do it with apache2?

I tried to search on web, but found only dozens of the same question
(no answers). I tried:

SetEnv myUrl "ldap://localhost";
...
AuthLDAPUrl $myUrl

Did not worked too.

Thanks,
Alfas


Re: [us...@httpd] Redirecting request from HTTP to HTTPS

2009-04-19 Thread Scott Gifford
"Tarun Narang"  writes:

> How could I redirect all my requests for http to https ?

Hello Tarun,

We use RedirectMatch for this.  See:

http://httpd.apache.org/docs/2.0/mod/mod_alias.html#redirectmatch

> However, I have to redirect the non SSL request to SSL request, like when the
> user requests for http://localhost:8080/hsbc it should be redirected to

Try something like this:

RedirectMatch ^/hsbc(.*)$ https://localhost:4430/hsbc$1

I hope this helps, I'm not sure I understood exactly what you were
asking in your message.

Good luck!

Scott.

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