sudo apachectl start[/restart/stop] #开启等 sudo apachectl -v #查看版本 sudo /usr/sbin/httpd -k start #当配置文件出错时,可通过这个方式查看具体出错位置
sudo vi /etc/apache2/httpd.conf
/Library/WebServer/Documents
sudo vi /etc/apache2/httpd.conf
237 DocumentRoot "/Users/username/wwwroot" 238 <Directory "/Users/username/wwwroot">
sudo vi /etc/apache2/httpd.conf
sudo vi /etc/apache2/extra/httpd-vhost.conf
<VirtualHost *:80>
ServerAdmin webmaster@dummy-host.example.com
DocumentRoot "/Users/username/wwwroot"
ServerName localhost
ErrorLog "/private/var/log/apache2/local-error_log"
CustomLog "/private/var/log/apache2/local-access_log" common
</VirtualHost>
<VirtualHost *:80>
ServerAdmin webmaster@dummy-host2.example.com
DocumentRoot "/Volumes/FAT/bugs"
ServerName wooyun.sb
ErrorLog "/private/var/log/apache2/wooyun-error_log"
CustomLog "/private/var/log/apache2/wooyun-access_log" common
<Directory "/Volumes/FAT/bugs">
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Require all granted
</Directory>
</VirtualHost>
<Directory "/Users/username/sites"> Options Indexes FollowSymLinks MultiViews AllowOverride None Require all granted # add 访问控制 Order Deny,Allow Deny from all #网上很多给出的方法不加这里,只有allow那里,实测并不适用,必须加上这一行~ Allow from 127.0.0.1 </Directory>
机械节能产品生产企业官网模板...
大气智能家居家具装修装饰类企业通用网站模板...
礼品公司网站模板
宽屏简约大气婚纱摄影影楼模板...
蓝白WAP手机综合医院类整站源码(独立后台)...苏ICP备2024110244号-2 苏公网安备32050702011978号 增值电信业务经营许可证编号:苏B2-20251499 | Copyright 2018 - 2025 源码网商城 (www.ymwmall.com) 版权所有