tag:blogger.com,1999:blog-7049058451661975624.post2167873647455817097..comments2023-10-28T23:46:48.097+10:00Comments on Ugly Gizmo: Installing AjaXplorer with Nginx on DebianGrant Carthewhttp://www.blogger.com/profile/06168148176627996792noreply@blogger.comBlogger9125tag:blogger.com,1999:blog-7049058451661975624.post-34879660409919478772014-02-03T12:59:29.280+10:002014-02-03T12:59:29.280+10:00Hi Almaz,
Hey, thanks so much for the advice. I ...Hi Almaz,<br />Hey, thanks so much for the advice. I just installed APC after reading up on it. Easy to do - apt-get install php-apc<br />It seems to be twice as fast as it was before.<br />Thanks again,Grant Carthewhttps://www.blogger.com/profile/06168148176627996792noreply@blogger.comtag:blogger.com,1999:blog-7049058451661975624.post-31494208293446116942014-02-03T12:16:50.827+10:002014-02-03T12:16:50.827+10:00Just install APC or other accelerator to speed up ...Just install APC or other accelerator to speed up php. It'll work much faster.Almazhttps://www.blogger.com/profile/04233355320043553338noreply@blogger.comtag:blogger.com,1999:blog-7049058451661975624.post-37080934129498669832013-11-19T10:50:47.759+10:002013-11-19T10:50:47.759+10:00To be honest Rubens, I don't use the public sh...To be honest Rubens, I don't use the public share options of AjaXplorer so I haven't hit this issue.<br /><br />Is there a better way? I don't have time to look into it now.Grant Carthewhttps://www.blogger.com/profile/06168148176627996792noreply@blogger.comtag:blogger.com,1999:blog-7049058451661975624.post-67831921566293414712013-11-19T00:54:27.362+10:002013-11-19T00:54:27.362+10:00Solved but it could be dangerous and not so useful...Solved but it could be dangerous and not so useful:<br /><br />location ^~ /public/ { allow all; }<br />location ^~ /conf/ { allow 127.0.0.1; deny all; }<br />location ^~ /data/cache/ { allow 127.0.0.1; allow all; }<br />location ^~ /data/files/ { allow 127.0.0.1; deny all; }<br />location ^~ /data/logs/ { allow 127.0.0.1; deny all; }<br />location ^~ /data/personal/ { allow 127.0.0.1; deny all; }<br />location ^~ /data/plugins/ { allow 127.0.0.1; deny all; }<br />location ^~ /data/tmp/ { allow 127.0.0.1; deny all; }<br />location = /robots.txt { access_log off; log_not_found off; }<br />location = /favicon.ico { access_log off; log_not_found off; }<br />location ~ /\. { access_log off; log_not_found off; deny all; }<br />location ~ ~$ { access_log off; log_not_found off; deny all; }<br /><br /><br />If we could make a nested location ecluding everything excepr /data/public/ it could be a good way.Rubens Rainellihttps://www.blogger.com/profile/10128471149054307333noreply@blogger.comtag:blogger.com,1999:blog-7049058451661975624.post-33400862477021420882013-11-19T00:18:09.668+10:002013-11-19T00:18:09.668+10:00I have some problems with drop.conf
If I use:
loc...I have some problems with drop.conf<br />If I use:<br /><br />location ^~ /conf/ { deny all; }<br />location ^~ /data/ { deny all; }<br />location = /robots.txt { access_log off; log_not_found off; }<br />location = /favicon.ico { access_log off; log_not_found off; }<br />location ~ /\. { access_log off; log_not_found off; deny all; }<br />location ~ ~$ { access_log off; log_not_found off; deny all; }<br /><br />It doesn't let me share any file to external users..<br /><br />If I use:<br />location ^~ /conf/ { deny all; }<br />location ^~ /data/public/ { allow all; }<br />location ^~ /data/ { deny all; }<br />location = /robots.txt { access_log off; log_not_found off; }<br />location = /favicon.ico { access_log off; log_not_found off; }<br />location ~ /\. { access_log off; log_not_found off; deny all; }<br />location ~ ~$ { access_log off; log_not_found off; deny all; }<br /><br />It download the public ".php" file and not show it<br /><br />If I use:<br />location ^~ /conf/ { deny all; }<br />location ^~ /data/ { allow all; }<br />location = /robots.txt { access_log off; log_not_found off; }<br />location = /favicon.ico { access_log off; log_not_found off; }<br />location ~ /\. { access_log off; log_not_found off; deny all; }<br />location ~ ~$ { access_log off; log_not_found off; deny all; }<br /><br />It let me see my public file but also private files!<br /><br />Could I make an IF statement for hide all the contents of /data/ but show only /data/public/<br />?Rubens Rainellihttps://www.blogger.com/profile/10128471149054307333noreply@blogger.comtag:blogger.com,1999:blog-7049058451661975624.post-48585712018464893122013-07-18T12:43:38.524+10:002013-07-18T12:43:38.524+10:00Thanks for the feedback G.
I had a close look at t...Thanks for the feedback G.<br />I had a close look at the location directive (http://wiki.nginx.org/HttpCoreModule#location) and agree with you with a slight change. Rather than replacing the = with a ~, us a ^~ which halts searching once a match is found.<br />I have updated the article.Grant Carthewhttps://www.blogger.com/profile/06168148176627996792noreply@blogger.comtag:blogger.com,1999:blog-7049058451661975624.post-47717301555449085202013-07-18T04:36:18.396+10:002013-07-18T04:36:18.396+10:00In drop.conf you shoul use "~" instead o...In drop.conf you shoul use "~" instead of "=".Ghttps://www.blogger.com/profile/10619919316972774084noreply@blogger.comtag:blogger.com,1999:blog-7049058451661975624.post-58414886137598588602013-06-07T09:08:59.274+10:002013-06-07T09:08:59.274+10:00Thanks for the comment Alberto.
Yes, it runs real...Thanks for the comment Alberto.<br /><br />Yes, it runs really slow but works ok. I am not using the AjaXplorer as the primary file access tool so it does not bother me. It is too slow to use as your only access solution.<br /><br />My Raspberry Pi has Samba, AjaXplorer and Deluge running on it. It is my primary file server at home and AjaXplorer is really more for remote access for the odd file here and there.<br /><br />I am interested in the Desktop client when it is complete.Grant Carthewhttps://www.blogger.com/profile/06168148176627996792noreply@blogger.comtag:blogger.com,1999:blog-7049058451661975624.post-1227096334198621102013-06-07T03:22:49.092+10:002013-06-07T03:22:49.092+10:00First of all, congratulations for such a nice post...First of all, congratulations for such a nice post.<br /><br />I followed your instructions to install AjaXplorer with a Raspberry Pi and, although I managed to make it work, it is slow as hell (much more than in my laptop). How does it run for you?<br /><br />I noticed that the Ram consumption raises until it only lefts about 32Mb free. <br />Thank you!Anonymoushttps://www.blogger.com/profile/16936393134497218547noreply@blogger.com