Mac???ab??????????
?????balvender ???????[ 2017/7/7 10:45:34 ] ??????????????? ??????????
????Mac ???ab??????????
????1.??Mac??????Apache
?????????Apache???????
sudo apachectl -v
???????????Apache??汾
????sudo apachectl start
????????Apache????????Safari?????????????? “http://localhost”??????????????“It works!”?????
??????????????????
??????Apache?????????
??sudo vi /etc/apache2/httpd.conf
??????httpd.conf?????“#Include /private/etc/apache2/extra/httpd-vhosts.conf”?????????“??”?????沢????????????е?#??????/extra/httpd-vhosts.conf?????????????????????á?
????#Include /private/etc/apache2/extra/httpd-vhosts.conf
???????????Apache
??sudo apachectl restart
????????????????
sudo vi /etc/apache2/extra/httpd-vhosts.conf
???????????????????????httpd-vhost.conf????????????????????????????????????????????????????????????
????<VirtualHost *:80>
???? ServerAdmin webmaster@dummy-host.example.com
???? DocumentRoot "/usr/docs/dummy-host.example.com"
???? ServerName dummy-host.example.com
???? ErrorLog "/private/var/log/apache2/dummy-host.example.com-error_log"
???? CustomLog "/private/var/log/apache2/dummy-host.example.com-access_log" common
????</VirtualHost>
????<VirtualHost *:80>
???? ServerAdmin webmaster@dummy-host2.example.com
???? DocumentRoot "/usr/docs/dummy-host2.example.com"
???? ServerName dummy-host2.example.com
???? ErrorLog "/private/var/log/apache2/dummy-host2.example.com-error_log"
???? CustomLog "/private/var/log/apache2/dummy-host2.example.com-access_log" common
????</VirtualHost>
????????????????????
??<VirtualHost *:80>
???? DocumentRoot "/Library/WebServer/Documents"
???? ServerName localhost
???? ErrorLog "/private/var/log/apache2/localhost-error_log"
???? CustomLog "/private/var/log/apache2/localhost-access_log" common
????</VirtualHost>
????<VirtualHost *:80>
???? DocumentRoot "/Users/snandy/work"
???? ServerName mysites
???? ErrorLog "/private/var/log/apache2/sites-error_log"
???? CustomLog "/private/var/log/apache2/sites-access_log" common
????<Directory />
???? Options Indexes FollowSymLinks MultiViews
???? AllowOverride None
???? Order deny??allow
???? Allow from all
???? </Directory>
????</VirtualHost>
???????沢???
????:wq
??????
???·???
??????????????????
2023/3/23 14:23:39???д?ò??????????
2023/3/22 16:17:39????????????????????Щ??
2022/6/14 16:14:27??????????????????????????
2021/10/18 15:37:44???????????????
2021/9/17 15:19:29???·???????·
2021/9/14 15:42:25?????????????
2021/5/28 17:25:47??????APP??????????
2021/5/8 17:01:11