[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [cobalt-users] ASP engine spinning



> >> 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.

Greg,
1. You have tried restarting httpd and the asp engine, right??

2. You could also check your httpd.conf file to see if asp is enabled in the global section.
Globally would mean all directives that are outside of the <VirtualHost> directive. Is asp working on other sites it is not supposed to??

Vidar