Mod_cache Does Not Cache The Homepage But The Rest Is Cached

Mar 23, 2009

As many of you may know mod_cache does not cache directory index
files, this can be fixed with mod_rewrite but the index page of the domain (the homepage) seems to be impossible to cache it. The following rules cache the folders but not the homedir (this means that www.thedomain.com/folder is cached but www.thedomain.com is not):
DirectorySlash Off
RewriteEngine On
RewriteCond %{REQUEST_URI} ([^.*])
RewriteCond "%{DOCUMENT_ROOT}%{REQUEST_URI}/index.htm" -f
RewriteRule "^(.*)$" "$1/index.htm" [NC,L]
RewriteCond %{REQUEST_URI} ^([^.*])$
RewriteCond "%{DOCUMENT_ROOT}%{REQUEST_URI}/index.html" -f
RewriteRule "^(.*)$" "$1/index.html" [NC,L]
RewriteCond %{REQUEST_URI} ^([^.*])$
RewriteCond "%{DOCUMENT_ROOT}%{REQUEST_URI}/index.php" -f
RewriteRule "^(.*)$" "$1/index.php" [NC,L]

Note that DirectorySlash should be off (or mod_dir not loaded) in
order to work also with URL that end with no slash

As I said before this will work for any folder but it does not work for public homedir
directory. So when a user visit [url] it does not
work (unless you type the name of the index file: [url]

For me it is critical to make this work in someway, the index homepage
is the main page that needs to be cached in my case (and in many
others).

Do you know any solution for this? I found the first message about
this in the Internet in 2002 but I'm using last version of apache
httpd and still does not work.

If you have no idea about how to fix it, maybe you know some other easy alternative. Lighttpd + mod_cache + mod_deflate are not compatible: "mod_cache can be used in conjunction with other lighttpd plugins (except mod_deflate and mod_secdownload)"

View 0 Replies


ADVERTISEMENT

Does Mod_cache Use Real Disk Space Or Real Memory To Locate "cache"?

May 18, 2009

does mod_cache use real disk space or real memory to locate "cache"? I mean if i use mod_cache, does my vps/server will use more disk space/memory?

Quote:

mod_cache implements an RFC 2616 compliant HTTP content cache that can be used to cache either local or proxied content. mod_cache requires the services of one or more storage management modules. Two storage management modules are included in the base Apache distribution:

View 2 Replies View Related

Mod_cache And Big Site

Feb 6, 2008

We run a site with more than 200.000 pages. We're thinking to use mod_cache to cache pages(because of big traffic) but I'm not sure it's a good idea.

I think it will slow down the server to read from such big cache.

View 1 Replies View Related

Forward One Address, Fail The Rest?

Jan 6, 2007

I have a dedicated server with cPanel/WHM and on it is a site with for example user name: domain

The main email user name is of course domain I'd also like to forward admin@domainname.com to the domain user account then any other emails would fail. So say if someone sent an email to sales@domainname.com it would fail unless of course I had an account setup.

Currently I can get admin@domainname.com to foward to the main account box, however in doing so it will also forward everything else.

Is this possible?

View 1 Replies View Related

NGinx Vs Apache Vs Litespeed Vs The Rest

Apr 20, 2009

According to the latest trend and technological advances, which server software should people go with from the very beginning. Which do you recommend as on today?

btw anybody has experience with all 3 (apache/nginx/litespeed) webservers?

I have -

On a common shared environment, I started off with Apache - was fine until some load started generating and it became crapache.

Then litespeed - Totally awesome, could seriously feel the difference, but its cost is something not everybody can afford.

Then nginx - Very nice, felt like litespeed only, the only difference was it got quite complex in configuring it at a later stage BUT its free'ness made me love it badly.

View 4 Replies View Related

Apache :: Use Disk To Enhance For Page Cache And Database Cache For Disk

Apr 24, 2013

I use apache with CentOS VPS hosting for my blog. I only host one blog in this VPS account. I have 1.5GB RAM and I have 7, 500 page preview per day. My page loading time is 2-3 seconds (according to the pingdom tool).

I want to know what is the best performance (faster web page loading) W3 Total cache option for VPS hosting blog. Currently I use Disk to enhance for page cache and database cache for disk.

View 2 Replies View Related

Cached Memory

Aug 24, 2007

I have a dedicated server with 1gb ram, now I see 468.02 MB used for Cached memory, this is the first time. Why could this be? I have not changed any settings except for turning off safe mode for an account.

View 6 Replies View Related

The New VectorLevel Homepage Rocks

Mar 30, 2009

I know the new page has been around for quite a while but It's really cool and easy on the Eyes,the color combination is just Right In my Opinion.

View 7 Replies View Related

Preview Homepage Without Changing NS

May 17, 2009

How can i preview my homepage without changing my nameserver?

It was something like: ....

View 11 Replies View Related

Users With Old SSL Certificates Cached

May 28, 2009

We renewed our SSL certificate about two weeks before it expired, and pushed the new one to our servers.

All has worked well, but a very small percentage of users are complaining that they're seeing errors that the certificate is expired.

Is there some browser or something that would cache the old certificate client-side even past its expiry?

View 2 Replies View Related

Cpanel Page On The Homepage

Jul 6, 2007

when i create an account, i see cpanel page on the homepage.
I checked httpd.conf and saw these <VirtualHost 72.233.37.131>
ServerAlias www.xxxxxx.org

When i change this line as 10.0.0.131 the page opening okey.

when i change main share virtual host ip to 10.0.0.131 in WHM, next creating
account dns ips added 10.0.0.131 so the site no shown

How can we solve this problem ?

my dedicated in private rack and using cisco firewall

View 2 Replies View Related

Eaccelerator Cached Scripts

Feb 8, 2007

Using version 0.9.5 with the default settings. The cache fills up the shared memory in less than a day. I noticed the cached script is stuck at 176, what happens after this? Will it cache content to disk in the temporary folder (/tmp/eaccelerator/) when the shared memory is full?

View 0 Replies View Related

Error Only In The *SkaDate Homepage *

Nov 21, 2007

dream-date.nl/dream/

i Installation SkaDate 6 script

and now i have many error only in the *SkaDate Homepage *

and all files is work fine

View 6 Replies View Related

Pronet Give Their Homepage A Revamp

Jun 1, 2009

The'v changed their homepage design and this time I personally think that the old design was a bit better than the new one,This one might work In terms of performance but I personally think that the new design might not work out pretty well.

View 14 Replies View Related

Cat /proc/meminfo Cached Value Too High

May 26, 2009

I have bough a dedicated server with 2GB Ram, i have installed Hypervm and so surpise when my server is using most of my memory.

I type cat /proc/meminfo
[root@srv ~]# cat /proc/meminfo
MemTotal: 1784832 kB
MemFree: 47576 kB
Buffers: 62976 kB
Cached: 1454172 kB
SwapCached: 84 kB
Active: 251024 kB
Inactive: 1347412 kB
HighTotal: 0 kB
HighFree: 0 kB
LowTotal: 1784832 kB
LowFree: 47576 kB
SwapTotal: 2097144 kB
SwapFree: 2096988 kB
Dirty: 96 kB
Writeback: 0 kB
AnonPages: 81324 kB
Mapped: 26076 kB
Slab: 62488 kB
PageTables: 8844 kB
NFS_Unstable: 0 kB
Bounce: 0 kB
CommitLimit: 2989560 kB
Committed_AS: 416152 kB
VmallocTotal: 34359738367 kB
VmallocUsed: 2252 kB
VmallocChunk: 34359735799 kB

Is this normal when Cached: 1454172 kB?

View 3 Replies View Related

Redirect Cached Search Engine To New Dir

Aug 7, 2008

I recently reorganized my music site, putting my songs in their own directory (off of public_html), and now a couple of search engines are generating a boatload of 404 errors.

Can I redirect the file requests to the new location and, if so, how?

View 3 Replies View Related

Apache :: Secure Page Can Be Cached

Dec 18, 2013

When running OWASP ZAP web security tool, I get the following flag: Secure page can be cached in browser. Cache control is not set in HTTP header nor HTML header. Sensitive content can be recovered from browser storage.

I was surprised since i had the no cache header in both html code and httpd header.

After investigating the flag, i noticed that the response was a generic 302 found error response from Apach (located in apache/src/modules/http/http_protocol.c).

I have added a patch to code when adding the cache-control & pragma html headers with no-cache - and that had solved the security flag (patch attached).

full response given:
header:
HTTP/1.1 302 Found
Date: Sat, 30 Nov 2013 10:44:40 GMT
Server: Apache
X-Frame-Options: DENY
Location: https://*****
Content-Length: 376
Content-Type: text/html; charset=iso-8859-1

body:
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>302 Found</title>
</head><body>
<h1>Found</h1>
<p>The document has moved <a href="https://******">here</a>.</p>
<hr>
<address>Apache Server at 10.209.0.81 Port 443</address>
</body></html>

In conclusion:
Issue is "Secure page can be cached in browser." (found by owasp zap) for https page response "302 Found" from Apache.

View 1 Replies View Related

Apache :: Redirect Any Specific Page Of Site To Homepage

Feb 19, 2015

How do i redirect URL: example.com/page1 to example.com..i want to redirect any specific page of my site to homepage.

View 3 Replies View Related

How To Use Appache (HTTPD) With LXAdmin? Only Apache Homepage Shows, Not My Pages

Apr 30, 2009

I've got a VPS with XenSmart, and I'm running CentOS. Recently, I have been needing to redirect my users to 'www.', since if they don't put the 'www.' in front of the domain the vB forum doesn't run properly. Though, to do this, I edited the .htaccess file and was using the 'mod_rewrite' command, but this requires Apache.

So, on my VPS I've installed Apache, and set LXAdmin to use 'httpd' instead of 'lighttpd', though now my web pages wont show up and all I've got is the default Apache web page:

[url]

How am I able to use Apache (HTTPD) and have it load my current forum? My current forums hosted in:

/home/admin/public_html/vb

View 1 Replies View Related

DNS Cache

Apr 17, 2009

I have moved my domain out of hostgator like a month ago..

[url]

The whois shows my new nameservers and IP

Why is my page being redirected to hostgator suspended page.

My domain is not even registered with them

the domain is nuzil.com

any reviews about that.

View 14 Replies View Related

Cpu Cache?

Apr 28, 2008

the NOCONA and IRWINDALE are old cpu,

i find the main difference of them is L2 cache (1MA2M),

i want to ask what service need more L2 cache?

for example:a lot of db usage? or httpd? or?

View 3 Replies View Related

Dst Cache Overflow

May 17, 2009

I guess I have finally seen the adverse effects of raising the conntrack table max too high.

May 15 09:13:52 cp4 kernel: [6430723.486626] dst cache overflow
May 15 09:13:52 cp4 kernel: [6430723.622616] dst cache overflow
May 15 09:13:56 cp4 kernel: [6430727.562862] dst cache overflow
May 15 09:13:56 cp4 kernel: [6430727.698868] dst cache overflow
May 15 09:13:56 cp4 kernel: [6430727.844221] dst cache overflow
May 15 09:13:56 cp4 kernel: [6430727.991276] dst cache overflow
May 15 09:13:56 cp4 kernel: [6430728.131962] dst cache overflow

I got tons of these during an attack today. I have googled around for a lil while and not have been able to find any useful info on raising this cache level up. Would anyone here know how to do this?

I see no sysctl settings or anything of that nature for it.

View 0 Replies View Related

Page Cache

Jul 25, 2009

I'm running shared hosting and would like to keep the amount kept in cache down so that there is always more memory free... how would i go about doing that?

are these values good?

echo 20 > /proc/sys/vm/dirty_background_ratio

echo 60 > /proc/sys/vm/dirty_ratio

View 1 Replies View Related

Server Cache

Oct 1, 2009

I have reseller account from small web service company.

they are great and better than the famous company.

but I have one problem. I have personal blog, some time I don't see the new comment, also my visitor see the comment before 4 days ago only.

and there is vb forum, some times new member can't login and only you see the old topic, and some times you see everything ok and up to date.

me and all my visitor have the same problem and that can't be from internet service provider because they are from several country.

I had such problem before 4 years and it was because server Cache.

I didn't name the company because they are great and I don't want to blame them before I know certainly what cause the problem.

View 6 Replies View Related

DNS Cache Poisoning

Mar 19, 2008

What tools do you use to check for DNS Cache Poisoning ? Is there any way it can be prevented and is the problem very prevalent?

View 1 Replies View Related

PHP And Cache-Control

Jan 27, 2008

I seem to have the opposite problem of what most people complain about... I'm using some custom-built PHP scripts, the output of which is not getting cached. I want the output cached, because it doesn't change often.

If it's relevant, I'm using ob_start() to serve up a GZIP-compressed page.

I start off with a header("Cache-Control: maxage=3600, must-revalidate"). Yes, it's first, and yes, it's showing up properly in the browser.

However, requesting the page again returns an HTTP 200, not the 304 I'm expecting. It's pulling down the whole page again. It's not changing in between requests, and I'm simply visiting the URL again, not hitting Refresh. (Although it really shouldn't matter.)

View 1 Replies View Related

Mysql Cache On A Vps

Apr 22, 2007

[url]

has an article on mysql query cache.
It notes that in the mysql config file, having

query-cache-type = 1

sets the mysql query cache.

In mysql I note that

SHOW VARIABLES LIKE '%query_cache%';

outputs

+-------------------+---------+
| Variable_name | Value |
+-------------------+---------+
| have_query_cache | YES |

which indicates that cache is set, but...

find . -name "my.cnf"

./usr/local/cpanel/whostmgr/my.cnf
./etc/my.cnf

shows only these

set-variable = max_connections=500
safe-show-database

So where has query cache been set?

At the server level?

If so, am I able to set the query_cache_size and if so, which path?

Anyone have any comments on their mysql optimization on a VPS?

View 0 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved