Skocz do zawartości

Quam

Użytkownicy
  • Zawartość

    3
  • Rejestracja

  • Ostatnio

Posty napisane przez Quam


  1. Zrobiłem ale nie dziła coś sad.png "404 Not Found"

     

    server {
    listen 80;
    root /home/www/portal;
    index index.html index.htm index.php;
    
    # Make site accessible from http://localhost/
    server_name www.portal.domena.pl portal.domena.pl;
    
    location ~ \.php$ {
    fastcgi_split_path_info ^(.+\.php)(.*)$;
    include /etc/nginx/fastcgi_params;
    fastcgi_pass 127.0.0.1:9000;
    fastcgi_index index.php;
    fastcgi_param SCRIPT_FILENAME /home/www/portal/$fastcgi_script_name;
    }
    
    
    location / {
    root /home/www/portal;
    index index.php;
    rewrite ^/profile_show,(.*),(.*),nb.html?$ /index.php?act=profile_show&user=$1&step=$2&no_body=1 last;
    rewrite ^/profile_show,(.*)-(.*),(.*).html?$ /index.php?act=profile_show&user=$1&step=$3 last;
    rewrite ^/profile_show,(.*)-(.*).html?$ /index.php?act=profile_show&user=$1 last;
    
    rewrite ^/(.*),(.*),(.*),(.*),nb.html?$ /index.php?act=$1&step=$2&add=$3&add2=$4&no_body=1 last;
    rewrite ^/(.*),(.*),(.*),nb.html?$ /index.php?act=$1&step=$2&add=$3&no_body=1 last;
    rewrite ^/(.*),(.*),nb.html?$ /index.php?act=$1&step=$2&no_body=1 last;
    rewrite ^/(.*),(.*),(.*).html?$ /index.php?act=$1&step=$2&add=$3 last;
    rewrite ^/(.*),(.*).html?$ /index.php?act=$1&step=$2 last;
    rewrite ^/(.*).html?$ /index.php?act=$1 last;
    }
    


  2. Witam,

     

    Przsiadłem się z apache na Nginx. Nie potrafie poradzić sobie z htaccess nie wiem jak przerobić oraz czy trzeba cos podawać w nginx.conf. Proszę o pomoc osoby z większą wiedzą jak przerobić poprawnie ten plik.

     

     

     SetEnv PHP_VER 5
    
    Options +FollowSymLinks
    
    <IfModule mod_rewrite.c>
    RewriteEngine On
    
    # Profile Show #
    RewriteRule ^profile_show,(.*),(.*),nb.html?$ index.php?act=profile_show&user=$1&step=$2&no_body=1 [NC]
    RewriteRule ^profile_show,(.*)-(.*),(.*).html?$ index.php?act=profile_show&user=$1&step=$3 [NC]
    RewriteRule ^profile_show,(.*)-(.*).html?$ index.php?act=profile_show&user=$1 [NC]
    
    # Other #
    RewriteRule ^(.*),(.*),(.*),(.*),nb.html?$ index.php?act=$1&step=$2&add=$3&add2=$4&no_body=1 [NC]
    RewriteRule ^(.*),(.*),(.*),nb.html?$ index.php?act=$1&step=$2&add=$3&no_body=1 [NC]
    RewriteRule ^(.*),(.*),nb.html?$ index.php?act=$1&step=$2&no_body=1 [NC]
    RewriteRule ^(.*),(.*),(.*).html?$ index.php?act=$1&step=$2&add=$3 [NC]
    RewriteRule ^(.*),(.*).html?$ index.php?act=$1&step=$2 [NC]
    RewriteRule ^(.*).html?$ index.php?act=$1 [NC]
    </IfModule>

×