1.Complete directory password protection — The original author of the package inside,And can not do,The reason is that no judge status code 401.
2.Pseudo-static function — Whether you are ending or in html”/” The end of the URL address,The existence of the file / directory nginx will determine in advance the file system,If there is no,It will match the apache backend. The backend settings apache .htaccess file in accordance with,On display pages,Nginx front-end to get the content after compression,Visitors then passed to the browser.
3.Access log records accurate — The installation package author,Is nginx and apache share the same log file records .nginx recording static pages of information access,apache record dynamic page access information,Theoretically feasible, but in actual use,I found the problem. The problem is that a breach of the match when the suffix .html,At the same query front-end and back-end nginx apache. This resulted in duplicate log. Another is the number does not match any suffix,Only the front end of the process and records the visitor's request,It will initiate a request to query the back-end, but not because of the large file transfer is completed soon,So even set keepalive not help. In my installation package,I will be back-end user configuration Africa encryption port journaling canceled,Nginx entirely recorded by the distal end.
4.Log cutting issues — The problem from the front said the first 3:00 modifications,If you just modify the first 3:00 without performing this step,You will encounter a problem:When performing user access logs and cut into statistics page displayed to the user to see,The system will automatically delete the user's log,Cause the log access to the information after it lost nginx until the next reboot. After tracking log statistics cpanel process,Find / usr / local / cpanel / bin / safeapacherestart line. This line of action is to allow apache log after cutting can be safely restarted. The solution is to change a way of restarting nginx,I will be adding information to restart apache nginx restart command,After apache only need to perform command operations on it.
5.Pan-domain name resolution — cpanel support pan-domain name resolution,But also in terms of business as the host,Pan is also a feature of the domain name,We need to use it, but the author's version and my version before modifying,And no support for this conduct,Once the client has a pan-binding domain,We will not start the nginx,All users of the site affected. So this update contains this feature.
6.Proxy_cache based caching system — This is what I added,An optional feature. Delete cached method can follow squidclient manner. Unbuffered installed version http://icodex.org/public_nocache.tar
Also note,Netizens mentioned that string is a prompt to restart nginx after. This is a warning message prompts you to name the host for errors,It does not affect the use of.
Installation method and the same as the original author, please do the following installation!
cd /usr/local/src
wget http://icodex.org/public.tar
tar xf public.tar
cd publicnginx
./nginxinstaller install
After installing,Restart nginx,Excuting an order:/etc / init.d / nginx restart.Nginx configuration files are in / etc / nginx among,Each user binding domain(Additional fields,Subdomains etc.)They are in the / etc / nginx / vhosts
Uninstall:
After entering publicnginx execution ./nginxinstaller uninstall directory.