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:
Code:
		location ~* ^.+\.(jpg|jpeg|gif|png|svg|js|css|mp3|ogg|mpe?g|avi|zip|gz|bz2?|rar)$ {
			root /var/www/user/data/www/test.domain.com;
			access_log /var/www/httpd-logs/test.domain.com.access.log ;
			access_log /var/www/nginx-logs/user isp;
		}
to this:

Code:
		location ~* ^.+\.(jpg|jpeg|gif|png|svg|js|css)$ {
			root /var/www/user/data/www/test.domain.com;
			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