Modify / include nginx config
hi,
I'd like to add some stuff to nginx config special for one ore more vhosts. I'm using nginx with the default isp manager setup as a proxy. Is that possible? Where can i add my own stuff without it beeing removed by isp manager later? Thanks for helping. Frank |
ISPmanager can work with nginx. It uses nginx as front-end before apache. What system do you have? Nginx can be installed via Features menu.
|
I am alreay using nginx as a frontend proxy but i'd like to add some own config code to nginx config (or via include).
Is this possible without isp manager having overwrite it? The reason is i'd like to add some rules to fetch special static files from a worpdress+wp-supercache setup. These files are not directly called but have to be found via rules. The have to be added at vhost level - an include would be fine. |
Yes, you can add lines to nginx config and this include will not be overwritten
|
so i can just add a line within the server part of a vhost? for example here:
Code:
server { |
Add lines where you type "here"
|
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)$ { Code:
location ~* ^.+\.(jpg|jpeg|gif|png|svg|js|css)$ { |
Did you ever get this figured out? I'm at the same point now as you were.
|
No, this is did not possible
|
All times are GMT +2. The time now is 09:56 AM. |
Powered by vBulletin® Version 3.8.9
Copyright ©2000 - 2024, vBulletin Solutions, Inc.