2011년 9월 29일 목요일

[HTTP] Configuring the IBM HTTP Server - httpd.conf sample

Configuring the IBM HTTP Server to work with WebSphere Commerce Developer
Developerwork에 게시된 문서 중 http server 구성 샘플입니다.

Listing 1. httpd.conf configuration
# Enable this module and configuration for SSL support
LoadModule ibm_ssl_module modules/mod_ibm_ssl.so

SSLDisable
KeyFile "C:\WebSphere\IHS\SSLKeys\sslkeys.kdb"

# Example: Enable this module and configuration for tagging
# static content with expires dates
LoadModule expires_module modules/mod_expires.so

ExpiresActive on
ExpiresByType image/gif "access plus 3 days"
ExpiresByType image/png "access plus 3 days"
ExpiresByType image/jpeg "access plus 3 days"
ExpiresByType application/x-shockwave-flash "access plus 3 days"
ExpiresByType image/x-icon "access plus 3 days"
ExpiresByType text/javascript "access plus 3 days"
ExpiresByType application/x-javascript "access plus 3 days"
ExpiresByType text/css "access plus 3 days"
ExpiresDefault "access plus 3 days"

# Example: Enable these modules and configuration to setup a proxy route
LoadModule proxy_module modules/mod_proxy.so
LoadModule proxy_http_module modules/mod_proxy_http.so

ProxyRequests Off
ProxyPass /bvstaging/ http://555.555.555.555/bvstaging/
ProxyPassReverse /bvstaging/ http://555.555.555.555/bvstaging/

# Example: Enable this module to use the Apache mod_rewrite feature
LoadModule rewrite_module modules/mod_rewrite.so

# listen to ports 80 and 443 on the localhost machine
Listen 0.0.0.0:80
Listen 0.0.0.0:443

<VirtualHost *:80>
ServerName *
Alias /wcsstore "C:\IBM\WCToolkitEE60\workspace\Stores\WebContent"
Alias /wcs "C:\IBM\WCToolkitEE60\workspace\CommerceAccelerator\WebContent"

# Example: Turn on the rewrite engine.
RewriteEngine On

</VirtualHost>
<VirtualHost *:443>
SSLEnable
SSLClientAuth 0
ServerName *
Alias /wcsstore "C:\IBM\WCToolkitEE60\workspace\Stores\WebContent"
Alias /wcs "C:\IBM\WCToolkitEE60\workspace\CommerceAccelerator\WebContent"
</VirtualHost>

댓글 없음:

댓글 쓰기