Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
litespeed_wiki:config:virtual-host-template [2015/07/30 19:47]
Michael Alegre created
litespeed_wiki:config:virtual-host-template [2015/08/13 13:28] (current)
Michael Alegre [Default virtual host templates] Link update
Line 15: Line 15:
   * EasyRailsWithSuEXEC:​ This template is an easy way to set up Ruby on Rails applications. The template contains a context that causes scripts in the virtual host to be run with Ruby (and as the owner of the vhost'​s document root).   * EasyRailsWithSuEXEC:​ This template is an easy way to set up Ruby on Rails applications. The template contains a context that causes scripts in the virtual host to be run with Ruby (and as the owner of the vhost'​s document root).
  
-We have made other [[litespeed_wiki:#​custom_templates|custom templates]] that you can import into LSWS. Importation instructions are included in each template'​s guide, though all you have to do is copy the template (an XML file) into ''​$SERVER_ROOT/​conf/​templates/''​ and then add a template that is directed to the XML file in the WebAdmin console.+We have made other [[http://​open.litespeedtech.com/​mediawiki/​index.php/​Help:​Custom_Templates|custom templates]] that you can import into LSWS. Importation instructions are included in each template'​s guide, though all you have to do is copy the template (an XML file) into ''​$SERVER_ROOT/​conf/​templates/''​ and then add a template that is directed to the XML file in the WebAdmin console.
  
 ==== Making your own templates ==== ==== Making your own templates ====
Line 41: Line 41:
 First I go to the template centralConfigLog in WebAdmin console > Configuration > Virtual Host Template. First I go to the template centralConfigLog in WebAdmin console > Configuration > Virtual Host Template.
  
-{{vhost_template.png?​700}}+{{ :​litespeed_wiki:​vhost_template.png?​direct,​800px |}}
  
 Looking at the General settings (the General tab) I can see places where the name I choose for my member vhost will come into play. Looking at the General settings (the General tab) I can see places where the name I choose for my member vhost will come into play.
  
-{{vhost_template_general_settings.png?​700}}+{{ :​litespeed_wiki:​vhost_template_general_settings.png?​direct,​800px |}}
  
 I start to add a new member virtual host by going to the Template tab and clicking Add on the Member Virtual Hosts table. I start to add a new member virtual host by going to the Template tab and clicking Add on the Member Virtual Hosts table.
  
-{{add_member_vhost.png?​700}}+{{ :​litespeed_wiki:​add_member_vhost.png?​direct,​800px |}}
  
 I name my virtual host "​test"​. This will affect where files for this vhost should be put. Remembering the General settings, this new vhost will now have its virtual host root at ''​$SERVER_ROOT/​test''​. Its config file will be ''​$SERVER_ROOT/​conf/​test''​. It's access log (not pictured above) will be ''​$SERVER_ROOT/​logs/​test.access.log''​. I am OK with this, so I leave the Member Virtual Host Root setting blank. I name my virtual host "​test"​. This will affect where files for this vhost should be put. Remembering the General settings, this new vhost will now have its virtual host root at ''​$SERVER_ROOT/​test''​. Its config file will be ''​$SERVER_ROOT/​conf/​test''​. It's access log (not pictured above) will be ''​$SERVER_ROOT/​logs/​test.access.log''​. I am OK with this, so I leave the Member Virtual Host Root setting blank.
Line 55: Line 55:
 I hit save. I hit save.
  
-{{member_vhost_settings.png?​700}}+{{ :​litespeed_wiki:​member_vhost_settings.png?​direct,​800px |}}
  
 Now I have a new virtual host. I graceful restart to apply these changes. Now I have a new virtual host. I graceful restart to apply these changes.
  
-{{template_graceful_restart.png?​700}}+{{ :​litespeed_wiki:​template_graceful_restart.png?​direct,​800px |}}
  • Admin
  • Last modified: 2015/07/30 19:47
  • by Michael Alegre