mac xampp edusoho 设置

下载 edusoho 解压到 ~/Sites

创建软链接

ln -s ~/Sites/edusoho /Applications/XAMPP/xamppfiles/htdocs/edusoho

编辑 /Applications/XAMPP/etc/extra/http-vhosts.conf

<VirtualHost *:80>
ServerName soho.local
ServerAlias www.soho.local
DocumentRoot /Applications/XAMPP/xamppfiles/htdocs/edusoho/web
#LoadModule xsendfile_module modules/mod_xsendfile.so
#XSendFile On
#XSendFilePath /Applications/XAMPP/xamppfiles/htdocs/edusoho/web/files/
<Directory /Applications/XAMPP/xamppfiles/htdocs/edusoho/web/>
# enable the .htaccess rewrites
AllowOverride All
Order allow,deny
Allow from All
</Directory>
ErrorLog /var/log/apache2/soho_error.log
CustomLog /var/log/apache2/soho_access.log combined
</VirtualHost>

编辑 /etc/hosts

127.0.0.1 soho.local



你可能感兴趣的:(mac xampp edusoho 设置)