/ 环境配置
分类:环境配置来源:站内 最近更新:2017-09-10 20:16:11浏览:49704留言:0
终端开启apache
#apache路径: etc/apache2 #开启apache: sudo apachectl start #重启apache: sudo apachectl restart #关闭apache: sudo apachectl stop
vhost.conf配置
<VirtualHost *:80> DocumentRoot "E:/working/zz/trunk" SetEnv WEB_PA_KEY 'b5a0c4ad' ServerName zz2.bobo.me </VirtualHost>
比较全的配置
<VirtualHost *:80> 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 <Directory "D:/phpstudy_pro/WWW/zz4"> Options FollowSymLinks ExecCGI AllowOverride All Order allow,deny Allow from all Require all granted DirectoryIndex index.php index.html SetEnv WEB_PA_KEY '123456' </Directory> </VirtualHost>