Új hozzászólás Aktív témák

  • mobal

    nagyúr

    Tudnátok segíteni nginx-szel kapcsolatban? Sehogy nem tudom elérni, hogy működjön a rewrite. Minden szükséges dolog telepítve van, viszont ha valami paramétert kap akkor bedobja a default configot.

    Erről lenne szó: [link] - ami így jó is. Viszont így már nem: [link] (pedig jónak kéne lennie, default request ez).

    Itt a htaccess:

    # Turn on URL rewriting
    RewriteEngine On

    # Installation directory
    RewriteBase /

    # Protect hidden files from being viewed
    <Files .*>
    Order Deny,Allow
    Deny From All
    </Files>

    # Protect application and system files from being viewed
    RewriteRule ^(?:application|modules|system)\b.* index.php/$0 [L]

    # Allow any files or directories that exist to be displayed directly
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d

    # Rewrite all other URLs to index.php/URL
    RewriteRule .* index.php/$0 [PT]

    Ez konvertálódik belőle:

    # nginx configuration

    location /application {
    rewrite ^/(?:application|modules|system)\b.* /index.php/$0 break;
    }

    location /modules {
    rewrite ^/(?:application|modules|system)\b.* /index.php/$0 break;
    }

    location /system {
    rewrite ^/(?:application|modules|system)\b.* /index.php/$0 break;
    }

    location / {
    if (!-e $request_filename){
    rewrite ^(.*)$ /index.php/$0;
    }
    }

    location ~ \.* {
    deny all;
    }

Új hozzászólás Aktív témák