install on nginx

Is it possible to install zenphoto 1.47 on nginx server and make url rewrite work?
Anyone post your .conf file in /usr/local/nginx/vhost please?

Comments

  • fretzl Administrator, Developer
    Yes it is.
    zenphoto.org runs on nginx.

    I have a live site running on nginx and mod-rewrite works just fine.
  • sunix Member
    Thanks
    I use ngnix+apache as my httpd server indeed ,htaccess file locates under root fold of zenphtoto and rewrite function for each images does not work for now and it turns into 404 error. The album shows normally and big images on colorbox windows could show also but image pages can not show.

    please give me more hints
  • sunix Member
    here is my htaccess code:
    <IfModule mod_rewrite.c>
    RewriteEngine On

    RewriteBase /

    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule ^.*$ - [L]

    RewriteRule ^.*/?$ index.php [L,QSA]

    </IfModule>

    http://../admin work
    http://../gallery1 work
    http://../gallery1/image1.jpg.html didn't work
  • acrylian Administrator, Developer
    htaccess does not work on Nginx … See the post I linked above.
  • sunix Member
    Thanks acrylian
    I use apache and nginx togather. Apache is for php scripts and nginx is for static files.
    And it seems hataccess partly works as my post before
  • acrylian Administrator, Developer
    Ah, ok, didn't know that is possible at all. Our own server is completely nginx and our team member running it for us setup the post above because of that. I fear I cannot help …
Sign In or Register to comment.