ccgi down
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Plusnet Community
- :
- Forum
- :
- Help with my Plusnet services
- :
- Everything else
- :
- Re: ccgi down
Re: ccgi down
18-03-2010 6:06 AM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
As my code behaved differently before the change, do you know what we were using before?
Tony
Re: ccgi down
18-03-2010 9:02 AM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
One of our aims with the new platform is that everything will use standard debian packages, so when vulnerabilities are found in the software we're using (which is inevitable) we'll be able to upgrade it a lot easier than the old platform. As a result of this we should be able to keep the platform more secure and current going forward. As cgiwrap doesn't have a package in the current stable release of debian, we have gone with suexec instead.
Re: ccgi down
18-03-2010 9:21 AM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
Quote from: Ben We previously used a custom modified version of cgiwrap. It doesn't look like this is in current development.
... we have gone with suexec instead.
Thank you for the information.
I suspect that this will not just affect me. Reading between the lines, anyone with large/complex content-rich PHP pages, and those which reference other sites, will see blank pages for a long period until all of the content has been gathered and output. Then the whole page will be displayed at once - assuming that the browser has not timed out by then.
Tony
Re: ccgi down
18-03-2010 9:31 AM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
Quote from: Ben We previously used a custom modified version of cgiwrap.
Quote so when vulnerabilities are found in the software we're using (which is inevitable) we'll be able to upgrade it a lot easier than the old platform.
Hi Tony,
Unless I misunderstand the problem, it does look like mod deflate is blocking flush. Try:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
</head>
<body>
The page was<br>
<?php flush(); sleep(2); ?>
flushed with<br>
<?php flush(); sleep(2); ?>
success.<br>
</body>
</html>
Then flush your browser cache and add
SetEnv no-gzip dont-vary
to your .htaccess and try it again.
Gabe
Re: ccgi down
18-03-2010 9:46 AM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
Thank you - it worked.
I just added the line to the .htaccess, tried the original script and it operated exactly as it did before the ccgi update.
Thank you again, I can now go back to my real-time tracking.
Tony
Re: ccgi down
18-03-2010 10:00 AM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
I think the same thing will work in a filesmatch if anyone wants mixed bahaviour
<FilesMatch \.php$>
SetEnv no-gzip 1
</FilesMatch>
and similar.
Gabe
Re: ccgi down
18-03-2010 11:11 AM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
I've just noticed that our company web site is down. Looks like it may be our .htaccess file causing a problem since the ccgi server change over.
The site is accessable via the correct domain/page url (and any rewrites domain name & folder location occur corrrectly).
However the rewrite to the correct folder is not working correctly when using just the www.domain.co.uk.
I'm hoping someone could point me in the right direction please:
RewriteEngine On
# stop recursive looping
RewriteCond %{ENV:REDIRECT_STATUS} 200
RewriteRule .* - [R=301,L]
# append forward slash if not ending in dot something
RewriteCond %{REQUEST_URI} !/$
RewriteCond %{REQUEST_URI} ![^.]*\.[^.]+$
RewriteCond %{HTTP_HOST} (.+)
RewriteRule ^(.*) http://%1/$1/ [R=301,L]
# olddomain.co.uk
RewriteCond %{HTTP_HOST} ^olddomain.co.uk$ [nc]
RewriteRule ^(.*) http://www.mydomain.co.uk/$1 [R=301,L]
RewriteCond %{HTTP_HOST} ^www.olddomain.co.uk$ [nc]
RewriteRule ^(.*) http://www.mydomain.co.uk/$1 [R=301,L]
# olddomain.com
RewriteCond %{HTTP_HOST} ^olddomain.com$ [nc]
RewriteRule ^(.*) http://www.mydomain.co.uk/$1 [R=301,L]
RewriteCond %{HTTP_HOST} ^www.olddomain.com$ [nc]
RewriteRule ^(.*) http://www.mydomain.co.uk/$1 [R=301,L]
# mydomain.com
RewriteCond %{HTTP_HOST} ^mydomain.com$ [nc]
RewriteRule ^(.*) http://www.mydomain.co.uk/$1 [R=301,L]
RewriteCond %{HTTP_HOST} ^www.mydomain.com$ [nc]
RewriteRule ^(.*) http://www.mydomain.co.uk/$1 [R=301,L]
# www.mydomain.co.uk
RewriteCond %{HTTP_HOST} ^mydomain.co.uk$ [nc]
RewriteRule ^(.*) http://www.%{HTTP_HOST}/$1 [R=301,L]
RewriteCond %{HTTP_HOST} ^www.mydomain.co.uk$ [nc]
RewriteRule (.*) /mydomain/$1
# Prevent hot-linking of images etc
RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://(www\.)?mydomain.co.uk(/)?.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://(ccgi\.)?olddomain.plus.com(/)?.*$ [NC]
#RewriteRule \.(gif|jpg|js|css|swf|bmp|png|pdf)$ - [F,NC]
# Prevent .htaccess from being viewed
<Files .htaccess>
order allow,deny
deny from all
</Files>
cheers... Nick
Re: ccgi down
18-03-2010 12:49 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
Quote from: ninjanik RewriteCond %{HTTP_HOST} ^www.mydomain.co.uk$ [nc]
RewriteRule (.*) /mydomain/$1
Looks like that would loop. You'd need another condition:
RewriteCond %{REQUEST_URI} !^/~username/mydomain/
See page 2 of this thread.
The idiosyncratic way the old server dealt with php meant that this would have terminated without the second condition, but only for .php requests.
Gabe
Re: ccgi down
18-03-2010 2:25 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
I had looked at this but didn't fully understand what was going on with the current htaccess file.
Pleased to say I've got it working correctly now... just need to look at why the content management system has stopped functioning.
Re: ccgi down
18-03-2010 11:44 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
sure enough some wordpress installations had them and I believe I had an htaccess in the root directory to direct a www.mydomain.co.uk to it's folder in the cgi space but filezilla doesn't show any htaccess files whatsoever- have these all been deleted in the platform upgrade ?
so for every single folder on my cgi space I'm getting the 500 server error even though most of these folders were not associated with the root htaccess and I could navigate directly to them by entering: ccgi.username.force9.co.uk/myfolder/
any ideas ?
Re: ccgi down
18-03-2010 11:56 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
If anyone's .htaccess files had been deleted in the platform upgrade I'm sure it would have got a mention in this forum (mine weren't).
Re: ccgi down
19-03-2010 12:02 AM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
Re: ccgi down
19-03-2010 9:50 AM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
I can now navigate directly to folders on my cgi space.
Now all I have to do is deal with an .htaccess redirect.
Re: ccgi down
19-03-2010 10:36 AM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
Options +FollowSymlinks
RewriteEngine on
RewriteCond %{HTTP_HOST} ^www.534nm.co.uk$ [nc]
RewriteCond %{REQUEST_URI} !^/534/
RewriteRule (.*) /534/$1
permission is set to 640
I'm getting a 500 error even if I delete the Options +FollowSymlinks
Thanks
Re: ccgi down
19-03-2010 10:43 AM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
Quote RewriteCond %{HTTP_HOST} ^www.534nm.co.uk$ [nc]
RewriteCond %{REQUEST_URI} !^/534/
RewriteRule (.*) /534/$1
I think this should be:
RewriteCond %{HTTP_HOST} ^www.534nm.co.uk$ [nc]
RewriteCond %{REQUEST_URI} !^/~username/534/
RewriteRule (.*) /534/$1
Have a look at previous posts on page 2 and mine on this page - I had a similar issue (although mine was also looping)
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page