Исправлена ошибка загрузки нескольких VirtualHost
NameVirtualHost *:80
Дефолтные настройки определены для всех хостов
master
PavelBelyaev 12 years ago
parent 8678651828
commit 2b9ba5253a

@ -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 '/<Directory "\/Library.*/,/<\/Directory>/ d' $Acnf
sed -ie 's|Include /private/etc/apache2/other/|#Include /private/etc/apache2/other/|g' $Acnf
echo '
NameVirtualHost *:80
<Directory /www>
Options FollowSymLinks
Options Indexes
AllowOverride All
Order allow,deny
Allow from all
AddType application/x-httpd-php .php
</Directory>' >> $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 '<VirtualHost *:80>
Allow from all
</Directory>
</VirtualHost>
' > /etc/apache2/sites-enabled/000-default
' > /etc/apache2/sites-enabled/100-default
echo '<?php echo "Hello World!"; ?>' > /www/localhost/index.php

@ -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"

Loading…
Cancel
Save