Probleme mit dem Cache

Irgendwelche Probleme mit XAMPP für Windows? Dann ist hier genau der richtige Ort um nachzufragen.

Probleme mit dem Cache

Postby gbg » 08. February 2007 15:48

Hallo allerseits,

ich bin leicht am verzweifeln, aber wahrscheinlich einfach nur zu dusselig.
Wir haben auf einem W2k3 Server den Apache installiert.

Die normale Website besteht aus "statischen" Seiten und Grafiken. Dynamische Anteile werden durch Abfrage eines "eigenen" Servers per XMLHttpRequest vom Client abgerufen und dort per JavaScript ausgewertet.

Soweit die Einleitung.

Solange ich kein Caching anschalte läuft alles stabil und Prima auch dauerhaft. Sobald ich das mod_cache.so in Betrieb nehme läuft der Apache einige zeit normal, nach einiger zeit allerdings bekomme ich im error.log lauter FILE NOT FOUND Meldungen und es werden konsequent keine Dateien mehr an die Clients gesendet .

Hier mal unsere httpd.conf (Kommentarzeilen sind gekürzt)
Code: Select all

# Listen 12.34.56.78:80
Listen 80
#
# Use name-based virtual hosting.
NameVirtualHost *:80
#
#
# ThreadsPerChild: constant number of worker threads in the server process
# MaxRequestsPerChild: maximum  number of requests a server process serves
ThreadsPerChild 250
MaxRequestsPerChild 0
PidFile c:/httpd2.2.pid
UseCanonicalName Off

#--->     LoadModule directives     <---#
#
LoadModule actions_module modules/mod_actions.so
LoadModule alias_module modules/mod_alias.so
LoadModule asis_module modules/mod_asis.so
LoadModule auth_basic_module modules/mod_auth_basic.so
# LoadModule auth_digest_module modules/mod_auth_digest.so
# LoadModule authn_anon_module modules/mod_authn_anon.so
# LoadModule authn_dbm_module modules/mod_authn_dbm.so
LoadModule authn_default_module modules/mod_authn_default.so
LoadModule authn_file_module modules/mod_authn_file.so
# LoadModule authz_dbm_module modules/mod_authz_dbm.so
LoadModule authz_default_module modules/mod_authz_default.so
LoadModule authz_groupfile_module modules/mod_authz_groupfile.so
LoadModule authz_host_module modules/mod_authz_host.so
LoadModule authz_user_module modules/mod_authz_user.so
LoadModule autoindex_module modules/mod_autoindex.so
# LoadModule cern_meta_module modules/mod_cern_meta.so
LoadModule cgi_module modules/mod_cgi.so
# LoadModule dav_module modules/mod_dav.so
# LoadModule dav_fs_module modules/mod_dav_fs.so
# LoadModule deflate_module modules/mod_deflate.so
LoadModule dir_module modules/mod_dir.so
LoadModule env_module modules/mod_env.so
# LoadModule expires_module modules/mod_expires.so
# LoadModule file_cache_module modules/mod_file_cache.so
# LoadModule headers_module modules/mod_headers.so
LoadModule imagemap_module modules/mod_imagemap.so
LoadModule include_module modules/mod_include.so
# LoadModule info_module modules/mod_info.so
LoadModule isapi_module modules/mod_isapi.so
LoadModule log_config_module modules/mod_log_config.so
LoadModule mime_module modules/mod_mime.so
# LoadModule mime_magic_module modules/mod_mime_magic.so
LoadModule proxy_module modules/mod_proxy.so
# LoadModule proxy_ajp_module modules/mod_proxy_ajp.so
# LoadModule proxy_balancer_module modules/mod_proxy_balancer.so
LoadModule proxy_connect_module modules/mod_proxy_connect.so
LoadModule proxy_http_module modules/mod_proxy_http.so
# LoadModule proxy_ftp_module modules/mod_proxy_ftp.so
LoadModule negotiation_module modules/mod_negotiation.so
# LoadModule rewrite_module modules/mod_rewrite.so
LoadModule setenvif_module modules/mod_setenvif.so
# LoadModule speling_module modules/mod_speling.so
#LoadModule status_module modules/mod_status.so
# LoadModule unique_id_module modules/mod_unique_id.so
LoadModule userdir_module modules/mod_userdir.so
# LoadModule usertrack_module modules/mod_usertrack.so
# LoadModule vhost_alias_module modules/mod_vhost_alias.so
# LoadModule ssl_module modules/mod_ssl.so
LoadModule cache_module modules/mod_cache.so

# 'Main' server configuration

Win32DisableAcceptEx On

#
# The following lines prevent .htaccess and .htpasswd files from being
# viewed by Web clients.
<FilesMatch "^\.ht">
  Order allow,deny
  Deny from all
</FilesMatch>
#
# ErrorLog: The location of the error log file.

ErrorLog "logs/error.log"

#
# LogLevel: Control the number of messages logged to the error_log.
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel alert
#

#
# DefaultType: the default MIME type the server will use for a document

DefaultType text/plain
#
# The mod_mime_magic module allows the server to use various hints from the
# contents of the file itself to determine its type.  The MIMEMagicFile
# directive tells the module where the hint definitions are located.
# MIMEMagicFile "conf/magic"


#
# EnableMMAP and EnableSendfile:
#
EnableMMAP off
EnableSendfile off

# Virtual hosts
  # our-server.de
  <VirtualHost *:80>
    ServerAdmin webmaster@our-server.de
    ServerName www.our-server.de
    DocumentRoot "c:/www/htdocs"
    <Directory "c:/www/htdocs">
      Options FollowSymLinks Indexes
      AllowOverride None
      Order allow,deny
      Allow from all
    </Directory>
    ErrorLog "c:/error_log"
    CustomLog c:/access_log common

    ProxyPass /cmd/ http://www.our-server.de:90/
    ProxyPassReverse /cmd/ http://www.our-server.de:90/
  </VirtualHost>


<Directory "/">
  #
  # Each directory to which Apache has access can be configured with respect
  # to which services and features are allowed and/or disabled in that
  # directory (and its subdirectories).
  #
  # First, we configure the "default" to be a very restrictive set of
  # features.
  Options FollowSymLinks
  Deny from all
  Order deny,allow
  AllowOverride None
  Satisfy all
</Directory>

<Directory "C:/Programme/Apache Software Foundation/Apache2.2/cgi-bin">
  Options None
  Deny from all
  Order allow,deny
  #
  # "C:/Programme/Apache Software Foundation/Apache2.2/cgi-bin" should be changed to whatever your ScriptAliased
  # CGI directory exists, if you have that configured.
  AllowOverride None
</Directory>

<IfModule mod_cache.c>
  # Cache Configuration
  LoadModule mem_cache_module modules/mod_mem_cache.so

  <IfModule mod_mem_cache.c>
    CacheEnable mem /
    CacheDisable /cmd
    MCacheSize 65536
    MCacheMaxObjectCount 8000
    MCacheMinObjectSize 0.01
    MCacheMaxObjectSize 2048
  </IfModule>
</IfModule>

<IfModule dir_module>
  #
  # DirectoryIndex: sets the file that Apache will serve if a directory
  # is requested.
  DirectoryIndex index.html
</IfModule>

<IfModule log_config_module>
  #
  # The following directives define some format nicknames for use with
  # a CustomLog directive (see below).
  LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
  LogFormat "%h %l %u %t \"%r\" %>s %b" common
  #
  # The location and format of the access logfile (Common Logfile Format).
  # If you do not define any access logfiles within a <VirtualHost>
  # container, they will be logged here.  Contrariwise, if you *do*
  # define per-<VirtualHost> access logfiles, transactions will be
  # logged therein and *not* in this file.
  CustomLog logs/access.log common
  #
  # If you prefer a logfile with access, agent, and referer information
  # (Combined Logfile Format) you can use the following directive.
  # CustomLog logs/access.log combined

  <IfModule logio_module>
    # You need to enable mod_logio.c to use %I and %O
    LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %I %O" combinedio
  </IfModule>
</IfModule>

<IfModule mime_module>
  TypesConfig "conf/mime.types"
  AddType application/x-compress .Z
  AddType application/x-gzip .gz .tgz
</IfModule>

<IfModule ssl_module>
  #
  # Note: The following must must be present to support
  # starting without SSL on platforms with no /dev/random equivalent
  # but a statically compiled-in mod_ssl.
  SSLRandomSeed startup builtin
  SSLRandomSeed connect builtin
</IfModule>



Was ich erreichen möchte ist es das die "statischen" Seiten gecached werden um möglichst schnell an die Clients geliefert zu werden.

Bin für jeden Hinweis auf das Problem dankbar.

Gruss
Gerrit
gbg
 
Posts: 1
Joined: 08. February 2007 15:27

Return to XAMPP für Windows

Who is online

Users browsing this forum: No registered users and 49 guests