Hi,
On Mon, Apr 9, 2012 at 7:01 PM, Eric Covener wrote:
> mod_deflate only does one kind of encoding, but I couldn't tell you if
> it's actually more gzip then deflate or vice versa wrt 2616.
>
I am already using
AddOutputFilterByType DEFLATE text/html text/plain text/xml
So I suppose it is
No matter how I test using different value of Accept-Encoding, it
always returned as gzip.
curl -I -H 'Accept-Encoding: gzip' http://www.example.com
Content-Encoding: gzip
curl -I -H 'Accept-Encoding: deflate' http://www.example.com
Content-Encoding: gzip
Seems the documentation is confusing
Thanks.
On Wed, Mar 17, 2010 at 11:13 PM, Mark Watts wrote:
> If you are hosting the same site on two machines, and load-balancing
> between the two, then yes; assuming your Certificate is licensed for two
> machines, you can use the same Key/Certificate pair on both machines.
>
> You would *not
Hi,
On Wed, Mar 17, 2010 at 10:41 PM, Philip Wigg wrote:
> You would have generated a public key and a private key initially
> (they're a pair) because your public key is needed to generate your
> CSR (Certificate Signing Request).
>
Thanks for your link.
So it seems that now I missed the priva
I have a .crt file and it is issued by a CA.
By looking at the .crt file, the Private Key is not included in the .crt file.
My question: How can I generate the Private Key so I can use the
directive SSLCertificateKeyFile?
reference:
http://httpd.apache.org/docs/2.0/mod/mod_ssl.html#sslcertifica
Hello,
Why in some Apache httpd, JavaScript is sent by Content Type =
application/x-javascript, but some httpd is application/javascript?
Both are 2.2.
Thanks.
-
The official User-To-User support forum of the Apache HTTP Serve
Hello,
> RewriteRule ^/test.php /test2.php [R=301,L]
>
> use this in ur redirection , it will redirect as you expected.
>
In fact, I can do it using the P flag (proxy).
But just to know if anything smater...
-
The official Us
Hello,
Consider rewrite rule as:
RewriteRule ^/test.php /test2.php [PT,L]
So when I access it via http://www.example.com/test.php
I want the field REQUEST_URI shown as test2.php, is it possible?
THanks.
-
The official Us
A simple rewrite rule:
RewriteRule ^/(.*) /index.php?q=test1 [QSA]
RewriteRule ^/test2 /index.php?q=test2 [QSA,L]
The above rules rewrite everything to "q=test1", even I enter the URL
= http://www.example.com/test2
How to do the following...
=> Rewrite all url, except /test2, with the que
Hello,
On Wed, Jul 15, 2009 at 1:20 AM, J. Greenlees wrote:
>
> Yup, the server puts the trailing slash on the url when it responds to
> the browser request.
> If you put the trailing slash on the document root, then the server
> REQUIRES it.
> this makes http://example.com fail to resolve, the ty
In the document: http://httpd.apache.org/docs/2.0/mod/core.html#documentroot
It said
>> The DocumentRoot should be specified without a trailing slash.
However, even I end with a trailing slash, it is ok.
Any other impact? (as the document only told you not to, without reason)
Thanks.
I am using Ubuntu 9.04, using the build in vhost management scripts
such as a2ensite/a2dissite.
I am also using namebased virtualhost. (NameVirtualHost *:80), which I
have serveral vhost scripts under /etc/apache2/sites-available, in the
format such as...
DocumentRoot ...
ServerName www.example
Hello,
Is it possible to trace/debug how httpd is handling a request?
e.g. which module is handling stuff and how much time they are spending on.
Thanks.
-
The official User-To-User support forum of the Apache HTTP Server Proj
Hi,
On Wed, Apr 29, 2009 at 2:55 PM, André Warnier wrote:
> howard chen wrote:
>> negotiation <===
Tested, no.
So quite confusing...
-
The official User-To-User support forum of the Apache HTTP Server Proje
I am using apache2.2 on ubuntu 8.10, even I have disabled mod_deflate,
my apache is keep sending out Vary: Host.
Any other module or config will lead to this?
I have the following modules enabled:
alias
auth_basic
authn_file
authz_default
authz_groupfile
authz_host
authz_user
autoindex
cgi
dir
en
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 met
Hey
On Fri, Apr 17, 2009 at 4:34 PM, Nick Kew wrote:
> That probably means mod_deflate reduced the response sufficiently
> to buffer all of it and set a Content-Length header. Chunked encoding
> is only useful where there's no Content-Length set.
>
Becuase I have exactly the "same php program
Hello,
Just want to ask if possible to set mod_deflate + chunked encoding
together, similar to
yahoo.com, e.g.
Transfer-Encoding=chunked
Content-Encoding=gzip
Currently I found if I set mod_deflate to process my php program, then
it will skip Transfer-Encoding=chunked
Any idea?
Thanks.
Hi
On Sat, Mar 7, 2009 at 8:19 PM, Eric Covener wrote:
> On Sat, Mar 7, 2009 at 4:28 AM, howard chen wrote:
> There's only an advantage when you don't know the length ahead of
> time, or your processing it in such a way that the length will change.
> When it's
Hello,
When viewing Yahoo! main page, it is encoded as "compressed/chunked",
I know how to use mod_gzip to enable to compression, but how to use
"chunked encoding"? (In fact, what is the advangage?)
Thanks.
-
The official User-T
I know how to use ab to benchmark a particular url, but I think it
would be more useful to use my previous access log to generate the
load, so I can test the performance in a more scientific way...so are
there any tools recommended?
Thanks.
Hello,
Consider currently I am using mod_expire to set a HTML file to 15
minutes expire.
The file change quite frequently, sometime maybe changed within 15
minutes so I want my user to see the change as soon as possible...
sometimes the file does not change even for 10 days!
So what expire value
On Thu, Feb 12, 2009 at 12:34 AM, Eric Covener wrote:
> Bizarre conclusion. Other interpreters are likely more
> thread-aware/thread-exploitative when not embedded in Apache, so
> they'd be less likely to casually link with non-threadsafe libraries.
>
Why? Since if mod_php has thread safety pro
Hello,
According to PHP install guide, it said...
http://hk.php.net/manual/en/faq.installation.php#faq.installation.apache2
PHP is glue. It is the glue used to build cool web applications by
sticking dozens of 3rd-party libraries together and making it all
appear as one
Hello,
I have a quite busy web server, so I use lsof to trace what
files/directory are actually using:
/usr/sbin/lsof
and I found SO MANY...
httpd 1745 web cwd DIR8,6 4096
8427988 /var/my_web_site/private
httpd 1747 web cwd DIR
Hello,
Just wonder why not many people using fastcgi in Apache, rather,
people tends to use mod_php, mod_perl, mod_python etc.
Seems fastcgi is more popular in Lighttpd, are there technical reason behind?
Thanks.
-
The official
Hello,
If I remember correctly, back to the old day when I use Apache 1.3x,
is it possible with mod_gzip, why this function is dropped in 2.x
mod_deflate?
http://httpd.apache.org/docs/2.2/mod/mod_deflate.html
Don't you guy think compressing a static CSS or JS on-the-fly is wasteful?
Any idea?
Hello,
My apache server will almost shutdown once every day, at an unexpected
time, for unknown reason.
So, I have setup a cron job to check in every minute, if process done
away, then restart the apache.
Howevery, this does not solve my problem. I have look into the access
and error log, still c
Thanks.
On Wed, Oct 15, 2008 at 7:19 PM, Eric Covener <[EMAIL PROTECTED]> wrote:
> Only where they overlap and it's before 2.2, because it's undefined as
> to which will run first.
>
> In 1.3 you might be able to control it by AddModule ordering, but in
> 2.0 it may differ from system to system an
Hello,
On Wed, Oct 15, 2008 at 6:49 PM, Eric Covener <[EMAIL PROTECTED]> wrote:
> On Wed, Oct 15, 2008 at 4:47 AM, howard chen <[EMAIL PROTECTED]> wrote:
>>
>> Seems that Rewrite is done after the proxy? How to control the order then?
>
> in 2.2, rewrite will
Hello ,
I have the following config in httpd.conf:
my site is http://www.example.com (port 80)
==
RewriteEngine On
RewriteRule ^/$/cgi-bin/index.cgi
ProxyPass /cgi-bin/ http://www.example.com:9000/cgi-bin/
ProxyPassReverse /cgi-bin/ http://www.example.c
Hello,
Thanks for you valuable comments...
On Fri, Oct 3, 2008 at 4:24 AM, André Warnier <[EMAIL PROTECTED]> wrote:
> I have not verified, but maybe you are interpreting the rules of caching
> a bit more extensively than what the HTTP RFCs really say.
> It may be that, by using your various HTTP
Hello,
In the httpd.conf, I have already set all the images files to expire
+10 years from now, using mod_expire.
Example response:
=
Status=OK - 200
Date=Thu, 02 Oct 2008 16:23:15 GMT
Server=Apache
Last-Modified=Thu, 27 Mar 2008 08:02:14 GMT
Accept-Ranges=bytes
Content-Length=3945
Ca
Hello,
Is it possible to do the following, just using sort of rewrite rules
in httpd.conf,
E.g.http://www.example.com/foo
ALGO:
If a file foo.html exist
rewrite to target.html
Else
404 not found
The foo is just a dynamic variables...
Thanks.
Hi
On Thu, Sep 25, 2008 at 11:03 PM, Eric Covener <[EMAIL PROTECTED]> wrote:
> no-keepalive is the environment variable you want to set
>
> http://httpd.apache.org/docs/2.2/env.html#special
Great Thanks.
-
The official User-To-
Currently I have an runtime environment variable to tell if a client
want keepalive or not, specified by their cookie value,
e.g.
RewriteCond %{HTTP_COOKIE} ^.*NO_KEEPALIVE=TRUE.*$
RewriteRule ^.*$ - [E=NO_KEEPALIVE:1]
Is it possible, based on the environment variable to runtime disable
the HTT
Hello,
I am running Apache HTTPD 1.3.37 with mod_php, when using the top
command, I see:
PID USER PR NI VIRT RES SHR S %CPU %MEMTIME+ COMMAND
12584 web 15 0 142m 12m 9176 S8 0.3 2:07.01 httpd
12586 web 15 0 142m 12m 9168 S8 0.3 2:08.85 httpd
12589
On Wed, Jun 4, 2008 at 1:16 AM, Joshua Slive <[EMAIL PROTECTED]> wrote:
> On Tue, Jun 3, 2008 at 1:09 PM, howard chen <[EMAIL PROTECTED]> wrote:
>
> Yes, if by "embedded" you mean "running in the same process/thread
> space with direct access to the apache AP
It is probably true that mod_perl exposes
> more of the API than any other similar module.
>
> Joshua.
>
Yes, this is the point which I don't understand.
Since Perl is embedded into Apache, so is mod_php mean php interpreter
also embedded into Apache into the apache?
Howard
--
On Wed, Jun 4, 2008 at 12:24 AM, Matus UHLAR - fantomas
<[EMAIL PROTECTED]> wrote:
>
> - mod_php interprets PHP files and sends them to client
>
>
> If you want apache to parse perl scripts in the same way as mod_php does
> with php scripts, you need to install an apache module that will do that.
>
On Tue, Jun 3, 2008 at 11:28 PM, Stusynski, Dan <[EMAIL PROTECTED]> wrote:
> To rotate the logs you can use Apaches piped rotatelogs:
>
> http://httpd.apache.org/docs/2.2/programs/rotatelogs.html
>
> Put something like the following in your httpd.conf (or whereever your
> logging is define), 'Cust
I mean the theory behind.
People saying that mod_perl is closer to the Apache core,
as it can be used to write Apache module, but in fact, what are their
difference in term of processing model?
Howard
-
The official User-To-User
Hi,
This is my current setup in using squid3 as reverse proxy in front of apache:
browser (e.g. 202.182.201.3) <> squid3 stable6 <> apache 1.3.37 (PHP)
My PHP will get the user IP by HTTP_X_FORWARDED_FOR pass by squid.
Now the problem is:
1. if user send a request already contains head
Hi all,
On Wed, Apr 16, 2008 at 9:21 PM, Narendra Verma
<[EMAIL PROTECTED]> wrote:
> Hi Howard,
> 1. Be sure to load following module
>
> LoadModule headers_module modules/mod_headers.so
>
> 2. Add following Header directive at the last of httpd.conf file.
>
> Header add Cache-Control ma
Hi,
On Wed, Apr 16, 2008 at 3:53 PM, Nick Kew <[EMAIL PROTECTED]> wrote:
>
> mod_cache.
>
>
The problem with mod_cache is when user update a page, how do I tell
the cache should be removed from mod_cache?
Currently I stored the cache in local file system and it can be easily
unlink() to force
Hi,
Are there any existing method for Apache which can do the followings?
E.g.
When a user first go to a page, www.example.com/article.php?id=123, my
PHP problem will
generated a static copy of HTML under a temp folder (e.g.
/tmp/article/md5(123).html), so following requests to the
page will not
On Feb 18, 2008 11:22 PM, howard chen <[EMAIL PROTECTED]> wrote:
>
> On Mon, Feb 18, 2008 at 10:47 PM, Nick Kew <[EMAIL PROTECTED]> wrote:
> > On Mon, 18 Feb 2008 15:49:09 +0800
> >
> > "howard chen"
On Mon, Feb 18, 2008 at 10:47 PM, Nick Kew <[EMAIL PROTECTED]> wrote:
> On Mon, 18 Feb 2008 15:49:09 +0800
>
> "howard chen" <[EMAIL PROTECTED]> wrote:
>
>
> > SSI
> > ===
> >
> >
> >
> >
> >
> >
&g
On Mon, Feb 18, 2008 at 9:03 PM, Vincent Bray <[EMAIL PROTECTED]> wrote:
> On 18/02/2008, howard chen <[EMAIL PROTECTED]> wrote:
> > I am running Apache/2.2.6 on Windows XP, testing on a very simple
> > include testes, e.g.
> >
> > SSI
> > ===
Hello,
I am running Apache/2.2.6 on Windows XP, testing on a very simple
include testes, e.g.
SSI
===
PHP
===
I was surprised that PHP is faster, i.e.
ab -n 2000 -c 10 http://localhost/benchmark.php => 99 reqs/sec
ab -n 2000 -c 10 http://localhost/benchmark.shtml => 61 reqs/sec
m
50 matches
Mail list logo