[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [cobalt-users] ASP engine spinning
- Subject: RE: [cobalt-users] ASP engine spinning
- From: Greg Hewitt-Long <cobaltusers@xxxxxxxxxxxxxxxxxxx>
- Date: Thu Oct 9 06:23:09 2003
- List-id: Mailing list for users to share thoughts on Sun Cobalt products. <cobalt-users.list.cobalt.com>
> > -----Original Message-----
>> From: Greg Hewitt-Long [mailto:cobaltusers@xxxxxxxxxxxxxxxxxxx]
>> Sent: Wednesday, October 08, 2003 8:47 AM
>> To: cobalt-users@xxxxxxxxxxxxxxx
>> Subject: [cobalt-users] ASP engine spinning
>>
>>
>> I have a virtual site which does NOT has ASP connected -
>> however, this domain was previously using ASP very heavily.
>> When requests come in for now non-existent asp pages, I
>> expected the 404 handler to cut it - but it doesn't!
>>
>> Instead of the user seeing 404 - the ASP engine sits spinning
>> it's wheels, and consuming large amounts of cpu.
>>
>> The problem is that this results in a load average of 2-3 -
>> and if this process is left unchecked, during the nightly
>> log-processing time (3-4AM) - I see a lav of 5-12.
>>
>> How can I force a domain to handle all ASP calls as errors
>> and either 404 them, or 301 them back to the front page of the site?
>
>Are you sure your /etc/httpd/conf/httpd.conf file is correct??
>If you open it up, and look under the section <VirtualHost> for you client, the line
>AddHandler .asp should be commented out for your client. If it is not, I would try to change it in the GUI and resave the site, to see if the httpd.conf file picks it up.
>Vidar
>>
>> tia
>>
> > Greg
Vidar,
I'm sure... here is the httpd.conf section for the site:
NameVirtualHost 65.125.145.37
<VirtualHost 65.125.145.37>
ServerName www.blahdomainmoving.com
ServerAdmin admin
DocumentRoot /home/sites/site16/web
ServerAlias blahdomainmoving.com
RewriteEngine on
RewriteCond %{HTTP_HOST} !^65.125.145.37(:80)?$
RewriteCond %{HTTP_HOST} !^www.blahdomainmoving.com(:80)?$
RewriteRule ^/(.*) http://www.blahdomainmoving.com/$1 [L,R]
RewriteOptions inherit
AliasMatch ^/~([^/]+)(/(.*))? /home/sites/site16/users/$1/web/$3
AddHandler cgi-wrapper .cgi
AddHandler cgi-wrapper .pl
AddHandler server-parsed .shtml
AddType text/html .shtml
</VirtualHost>
I've changed the domain to blahdomain.com - but otherwise it's a copy and paste. I already tried turning it on, then off in the gui to save it. The server STILL hangs a caspeng process if a non-existent .asp page is called.
In the mean time, I grabbed all the .asp pages from the server logs, and added them as 301 redirects in .htaccess to the main index page of the site - but that doesn't mean I have caught them all.
Can I wildcard them in the .htaccess file to say *.asp direct to index.shtml ?
I tried:
redirect 301 /*.asp http://www.blahdomain.com/
and
redirect 301 /\*.asp http://www.blahdomain.com/
Noi joy - does anyone know how to do this?
tia
Greg
--
E-Commerce Software & Web Design Services. http://webyourbusiness.com
Reliable Web Hosting from $4.99/month - http://www.aaabusinesshosting.com/
Domain Registration from $13/year - http://aaabusinesshosting.com/domains/
TF: 1-877-416-8655 PH: (970) 266-0195 FAX: (970) 266-0158