Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I use nginx as DAV server and apache which hosts a frontend to backuppc.

I'd like to make nginx host the frontend insead of apache. But I don't have a clue how to translate apache settings to nginx ones. Can you help me with it? Is there a guide how to translate /etc/apache2/apache2.conf into /etc/nginx/nginx.conf

Despite apache2.conf is rather big, I found the only section related to the frontend.

# Include the virtual host configurations:
Include /etc/apache2/sites-enabled/
Alias /backuppc /usr/share/backuppc/cgi-bin/

<Directory /usr/share/backuppc/cgi-bin/>
    AllowOverride None
    Allow from all

        # Uncomment the line below to ensure that nobody can sniff importanti
        # info from network traffic during editing of the BackupPC config or
        # when browsing/restoring backups.
        # Requires that you have your webserver set up for SSL (https) access.

    Options ExecCGI FollowSymlinks
    AddHandler cgi-script .cgi
    DirectoryIndex index.cgi

    AuthGroupFile /etc/backuppc/htgroup
        AuthUserFile /etc/backuppc/htpasswd
    AuthType basic
    AuthName "BackupPC admin"
    require valid-user

share|improve this question
This question is more suitable for – Lekensteyn Feb 22 '12 at 13:01
Pretty much just have to learn nginx. Different than Apache configs but still just as easy... – user8290 Feb 23 '12 at 0:22
up vote 3 down vote accepted

There is ready to use config here.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.