【发布时间】:2021-10-18 17:54:24
【问题描述】:
我正在创建一个新的 .conf 文件 (LogServer.conf),以便可以通过浏览器访问应用服务器日志。但是每次我启动 httpd.conf 时,LogServer.conf 中的别名都不起作用,反之亦然。他们使用相同的pid。我对这些东西很陌生。你会帮忙吗?谢谢。
这是我的 LogServer.conf
LoadModule mpm_event_module modules/mod_mpm_event.so
Listen sample.ar.sample.com:7777
LoadModule autoindex_module modules/mod_autoindex.so
LoadModule authz_core_module modules/mod_authz_core.so
LoadModule authn_core_module modules/mod_authn_core.so
LoadModule alias_module modules/mod_alias.so
ServerName sample.ar.sample.com:7777
DocumentRoot "/opt/IBM/WebSphere/AppServer/profiles/AppSrv01/logs"
Alias /WASLOGS "/opt/IBM/WebSphere/AppServer/profiles/AppSrv01/logs"
<Directory "/opt/IBM/WebSphere/AppServer/profiles/AppSrv01/logs">
AllowOverride None
Options +Indexes
IndexOrderDefault Descending Date
</Directory>
<IfModule mod_autoindex.c>
IndexOptions NameWidth=*
</IfModule>
这是我的 httpd.conf 中的 Listen 和 ServerName 值
Listen sample.ar.sample.com:8445
ServerName sample.ar.sample.com:8445
我正在使用以下命令启动它们:
./apachectl -f /opt/IBM/WebSphere/HTTPServer/conf/httpd.conf -k start
./apachectl -f /opt/IBM/WebSphere/HTTPServer/conf/LogServer.conf -k start
如果我先停止再启动LogServer.conf,再启动httpd.conf,我说它已经在特定PID下运行,但在websphere控制台中处于停止状态,无法从控制台启动.
请帮忙。谢谢
【问题讨论】:
标签: apache websphere httpd.conf mod-alias ibmhttpserver