Actions

Help

Difference between revisions of "1.4 VHost Config Change"

From OpenLiteSpeed Wiki

(Created page with "OpenLiteSpeed 1.4 features a change in where virtual host configuration files are stored by default. == New configuration structure == In OpenLiteSpeed versions before 1.4, ...")
 
Line 3: Line 3:
 
== New configuration structure ==
 
== New configuration structure ==
  
In OpenLiteSpeed versions before 1.4, virtual host configuration files were stored by default in a
+
In OpenLiteSpeed versions before 1.4, virtual host configuration files were stored by default in separated directories under <code>/usr/local/lsws/</code>. These directories were considered the virtual host root and often had a separate <code>/conf</code> directory within them. This could cause problems with the WebAdmin console if the WebAdmin user (<code>lsadm</code>) did not have access to these directories. Giving the WebAdmin console access to these directories, though, is a small security hole.
 +
 
 +
To fix this, starting with OpenLiteSpeed 1.4, we have moved the default location for virtual host configuration files to directories under <code>/usr/local/lsws/conf/vhosts</code>. For example, the configuration file for a virtual host named "Freddy" should now be placed in <code>/usr/local/lsws/conf/vhosts/Freddy/vhost.conf</code>. We recommend that all users use this structure.
 +
 
 +
== Upgrading from 1.3.x to 1.4.x ==
 +
 
 +
Configuration files are not moved when you upgrade from 1.3.x to 1.4.x. We recommend, though, that users move their virtual configuration files to this file layout.
 +
 
 +
[[Category:Help]] [[Category:Virtual Hosts]]

Revision as of 20:06, 28 August 2014

OpenLiteSpeed 1.4 features a change in where virtual host configuration files are stored by default.

New configuration structure

In OpenLiteSpeed versions before 1.4, virtual host configuration files were stored by default in separated directories under /usr/local/lsws/. These directories were considered the virtual host root and often had a separate /conf directory within them. This could cause problems with the WebAdmin console if the WebAdmin user (lsadm) did not have access to these directories. Giving the WebAdmin console access to these directories, though, is a small security hole.

To fix this, starting with OpenLiteSpeed 1.4, we have moved the default location for virtual host configuration files to directories under /usr/local/lsws/conf/vhosts. For example, the configuration file for a virtual host named "Freddy" should now be placed in /usr/local/lsws/conf/vhosts/Freddy/vhost.conf. We recommend that all users use this structure.

Upgrading from 1.3.x to 1.4.x

Configuration files are not moved when you upgrade from 1.3.x to 1.4.x. We recommend, though, that users move their virtual configuration files to this file layout.