Configuring Apache HTTP Server
来源:互联网 发布:seo推广学院招聘 编辑:程序博客网 时间:2024/06/05 17:46
转载:http://help.adobe.com/en_US/FlashMediaServer/3.5_AdminGuide/WSE2A5A7B9-E118-496f-92F9-E295038DB7DB.html
Configuring Apache HTTP Server
About Apache HTTP Server
Enable Apache
Configure HTTP proxying
Deliver SWF files and HTML files over HTTP
Create web directories for applications
Deploying CGI programs
Using Apache as a WebDAV host
About Apache HTTP Server
Flash Media Server 3.5 includes Apache HTTP Server. If you install and enable the web server, you can deliver client SWF files, container HTML pages, and media assets from Flash Media Server. You can serve content over HTTP, as well as RTMP. In addition, you can serve video over HTTP progressive download as a fallback solution for web proxies that break RTMP or RTMPT.
The Flash Media Server installation of Apache is like the standard installation. You can use Apache documentation for most configuration tasks. The Apache root installation folder isRootInstall/Apache2.2. The web root isRootInstall/webroot.
Installation locations
The Apache server that installs with Flash Media Server differs from a standard Apache installation in the following ways:
The apachectl files are in the RootInstall/Apache2.2/manual/programs folder.
The httpd.conf file and the standard secondary configuration files are in the RootInstall/Apache2.2/conf folder.
The log files are in the RootInstall/Apache2.2/logs folder. For more information, seeMonitoring and Managing Log Files.
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
Enable Apache
When you install Flash Media Server and choose to install Apache, it is enabled by default. To manually enable Apache, edit the fms.ini and Adaptor.xml files.
Open the fms.ini file in a text editor.
Add port 80 to the ADAPTOR.HOSTPORT tag.
ADAPTOR.HOSTPORT = :1935, 80
To start and stop Apache when Flash Media Server starts and stops, set the SERVER.HTTPD_ENABLED parameter to true:
SERVER.HTTPD_ENABLED = true
Open the Adaptor.xml configuration file in a text editor.
If you have multiple adaptors, open the file for the adaptor you want to configure. The default Adaptor.xml file is located in theRootInstall\conf\_defaultRoot_ folder.
Set the enable attribute of the HttpProxy tag to "true", as in the following:
<HttpProxy enable="true" maxbuf="16384"> <Host port="80">${HTTPPROXY.HOST}</Host> </HttpProxy>
Set the value of the HTTPPROXY.HOST variable in theRootInstall/conf/fms.ini file. You can also remove the variable and set the value directly in theHost tag.
Save and validate the Adaptor.xml file.
Restart the server.
Configure HTTP proxying
Flash Media Server uses port 80 for RTMPT connections. HTTP connections by default use port 80. To allow Flash Media Server to serve media over HTTP when RTMPT is blocked, Flash Media Server proxies HTTP connections to port 8134.
Configure HTTP proxying in the RootInstall/conf/fms.ini file. In the fms.ini file, you can enable or disable proxying through theHTTPPROXY.HOST parameter. You can also specify the port to proxy to or proxy to a remote server.
To enable HTTP proxying, set a value for the HTTPPROXY.HOST parameter. The following default configuration proxies port 80 HTTP requests to local port 8134:
HTTPPROXY.HOST = :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
Deliver SWF files and HTML files over HTTP
Apache can deliver SWF files, HTML files, JPG files, and many other standard file types over HTTP. Place files that you want to deliver over HTTP in the correct folders. By default, Apache is configured to use following paths:
Path
Location
Example URL
/
RootInstall/Apache2.2/webroot
http://myFMSServer.com/app.swf
/cgi-bin
RootInstall/Apache2.2/cgi-bin
http://myFMSServer.com/cgi-bin/someScript.pl
/local-cgi-bin
RootInstall/Apache2.2/local-cgi-bin
http://myFMSServer.com/local-cgi-bin/someScript.pl
These folders are global, not application-specific. Any SWF files and HTML files you want to serve over HTTP must be in these folders or in application-specific folders. To create aliases for application-specific folders, edit the httpd.conf file.
Create web directories for applications
To have Apache serve content over HTTP, either use one of the predefined web directories or create a web directory for that application. To create a web directory for an application, add an alias to theRootInstall/Apache2.2/conf/httpd.conf file. For example, the following lines create an alias that points to the streams directory of an application called “hd”:
Alias /hd/ "applications/hd/streams/_definst_/" <Directory "applications/hd/streams/_definst_/"> Options Indexes MultiViews FollowSymLinks AllowOverride None Order allow,deny Allow from all </Directory>
Copy media files to the RootInstall/applications/hd/streams/_definst_/ folder to serve them over HTTP. For example, if a client requests http://fms.example.com/hd/someVideo.flv, Apache serves it the someVideo.flv file from theRootInstall/applications/hd/streams/_definst_/ folder.
For more information about editing the configuration file, see the Apache documentation atwww.apache.org.
Deploying CGI programs
By default, Apache is configured with the following global aliases:
Alias
Path
Notes
/cgi-bin/
RootInstall/Apache2.2/cgi-bin
Accessible to anyone through an HTTP call.
/local-cgi-bin/
RootInstall/Apache2.2/local-cgi-bin
Accessible only to Flash Media Server.
Apache assumes any file you place in the RootInstall/Apache2.2/cgi-bin folder is a CGI program. For example, if a client requests the URL http://fms.example.com/cgi-bin/someScript.pl, Apache attempts to execute the fileRootInstall/Apache2.2/cgi-bin/someScript.pl.
Files in the local-cgi-bin folder, on the other hand, are accessible only to Flash Media Server. If you have a CGI program used by server-side ActionScript, place it in the local-cgi-bin folder.
To change the location of the cgi-bin or the local-cgi-bin, edit the RootInstall/Apache2.2/conf/httpd.conf file.
Using Apache as a WebDAV host
You can configure the web server to act as a WebDAV host. For information, see the Apache HTTP Server version 2.2.9 documentation atwww.apache.org.
The following keywords are reserved words: open, close, send, idle, fcs, fms, crossdomain.xml, fpad. Reserved words cannot be used for directory names under the webroot directory or for anything else. If you have applications with these names, use custom aliases to give the HTTP virtual directories slightly different names from the RTMP applications, such as “open_”.
- Configuring Apache HTTP Server
- Installing and Configuring the Apache HTTP Server Plug-In (在weblogic 9.x 10.x上配置apache http server 插件)
- Configuring a Puppet Master Server with Passenger and Apache
- SVN+Apache HTTP Server
- Apache HTTP Server使用指南
- Apache HTTP Server
- Apache HTTP Server
- Apache http server 安装
- apache http server & tomcat
- Apache HTTP Server简述
- apache http server
- Apache http server 使用
- Install Apache 1.3 HTTP Server
- tomcat6配置apache http server
- apache http server配置大全
- Apache Http Server-Tomcat Mapping
- VirtualHost Examples - Apache HTTP Server
- Apache Http Server学习笔记
- 对于通过视频学习编程的建议
- POJ 3989 A hard Aoshu Problem 简单模拟
- 纪念918(81年过去了)
- 平台总线设备驱动模型——基础知识
- 平台总线设备驱动模型——代码分析
- Configuring Apache HTTP Server
- 总线平台驱动程序总结(修改版)
- csdn上怎么没有测试呢
- ipad2 升级ios6 3194 1604错误
- Delphi对象的方法能定义- 静态(static)、虚拟(virtual)、动态(dynamic)或消息处理(message)
- Error starting static Resources
- Use Microsoft SharePoint Designer 2010 to customize the list view 3---Parameter and Filter
- eclipse 操作的小实用技巧
- Editplus注册码自动生成