免费注册 查看新帖 |

Chinaunix

广告
  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 3439 | 回复: 5
打印 上一主题 下一主题

[Web] 修改httpd.conf 追加Alias 后,能否不重启apache,能生效 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2006-12-14 14:21 |只看该作者 |倒序浏览
在做apache的虚拟主机中

每次追加一个虚拟目录home-1,需要追加

Alias /home-1 "/usr/local/apache/htdocs/docs/home-1"
<Directory "/usr/local/apache/htdocs/docs/home-1">
        php_flag register_globals On
        php_admin_value open_basedir /usr/local/apache/htdocs/docs/home-1
</Directory>

各位能否有什么办法不通过重启apache,而使之配置生效呢

论坛徽章:
0
2 [报告]
发表于 2006-12-14 15:26 |只看该作者
hup

论坛徽章:
0
3 [报告]
发表于 2006-12-14 15:45 |只看该作者
如果动到apache的httpd.conf的话,好像都需要重新加载才能生效的,当然了,你可以使用reload进行加载,也可以使用restart或stop后再start,其他的?好像都不行吧!

论坛徽章:
0
4 [报告]
发表于 2006-12-14 15:57 |只看该作者
hup和reload都可以

论坛徽章:
0
5 [报告]
发表于 2006-12-14 17:22 |只看该作者
apachectl    reload


Usage: /usr/local/apache/bin/httpd [-D name] [-d directory] [-f file]
                                   [-C "directive"] [-c "directive"]
                                   [-k start|restart|graceful|graceful-stop|stop]
                                   [-v] [-V] [-h] [-l] [-L] [-t] [-S]
Options:
  -D name            : define a name for use in <IfDefine name> directives
  -d directory       : specify an alternate initial ServerRoot
  -f file            : specify an alternate ServerConfigFile
  -C "directive"     : process directive before reading config files
  -c "directive"     : process directive after reading config files
  -e level           : show startup errors of level (see LogLevel)
  -E file            : log startup errors to file
  -v                 : show version number
  -V                 : show compile settings
  -h                 : list available command line options (this page)
  -l                 : list compiled in modules
  -L                 : list available configuration directives
  -t -D DUMP_VHOSTS  : show parsed settings (currently only vhost settings)
  -S                 : a synonym for -t -D DUMP_VHOSTS
  -t -D DUMP_MODULES : show all loaded modules
  -M                 : a synonym for -t -D DUMP_MODULES
  -t                 : run syntax check for config files


出现这样的问题???

论坛徽章:
0
6 [报告]
发表于 2006-12-14 17:37 |只看该作者
httpd -k graceful
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP