Skip to main content

apache

Redirect WWW to NO WWW using .htaccess

Posted in

Inspired by No-www.org here's how to do a simple redirect from the www version to the non www version of the website.

  1. RewriteEngine On
  2. RewriteBase /
  3. RewriteCond %{HTTP_HOST} !^example.com$ [NC]
  4. RewriteRule ^(.*)$ http://example.com/$1 [L,R=301]

No space left on device: Cannot create SSLMutex

Posted in

I've encountered this issue recently on quite a few occasions when apache wouldn't restart. Haven't figured out why it happens. I could see there are a lot of semaphores left with:

ipcs -s | grep apache

so i've deleted them with

ipcs -s | grep apache | awk ' { print $2 } ' | xargs ipcrm sem

and it let me restart apache

thanks to http://carlosrivero.com/fix-apache---no-space-left-on-device-couldnt-cre... for the idea.

Web optimizations - cluster solution needed?

Ok, this is a very wide topic but I will try to touch some corners in the event somebody will need such ideas. This will be a series of articles that I will write as time permits.

What will be covered in these series:

- what is a cluster? http://www.at-byte.com/technology/web-optimizations-part-1-what-cluster
- why would i need a cluster? http://www.at-byte.com/technology/web-optimizations-part-2-why-would-i-n...
- web server optimizations

If you need more help on the topic feel free to add a comment or create a new post on the Forum

Syndicate content