mac自带的apache配置开始停止重启

分类:技术最近更新:2026-04-15浏览:50348

mac自带的apache配置开始停止重启

终端开启apache

vbnet
#apache路径: etc/apache2 #开启apache: sudo apachectl start #重启apache: sudo apachectl restart #关闭apache: sudo apachectl stop

vhost.conf配置

vbnet
DocumentRoot "E:/working/zz/trunk" SetEnv WEB_PA_KEY 'b5a0c4ad' ServerName zz2.bobo.me

比较全的配置

vbnet
DocumentRoot "D:/phpstudy_pro/WWW/zz4" ServerName zz4.com ServerAlias zz4.com FcgidInitialEnv PHPRC "D:/phpstudy_pro/Extensions/php/php5.4.45nts" AddHandler fcgid-script .php FcgidWrapper "D:/phpstudy_pro/Extensions/php/php5.4.45nts/php-cgi.exe" .php Options FollowSymLinks ExecCGI AllowOverride All Order allow,deny Allow from all Require all granted DirectoryIndex index.php index.html SetEnv WEB_PA_KEY '123456'