HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Installation/Configuration (http://www.howtoforge.com/forums/forumdisplay.php?f=27)
-   -   Make changes to nginx config stick (http://www.howtoforge.com/forums/showthread.php?t=58170)

harkman 3rd August 2012 11:08

Make changes to nginx config stick
 
Hello.


I'm new to ISPConfig and I have it running only for 24 hours now. I really like the system :)

I did purchase the manual, but unfortunately I was not able to find the information I actually need.

I have configured my server to run on nginx.
I changed the ispconfig vhost configuration of nginx and later on I had to run the update script to regenerate the CSR.

Unfortunately the update restored the original ispconfig vhost configuration.

Now my question is, how can I modify the ispconfig vhost in a update save way?

Any ideas anybody?

till 3rd August 2012 11:31

If you want to change some settings for alls ites, then edit the vhost config template file in /usr/local/ispconfig/server/conf/. If you want to add settings for one site, then add them in the nginx directives field on the options tab of the website.

Quote:

I did purchase the manual, but unfortunately I was not able to find the information I actually need.
The nginx directives field is described in the manual on page 101.

harkman 3rd August 2012 11:40

Thanks Till,

but I want to change the vhost ISPConfig is running on.
/etc/nginx/sites-available/ispconfig.vhost

AFAIK there is no directives field for the ISPConfig vhost?
And it is this config file that I want not to be changed on updates.

till 3rd August 2012 11:54

This file is managed by ispconfig directly, it is not intended that this file is altered manually.If you want to alter it anyway, then you might have to restore it after updates. Before you restore it you should ensure that your copy is still compatible with the new ispconfig version.

harkman 3rd August 2012 12:04

Ok. Thanks.

I will try to add my custom configuration to a seperate server definition in a seperate file. That should be update save.

--Jürgen


All times are GMT +2. The time now is 08:54.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.