|
|
|
|
||||||
| alt.apache.configuration Apache web server configuration issues. |
![]() |
|
|
LinkBack | Outils de la discussion |
|
|
#1 |
|
Messages: n/a
Hébergeur: |
I had this problem with my old VPS, and I am having it again with my
new VPS, so I think it must be something with my apache configuration. My website: http://www.ipalaces.org sometimes won't load the correct CSS files or sometimes will just skip completely certain files. You can see this best in firefox (firebug too) when you load the page, then clear the cache and keeping loading the page 4 times out of 10 it will most likey skip things it should download (pictures, css files). Here is my apache config: # This is here for backwards compatability reasons and to support # installing 3rd party modules directly via apxs2, rather than # through the /etc/apache2/mods-{available,enabled} mechanism. # #LoadModule mod_placeholder /usr/lib/apache2/modules/ mod_placeholder.so LoadModule proxy_module /usr/lib/apache2/modules/mod_proxy.so LoadModule proxy_http_module /usr/lib/apache2/modules/ mod_proxy_http.so LoadModule cache_module /usr/lib/apache2/modules/mod_cache.so LoadModule rewrite_module /usr/lib/apache2/modules/mod_rewrite.so LoadModule deflate_module /usr/lib/apache2/modules/mod_deflate.so <IfModule mod_cache.c> #LoadModule disk_cache_module /usr/lib/apache2/modules/ mod_disk_cache.so <IfModule mod_disk_cache.c> CacheRoot c:/cacheroot CacheSize 256 CacheEnable disk / CacheDirLevels 5 CacheDirLength 3 </IfModule> LoadModule mem_cache_module /usr/lib/apache2/modules/ mod_mem_cache.so <IfModule mod_mem_cache.c> CacheEnable mem / MCacheSize 4096 MCacheMaxObjectCount 100 MCacheMinObjectSize 1 MCacheMaxObjectSize 2048 </IfModule> </IfModule> <IfModule mod_deflate.c> SetOutputFilter DEFLATE SetInputFilter DEFLATE BrowserMatch ^Mozilla/4 gzip-only-text/html BrowserMatch ^Mozilla/4\.0[678] no-gzip #BrowserMatch \bMSIE !no-gzip !gzip-only-text/html BrowserMatch \bMSIE\s7 !no-gzip !gzip-only-text/html SetEnvIfNoCase Request_URI \.(?:gif|jpe?g|png|wav|mp3|zip|rar| pdf|t?gz)$ no-gzip dont-vary DeflateCompressionLevel 9 DeflateFilterNote Input instream DeflateFilterNote Output outstream DeflateFilterNote Ratio ratio LogFormat '"%r" %{outstream}n/%{instream}n (%{ratio}n%%)' deflate CustomLog /var/log/apache2/deflate_log deflate </IfModule> NameVirtualHost * <VirtualHost *> ServerName ipalaces.org ServerAdmin webmaster@ipalaces.org DocumentRoot /var/www/ <Directory /var/www/> Options Indexes FollowSymLinks MultiViews AllowOverride None Order allow,deny allow from all </Directory> ErrorLog /var/log/apache2/error.log LogLevel warn #CustomLog /var/log/apache2/access.log combined ServerSignature On RewriteEngine on RewriteCond % {HTTP_HOST} ^([^.]+) \.ipalaces\.org$ RewriteCond /home/ %1/ -d RewriteRule ^(. +) %{HTTP_HOST}$1 RewriteRule ^([^.]+)\.ipalaces\.org/media/ (.*) /home/$1/palace/media/$2 RewriteRule ^([^.]+)\.ipalaces \.org(.*) /home/$1/www$2 RewriteCond %{HTTP_HOST} ^free\.ipalaces\.org $ [NC] RewriteRule ^(.*)$ http://www.ipalaces.org/home/free.html [R=302] RewriteCond %{HTTP_HOST} ^ag\.ipalaces\.org $ [NC] RewriteCond %{REQUEST_URI} !^/media/ RewriteRule ^(.*)$ http://animegravity.page.tl/ [R=302] RewriteCond %{HTTP_HOST} opencanvas\.us$ [NC] RewriteCond %{REQUEST_URI} !^/media/ RewriteRule ^(.*)$ /home/fusium/www$1 RewriteCond %{HTTP_HOST} (palacecorazonyapache| glitterglampalace|castleintheskies|deviouskiss|enc hantedforestoflight| maniaisle|3rdcoastinc|amorepalace|angelicvisions|a vatarisland| avatarparadise|beautifuld|bombshellacademy|disneyu ponastar| everyonespalace|familywroldz|inuyashadreams|lyingf airytails| midgarpalace|oddzone|plasticcreationsdecaying|safe es|secretxdreams| sharkland|splashfactory|stormpalace|thirdcoastinc| twistidfantasy| urbanincc|urban-streets|butterflydreams2008|harrypotterpalace| butterflydreams2008|butterflydreams2008|newsiespal ace|ohdork| newsiespalace|harrypotterpalace|imperialdeck|photo graphsxo|focuspalace| focuspalace|vibeislove|soulsinferno)\.(com|net|org |us)$ [NC] RewriteCond %{REQUEST_URI} !^/media/ RewriteRule ^(.*)$ /home/%1/www$1 RewriteCond %{HTTP_HOST} (palacecorazonyapache| glitterglampalace|castleintheskies|deviouskiss|enc hantedforestoflight| maniaisle|3rdcoastinc|amorepalace|angelicvisions|a vatarisland| avatarparadise|beautifuld|bombshellacademy|disneyu ponastar| everyonespalace|familywroldz|inuyashadreams|lyingf airytails| midgarpalace|oddzone|plasticcreationsdecaying|safe es|secretxdreams| sharkland|splashfactory|stormpalace|thirdcoastinc| twistidfantasy| urbanincc|urban-streets|butterflydreams2008|harrypotterpalace| butterflydreams2008|butterflydreams2008|newsiespal ace|ohdork| newsiespalace|harrypotterpalace|imperialdeck|photo graphsxo|focuspalace| focuspalace|vibeislove|soulsinferno)\.(com|net|org |us)$ [NC] RewriteRule ^/media/(.*)$ /home/%1/palace/media/ $1 </VirtualHost> <VirtualHost *> ServerName panel.ipalaces.org ProxyPass / http://panel.ipalaces.org:10000/ ProxyPassReverse / http://panel.ipalaces.org:10000/ </VirtualHost> Is there anything an expert can see that is obviously causing problems? Another thing is that my server is pretty fast (maxes me out at 600 KB/s) yet it has a super slow network wait time for http requests, could this also be related to apache? Please I hope someone can point me in the right direct. |
|
|
|
#2 |
|
Messages: n/a
Hébergeur: |
Turns out it was the mod_cache.so.
But, to make this post non-useless, is there any optimization in my loadout that someone can suggest or spot that I am doing the overly hard way? |
|
![]() |
| Outils de la discussion | |
|
|