Menu

#6 Nginx rewrite

v1.0 (example)
closed
None
5
2014-10-01
2010-02-06
Anonymous
No

Hi! Can you post nginx rewrite rules for webacula?

Discussion

  • Yuriy Timofeev

    Yuriy Timofeev - 2010-02-08
    • status: open --> open-accepted
     
  • Yuriy Timofeev

    Yuriy Timofeev - 2010-02-08

    RewriteEngine On
    RewriteCond %{REQUEST_FILENAME} -s [OR]
    RewriteCond %{REQUEST_FILENAME} -l [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule ^.*$ - [NC,L]
    RewriteRule ^.*$ /index.php [NC,L]

    ---------------------------------

    error_page 404 /index.php;

    location / {
    if (-f $request_filename) {
    root /var/www;
    }
    }

    location ~ .php$ {
    fastcgi_pass unix:/tmp/php.sock;
    fastcgi_index index.php;

    fastcgi_param SCRIPT_FILENAME /var/www/index.php;
    include /etc/nginx/fastcgi_params;
    }

     
  • Yuriy Timofeev

    Yuriy Timofeev - 2014-10-01
    • status: open-accepted --> closed
    • assigned_to: Yuriy Timofeev
    • Group: --> v1.0 (example)
     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.