Apache Notes

Restart Apache2

sudo apache2ctl graceful

Continuously Monitor Apache Error Log

sudo tail -f /var/log/apache2/error.log

Apache Configuration

Add a new VirtualHost to the Apache Config file

sudo vi /etc/apache2/sites-available/default

A simple VirtualHost entry

<VirtualHost *:80>  
  ServerName majorursa.net
  ServerAlias www.majorursa.net
  DocumentRoot /var/www/majorursalia/
</VirtualHost>   

A VirtualHost for a Drupal Site

<VirtualHost *:80>  
  ServerName majorursa.net
  ServerAlias www.majorursa.net
  DocumentRoot /var/www/majorursalia/drupal-6.22
  <Directory /var/www/majorursalia/drupal-6.22/>
    AllowOverride All
    Options None
    Order allow,deny
    Allow from all
  </Directory> 
</VirtualHost>   

Phusion Passenger

Do NOT start phusion passenger on a whim, forget about it and leave it Running!

  • Memory Hog!

Tags:

Category:

Add new comment

Filtered HTML

  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <blockquote> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.
By submitting this form, you accept the Mollom privacy policy.