在RHEL中設定Apache Web Server

如果您已在基於RPM (RHEL、CentOS和Suse)的套件下安裝並保護Apache,則此程式適用。

應用以下步驟:

  1. httpd.conf檔案中,啟動下列Apache模組:

    alias
    authz_host
    mime
    
  2. 停用下列模組:

    auth_basic
    authn_file
    authz_default
    authz_user
    autoindex
    cgi
    dir
    env
    negotiation
    userdir
    

    註解連結至已停用模組的函式:

    DirectoryIndex
    IndexOptions
    AddIconByEncoding
    AddIconByType
    AddIcon
    DefaultIcon
    ReadmeName
    HeaderName
    IndexIgnore
    LanguagePriority
    ForceLanguagePriority
    
  3. /etc/httpd/conf.d/資料夾中建立Adobe Campaign專屬的設定檔。 例如CampaignApache.conf

  4. 針對​ RHEL7,請在檔案中新增下列指示:

    LoadModule requesthandler24_module /usr/local/neolane/nl6/lib/libnlsrvmod.so
    Include /usr/local/neolane/nl6/conf/apache_neolane.conf
    
  5. 針對​ RHEL7

    新增包含下列內容的/etc/systemd/system/httpd.service檔案:

    .include /usr/lib/systemd/system/httpd.service
    
    [Service]
    Environment=USERPATH=/usr/local/neolane LD_LIBRARY_PATH=/usr/local/neolane/nl6/lib
    

    更新系統使用的模組:

    systemctl daemon-reload
    
  6. 接著執行命令,將Adobe Campaign運運算元新增至Apache運運算元群組(反之亦然):

    usermod -a -G neolane apache
    usermod -a -G apache neolane
    

    要使用的群組名稱取決於Apache的設定方式。

  7. 執行Apache和Adobe Campaign伺服器。

    對於RHEL7:

    systemctl start httpd
    systemctl start nlserver