Member
Member
sunix   09-04-2015, 17:26
#1

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?

Administrator
Administrator
fretzl   09-04-2015, 18:32
#2

Yes it is.
zenphoto.org runs on nginx.

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

Administrator
Administrator
acrylian   09-04-2015, 19:32
#3

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

Member
Member
sunix   12-05-2015, 18:23
#4

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

Member
Member
sunix   12-05-2015, 18:29
#5

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

Administrator
Administrator
acrylian   13-05-2015, 09:03
#6

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

Member
Member
sunix   13-05-2015, 18:27
#7

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

Administrator
Administrator
acrylian   13-05-2015, 18:43
#8

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 …

  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.