<html><body bgcolor="#FFFFFF"><div>We've got drupal going with a simple try_files $uri $uri/ /path/to/drupal/index.php?q=$uri&$args;</div><div><br></div><div>In nginx 0.7 of course. <br><br>On May 16, 2009, at 9:09 AM, Claude Bing <<a href="mailto:tehbing@gmail.com">tehbing@gmail.com</a>> wrote:<br><br></div><div></div><blockquote type="cite"><div>Ok, I followed a tutorial online and was trying to get rewrite working on my server. Well, everything works ok except for my Photo gallery which is located in | <domain>/gallery |. I'll include my current config for the domain (wfto.cc and wfto.cc/gallery)<br>
========================<br>server {<br> listen 80;<br> server_name <a href="http://www.waterfortheoppressed.com"><a href="http://www.waterfortheoppressed.com">www.waterfortheoppressed.com</a></a> <a href="http://waterfortheoppressed.com">waterfortheoppressed.com</a>;<br>
<br> rewrite ^ <a href="http://wfto.cc"><a href="http://wfto.cc">http://wfto.cc</a></a> permanent;<br>}<br><br>server {<br> listen 80;<br> server_name <a href="http://www.wfto.cc"><a href="http://www.wfto.cc">www.wfto.cc</a></a> wfto.cc;<br><br><br> access_log /var/www/logs/wfto.cc.access.log;<br>
<br> location = / {<br> root /var/www/wfto.cc;<br> index index.php index.html index.htm;<br> }<br> location / {<br> root /var/www/wfto.cc;<br> index index.php index.html;<br>
<br> if (!-f $request_filename) {<br> rewrite ^(.*)$ /index.php?q=$1 last;<br> break;<br> }<br><br> if (!-d $request_filename) {<br> rewrite ^(.*)$ /index.php?q=$1 last;<br>
break;<br> }<br> error_page 404 /index.php;<br><br> # serve static files directly<br> location ~* ^.+.(jpg|jpeg|gif|css|png|js|ico)$ {<br> access_log off;<br>
expires 30d;<br> }<br> # redirect server error pages to the static page /50x.html<br> #<br> error_page 500 502 503 504 /50x.html;<br> location = /50x.html {<br> root /var/www/nginx-default;<br>
}<br><br> # proxy the PHP scripts to Apache listening on <a href="http://127.0.0.1:80">127.0.0.1:80</a><br> #<br> #location ~ \.php$ {<br> #proxy_pass <a href="http://127.0.0.1"><a href="http://127.0.0.1">http://127.0.0.1</a></a>;<br>
#}<br><br> # pass the PHP scripts to FastCGI server listening on <a href="http://127.0.0.1:9000">127.0.0.1:9000</a><br> #<br> location ~ \.php$ {<br> fastcgi_pass <a href="http://127.0.0.1:9000">127.0.0.1:9000</a>;<br>
fastcgi_index index.php;<br> fastcgi_param SCRIPT_FILENAME /var/www/wfto.cc$fastcgi_script_name;<br> include fastcgi_params;<br> }<br><br> # deny access to .htaccess files, if Apache's document root<br>
# concurs with nginx's one<br> #<br> location ~ /\.ht {<br> deny all;<br> }<br>}<br>}<br>========================<br><br>Claude<br clear="all"><br>-- <br><br><a href="http://www.brainyquote.com/quotes/authors/l/laurence_j_peter.html" target="_blank">Laurence J. Peter</a> - "Originality is the fine art of remembering what you hear but forgetting where you heard it."
</div></blockquote></body></html>