ZenphotoCMS Forum
install on nginx - Printable Version

+- ZenphotoCMS Forum (https://forum.zenphoto.org)
+-- Forum: Support (https://forum.zenphoto.org/forum-1.html)
+--- Forum: General support (https://forum.zenphoto.org/forum-4.html)
+--- Thread: install on nginx (/thread-12202.html)



install on nginx - sunix - 2015-04-09

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?


install on nginx - fretzl - 2015-04-09

Yes it is.
zenphoto.org runs on nginx.

I have a live site running on nginx and mod-rewrite works just fine.


install on nginx - acrylian - 2015-04-09

Also see: http://www.zenphoto.org/news/nginx-rewrite-rules-tutorial


install on nginx - sunix - 2015-05-12

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


install on nginx - sunix - 2015-05-12

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


install on nginx - acrylian - 2015-05-13

htaccess does not work on Nginx … See the post I linked above.


install on nginx - sunix - 2015-05-13

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


install on nginx - acrylian - 2015-05-13

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 …