From 2b9ba5253a1568a9e7d7a34d8d356777a3ec9c72 Mon Sep 17 00:00:00 2001 From: PavelBelyaev Date: Sun, 2 Mar 2014 13:34:46 +0600 Subject: [PATCH] v1.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Исправлена ошибка загрузки нескольких VirtualHost NameVirtualHost *:80 Дефолтные настройки определены для всех хостов --- lamp-on-mac.sh | 17 ++++++++++++++++- webhost_sync.sh | 2 +- 2 files changed, 17 insertions(+), 2 deletions(-) diff --git a/lamp-on-mac.sh b/lamp-on-mac.sh index d00ba19..49ffc6b 100755 --- a/lamp-on-mac.sh +++ b/lamp-on-mac.sh @@ -93,6 +93,21 @@ cp $Acnf $Acnf".back" sed -ie 's/#LoadModule php5_module/LoadModule php5_module/g' $Acnf sed -ie 's/DirectoryIndex index.html/DirectoryIndex index.php index.htm index.html/g' $Acnf sed -ie '// d' $Acnf +sed -ie 's|Include /private/etc/apache2/other/|#Include /private/etc/apache2/other/|g' $Acnf + +echo ' +NameVirtualHost *:80 + + + Options FollowSymLinks + Options Indexes + AllowOverride All + Order allow,deny + Allow from all + AddType application/x-httpd-php .php +' >> $Acnf + + #sed -e '/#.*$/ d' $Acnf echo 'Include /etc/apache2/sites-enabled/*' >> $Acnf echo 'Include /usr/local/phpmyadmin/apache.conf' >> $Acnf @@ -112,7 +127,7 @@ echo ' Allow from all -' > /etc/apache2/sites-enabled/000-default +' > /etc/apache2/sites-enabled/100-default echo '' > /www/localhost/index.php diff --git a/webhost_sync.sh b/webhost_sync.sh index 1500064..e721bac 100644 --- a/webhost_sync.sh +++ b/webhost_sync.sh @@ -4,7 +4,7 @@ #config d_prefix=".loc" vh_prefix="200-" -default_vh_file="000-default" +default_vh_file="100-default" d_www="/www" s_h="start auto web" e_h="end auto web"