the public_html dir is in /usr/local/wwwby the_traveller - Nginx Mailing List - English
I know i'm alittle bit annoying but can you show me how i must write the rule the path of the script jokes.php is in the public_html dir and it should talks the args like that jokes.php?j=$1 so in Apache i used to make the rule like that RewriteRule ^Joke/.* jokes.php but i alwayes have the sever error on all of my triesby the_traveller - Nginx Mailing List - English
Hi mr Igor I'm sory coz i toke alittle bit too long so if i have to make any ngnix rule i have to make it like that by ex: location /Joke/ { fastcgi_pass ... fastcgi_param SCRIPT_FILENAME /jokes.php; fastcgi_param QUERY_STRING $args; ... } and the Original Apache rule is RewriteRule ^Joke/.* jokes.php sposing that the script is in the public dir of the ftp is my tby the_traveller - Nginx Mailing List - English
First of all thank you very much mr Igor This is a great help for me but as i'm new to nginx so i'm little bit careful but i have afew more things to ask about do i have to make any defination to these params SCRIPT_FILENAME maindir which is used as fastcgi_param SCRIPT_FILENAME /path/to/script/pages.php; AND location /maindir/chat/ Or they just have to be written as they are??by the_traveller - Nginx Mailing List - English
;(by the_traveller - Nginx Mailing List - English
well first of all thank you for you quick reply .. but i've tried this tool and it's not working... i there any way to know the basics of the ngnix??? other wise look at the rewrite model rewrite ^/index(.*)$ /; rewrite ^/chat/.* /; rewrite ^/Songs(.*)$ /; rewrite ^/Jokes(.*)$ /; rewrite ^/Ash3ar(.*)$ /; rewrite ^/iraq/.* /; rewrite ^/Song/.* /; rewrite ^/Joke/.* /; rewrite ^/Poemby the_traveller - Nginx Mailing List - English
Please can you help me to convert this to nginx <IfModule mod_rewrite.c> RewriteEngine on # If you are having problems or are using VirtualDocumentRoot, uncomment this line and set it to your directory. # RewriteBase /maindir/ RewriteOptions MaxRedirects=30 RewriteCond %{ENV:REDIRECT_STATUS} 200 RewriteRule .* - RewriteCond %{REQUEST_FILENAME} -s RewriteCond %{REQUEST_FILby the_traveller - Nginx Mailing List - English