Virtual Host General
 
Table of Contents
General Document Root   Enable GZIP   Administrators' email   
Index Files Use Server Setting   Index Files   
Virtual Host Log Use Server Log   File Name   Log Level   Rolling Size   
Access Log Log Control   File Name   Log Referrer   Log User Agent   Rolling Size   Keep Days   
Expire Settings Enable Expires   Expires Default   
 
Document RootGo to top
Description: Specifies the document root for this virtual host. $VH_ROOT/html is recommended. This directory is referred as $DOC_ROOT in contexts.
Syntax: A path which can be absolute, or relative to $SERVER_ROOT, or relative to $VH_ROOT.
Apply: On the fly with reload.
Enable GZIPGo to top
Description: Specifies whether to enable GZIP compression for this virtual host. This setting is effective only when server level GZIP compression is enabled, i.e. virtual host can only turn off compression which is enabled at server level. Compression settings are configured at server level (Tuning-GZIP).
Syntax: Select from radio box
Apply: On the fly with reload.
Administrators' emailGo to top
Description: Specifies email address of administrators of this virtual host.
Apply: On the fly with reload.
Use Server SettingGo to top
Description: Specifies whether to use server's index file setting. If set to Yes, only server's setting will be used. If set to No, server's setting will not be used. If set to Addition, additional index files can be added to server's index file list for this virtual host. If you want to disable index files for this virtual host, you can set No and leave the index file field empty.
Syntax: Select from drop down list
Apply: On the fly with reload.
Index FilesGo to top
Description: Specifies the server level index file names. The specified index files will be searched sequentially when a URL is mapped to a directory. You can customize it at virtual host level.
Syntax: comma-separated list of name of index files
Apply: On the fly with reload.
Tips: [Performance] Only set index files that you really need.
Use Server LogGo to top
Description: Specifies whether to put log messages from this virtual host into server log file instead of creating its own log file.
Syntax: Select from radio box
Apply: On the fly with reload.
File NameGo to top
Description: Specifies the server log file.
Syntax: File name which can be an absolute path or relative to $SERVER_ROOT.
Apply: On the fly with reload.
Tips: [Performance] Place log file on a faster disk.
     Use separate disks for your web pages, log files, database and swapping directory.
Log LevelGo to top
Description: Specifies the level of logging. Available levels are ERROR, WARNING, NOTICE, INFO and DEBUG from high to low. Only messages with higher level than current setting will be logged. If you want to set it to DEBUG, you must set server log level to be DEBUG as well. The level of debugging is solely controlled by Debug Level.
Syntax: Select from drop down list
Apply: On the fly with reload.
Tips: [Performance] Use DEBUG only if you have to. Debug logging includes detailed information for each request and response; it has great impact on server performance and may fill up disk space quickly.
Rolling SizeGo to top
Description: Specifies when the current log file needs to be rolled over. When the file size is over the limit, the current log file will be renamed to your_log_name.mm_dd_yyyy(.sequence) in the same directory and a new log file will be created. The actual size of the rotated log file could be a little bigger.
Syntax: Integer number
Apply: On the fly with reload.
Tips: Append "K", "M", "G" to the number for kilo-, mega- and giga- bytes
Log ControlGo to top
Description: Specifies where to output access log. There are three options: 1. write to server's access log; 2. create its own access log; 3. disable access logging.
Syntax: Select from drop down list
Apply: On the fly with reload.
File NameGo to top
Description: Specifies the server level access log file. You can customize it at virtual host level.
Syntax: File name which can be an absolute path or relative to $SERVER_ROOT.
Apply: On the fly with reload.
Tips: [Performance] Put access log file on a separate or faster disk.
Log ReferrerGo to top
Description: Specifies whether to log Referrer HTTP header or not.
Syntax: Select from radio box
Apply: On the fly with reload.
Tips: [Performance] Turn it off if you do not care.
Log User AgentGo to top
Description: Specifies whether to log UserAgent HTTP header or not.
Syntax: Select from radio box
Apply: On the fly with reload.
Tips: [Performance] turn it off if you do not care.
Keep DaysGo to top
Description: Specifies for how many days the access log file will be preserved. Only rotated log file older than specified days will be removed, the current log file will not be touched no matter how many day's data it contains. If you want to keep all the old access log files or want to maintain by yourself, set this value to 0.
Syntax: Integer number
Apply: On the fly with reload.
Enable ExpiresGo to top
Description: Specifies whether to generate Expries header for static files. If enabled, Expires header will be generated based on Expires Default and Expires By Type. This can be set at server, virtual host and context level. Lower level settings will override higher level ones, i.e. context settings will override the virtual host settings and virtual host settings will override the server settings.
Syntax: Select from radio box
Apply: On the fly with reload.
Expires DefaultGo to top
Description: Specifies default settings for Expires header generation. This setting is effective when Enable Expires is set. It can be overridden by Expires By Type. Do not set this default at server or virtual host level unless you have to, since it will generate Expires header for all pages. Most of time this is set at context level for certain directories that do not change often. If there is no default settings, no Expires header will be generated for types not specified in Expires By Type.
Syntax: A|Mseconds
After base time(A|M) plus specified seconds, it will expire. Base time "A" means the client's access time and "M" means the file's last modified time.
Apply: On the fly with reload.