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 - 09-04-2015

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 - 09-04-2015

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 - 09-04-2015

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




install on nginx - sunix - 12-05-2015

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 - 12-05-2015

here is my htaccess code:

RewriteEngine On

RewriteBase /

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

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

http://../admin work
http://../gallery1 work
http://../gallery1/image1.jpg.html didn't work




install on nginx - acrylian - 13-05-2015

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




install on nginx - sunix - 13-05-2015

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 - 13-05-2015

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 …