執行及控制 Apache 程式位置
/usr/sbin/apachectl
預設 Config 路徑
/etc/apache2/httpd.conf
預設 Log 儲存路徑
/private/var/log/apache2/error_log
預設自訂 VirtualHost 設定檔
預設自訂 VirtualHost 設定檔
/private/etc/apache2/extra/httpd-vhosts.conf
VirtualHost 設定範例檔
NameVirtualHost andretw.com:80 NameVirtualHost andretw.com:443 <VirtualHost andretw.com:80> ServerAdmin [email protected] DocumentRoot "/Library/WebServer/Documents/andretw/src/" ServerName andretw.com ServerAlias www.andretw.com ErrorLog "/private/var/log/apache2/andretw.com-error_log" CustomLog "/private/var/log/apache2/andretw.com-access_log" common </VirtualHost> <VirtualHost andretw.com:443> SSLEngine on SSLCipherSuite ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP:+eNULL SSLCertificateFile /etc/apache2/ssl/server.crt SSLCertificateKeyFile /etc/apache2/ssl/server.key ServerName andretw.com ErrorLog "/private/var/log/apache2/ssl-andretw.com-error_log" CustomLog "/private/var/log/apache2/ssl-andretw.com-access_log" common DocumentRoot "/Library/WebServer/Documents/andretw/src/" </VirtualHost>
留言
張貼留言