我有一台 Apache 服务器,我想在其上修改一个网站。
网站已启动,apache 进程正在运行,我只需要修改网站的一行。
现在,当我修改我认为 apache 用来托管网站的文件时,没有任何变化,即使在 apache 重新启动后也是如此。
有什么简单的方法可以找出我的 Apache 服务器上运行着哪些网站以及该网站向最终用户推送了哪些文件?
apachectl status
这是我的命令的返回结果
user:server.domain.com> apachectl status
Apache Server Status for server.domain.com
Server Version: Oracle HTTP Server Powered by Apache/1.3.22 (Unix)
mod_plsql/3.0.9.8.5d mod_fastcgi/2.2.12 mod_perl/1.25 mod_oprocmgr/1.0
Server Built: Apr 26 2002 21:53:26
_________________________________________________________________
Current Time: Monday, 18-Jul-2016 16:02:31 EDT
Restart Time: Monday, 18-Jul-2016 05:00:02 EDT
Parent Server Generation: 0
Server uptime: 11 hours 2 minutes 29 seconds
Total accesses: 266 - Total Traffic: 706 kB
CPU Usage: u.15 s.233333 cu0 cs0 - .000964% CPU load
.00669 requests/sec - 18 B/second - 2717 B/request
1 requests currently being processed, 9 idle servers
__W_______......................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
Scoreboard Key:
"_" Waiting for Connection, "S" Starting up, "R" Reading Request,
"W" Sending Reply, "K" Keepalive (read), "D" DNS Lookup,
"L" Logging, "G" Gracefully finishing, "." Open slot with no current
process
答案1
运行apachectl -S
或httpd -S
查看定义的虚拟主机列表以及定义它们的配置文件。