Sample Apache2 site-file

From SynchroEdit

(Difference between revisions)
Jump to: navigation, search

Revision as of 14:53, 11 April 2006

Sample Apache2 site-file

As of SynchroEdit client version 0.3 and above, the server has to be able to handle Perl CGI execution. The PHP requirement is as of version 0.3 removed from the solution.

This is a sample Apache2 site file (as in most sane linux distros resides in /etc/apache2/sites-available – if someone could fill this out with details on distros which handle this differently, that'd be nice):

<VirtualHost *>

     DocumentRoot /location/of/client/files/

     <Directory />
             Options FollowSymLinks
             AllowOverride None
     <Directory /location/of/client/files/>
             Options Indexes FollowSymLinks MultiViews ExecCGI
             AddHandler cgi-script .cgi
             AllowOverride None
             Order allow,deny
             allow from all

     ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/

     ErrorLog /var/log/apache2/synchroedit-error.log

     # Possible values include: debug, info, notice, warn, error, crit,
     # alert, emerg.
     LogLevel warn

     CustomLog /var/log/apache2/synchroedit-access.log combined
     ServerSignature On

Remember to restart Apache after modifying the site file.

You can test this by going to You should get something along the lines of:


You should not get something like:

[code stuff]
Personal tools