Apache2實用的指令筆記

顯示已啟用的模組
apache2ctl -M

啟用模組
a2enmod rewrite

取消模組
a2dismod rewrite

顯示所有的網域目及目錄設定
apache2ctl -S

取消及使用設定
a2ensite default

我目前啟用的模組
# apache2ctl -M
Loaded Modules:
 core_module (static)
 log_config_module (static)
 logio_module (static)
 mpm_worker_module (static)
 http_module (static)
 so_module (static)
 actions_module (shared)
 alias_module (shared)
 auth_basic_module (shared)
 authn_file_module (shared)
 authz_default_module (shared)
 authz_groupfile_module (shared)
 authz_host_module (shared)
 authz_user_module (shared)
 autoindex_module (shared)
 cgi_module (shared)
 cgid_module (shared)
 deflate_module (shared)
 dir_module (shared)
 env_module (shared)
 fcgid_module (shared)
 headers_module (shared)
 include_module (shared)
 mime_module (shared)
 negotiation_module (shared)
 reqtimeout_module (shared)
 rewrite_module (shared)
 setenvif_module (shared)
 status_module (shared)
 suexec_module (shared)
Syntax OK

以及一些不錯的筆記文
http://pk5566.blogspot.tw/2011/01/ubuntuapache.html
張貼留言
技術提供:Blogger.