View Single Post
Old 05-21-2011, 01:05 AM   #7
Junior Member
Join Date: Jan 2011
Posts: 20
krisj is on a distinguished road
Default changing the template

what do I do to change the nginx.conf template ispmanager uses?

I have to add expire setting into the server locations.

e.g. I have to change the default ispmanager:
		location ~* ^.+\.(jpg|jpeg|gif|png|svg|js|css|mp3|ogg|mpe?g|avi|zip|gz|bz2?|rar)$ {
			root /var/www/user/data/www/;
			access_log /var/www/httpd-logs/ ;
			access_log /var/www/nginx-logs/user isp;
to this:

		location ~* ^.+\.(jpg|jpeg|gif|png|svg|js|css)$ {
			root /var/www/user/data/www/;
			access_log   off;
			expires      30d;
i would like this to be used as a default on my server, is it possible? or do I have to make my own manual script?
krisj is offline   Reply With Quote