v1.1
Исправлена ошибка загрузки нескольких VirtualHost NameVirtualHost *:80 Дефолтные настройки определены для всех хостов
This commit is contained in:
@@ -93,6 +93,21 @@ cp $Acnf $Acnf".back"
|
|||||||
sed -ie 's/#LoadModule php5_module/LoadModule php5_module/g' $Acnf
|
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 's/DirectoryIndex index.html/DirectoryIndex index.php index.htm index.html/g' $Acnf
|
||||||
sed -ie '/<Directory "\/Library.*/,/<\/Directory>/ d' $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
|
#sed -e '/#.*$/ d' $Acnf
|
||||||
echo 'Include /etc/apache2/sites-enabled/*' >> $Acnf
|
echo 'Include /etc/apache2/sites-enabled/*' >> $Acnf
|
||||||
echo 'Include /usr/local/phpmyadmin/apache.conf' >> $Acnf
|
echo 'Include /usr/local/phpmyadmin/apache.conf' >> $Acnf
|
||||||
@@ -112,7 +127,7 @@ echo '<VirtualHost *:80>
|
|||||||
Allow from all
|
Allow from all
|
||||||
</Directory>
|
</Directory>
|
||||||
</VirtualHost>
|
</VirtualHost>
|
||||||
' > /etc/apache2/sites-enabled/000-default
|
' > /etc/apache2/sites-enabled/100-default
|
||||||
echo '<?php echo "Hello World!"; ?>' > /www/localhost/index.php
|
echo '<?php echo "Hello World!"; ?>' > /www/localhost/index.php
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
#config
|
#config
|
||||||
d_prefix=".loc"
|
d_prefix=".loc"
|
||||||
vh_prefix="200-"
|
vh_prefix="200-"
|
||||||
default_vh_file="000-default"
|
default_vh_file="100-default"
|
||||||
d_www="/www"
|
d_www="/www"
|
||||||
s_h="start auto web"
|
s_h="start auto web"
|
||||||
e_h="end auto web"
|
e_h="end auto web"
|
||||||
|
|||||||
Reference in New Issue
Block a user