Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I installed ISPConfig on Ubuntu. It was configured for one NGinx install but I had to move to a different Nginx install. Now how can I make ISPConfig aware of this new location and forget about the other one? Thanks!

share|improve this question
    
I am not quite sure what you are asking, but, if you want to change the configuration path (i.e. where the vhost files go), modify: System > Server Config > [Server Name] > Web > Nginx Vhost config dir. If you have two copies of nginx installed, ensure the right one is being loaded via your init script. Try which nginx and whereis nginx to locate the installed copies. ISPConfig should (not quite certain that it does) launch the default one. –  cyberx86 Feb 8 '12 at 23:49
    
That's exactly what I wanted. Thank you! –  99miles Feb 9 '12 at 0:53
    
Great, I'll post it as an answer in that case. –  cyberx86 Feb 9 '12 at 1:01
add comment

1 Answer

up vote 0 down vote accepted

If you want to change the configuration path (i.e. where the vhost files go), modify:

System > Server Config > [Server Name] > Web > Nginx Vhost config dir

If you have two copies of nginx installed, ensure the right copy is being loaded via your init (or upstart) script.

  • Use which nginx - to find the default copy (i.e. what is run by using just 'nginx' without a path)
  • Use whereis nginx to locate other installed copies and relevant directories.

ISPConfig should (not quite certain that it does) launch the default one - either directly, or by using an init script (or the services command).

If you are a bit more adventurous, you can modify the way that ISPConfig works (e.g. the default vhost layout) by looking in the following files:

  • /usr/lib/ispconfig/server/conf/nginx_apps.vhost.master
  • /usr/lib/ispconfig/server/plugins-enabled/nginx_plugin.inc.php
share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.