
54
FLASH
MEDIA
SERVER
4.5
CONFIGURATION
AND
ADMINISTRATION
Configuring the server
Last updated 11/28/2012
•
The log files are in the
rootinstall
/Apache2.2/logs folder. For more information, see “
Monitoring and Managing Log
Files
” on page 95.
Alternate configurations
To do any of the following, edit the
rootinstall
/Apache2.2/conf/httpd.conf file:
•
Handle multiple adaptors or virtual hosts
•
Block sensitive file types, such as ASC
•
Handle any non-standard MIME types required for progressive download
•
Serve the default server-status and server-info pages
•
Modify source directories
Specify the maximum HTTP header line length
In the Flash Media Server Adaptor.xml file, the
MaxHeaderLineLength
element determines the size of the HTTP
header the server can handle. The default value for
MaxHeaderLineLength
is 1024 bytes. Some browsers send a header
larger than 1024 bytes. In this scenario, Apache sends back an empty response. To fix this issue, configure
MaxHeaderLineLength
to 8192.
Note:
By default, the Apache HTTP header size limit is 8 KB (8190 bytes plus a carriage return).
1
Open
rootinstall
/conf/Adaptor.xml in a text editor.
2
Edit the following line:
<MaxHeaderLineLength>8192</MaxHeaderLineLength>
3
Save the file.
4
Restart the server.
Enable and disable Apache and HTTP proxying
When you install Flash Media Server and choose to install Apache, it is enabled by default. Flash Media Server listens
on port 80 and proxies HTTP requests to Apache over port 8134.
Setting the parameter to no value disables HTTP proxying:
HTTPPROXY.HOST =
To proxy to a remote server, set the parameter to the remote server you want to use:
HTTPPROXY.HOST =
webfarm.example.com
:80
Enable Apache and HTTP proxying
1
Open the fms.ini file in a text editor.
2
Add port 80 to the
ADAPTOR.HOSTPORT
tag.
ADAPTOR.HOSTPORT = :1935, 80
3
To start and stop Apache when Flash Media Server starts and stops, set the
SERVER.HTTPD_ENABLED
parameter to
true
:
SERVER.HTTPD_ENABLED = true
4
Do one of the following:
•
Open
rootinstall
/conf/fms.ini and set the value of the
HTTPPROXY.HOST
variable to 8134: