Configuring LAMP - Getting 403 Forbidden Error



我刚刚在Linux Mint 20.2上安装了LAMP服务器。我的网站文件位于/home/larry/Site/foxclone/public_html中。所有文件都是.php文件。项目名称为foxclone。当我在浏览器中访问foxclone时,我会得到一个403 Forbidden页面,而不是位于项目文件夹中的index.php。

foxclone.conf如下:

<VirtualHost *:80>
ServerName foxclone
ServerAdmin webmaster@localhost
DocumentRoot /home/larry/Sites/foxclone/public_html

ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined

</VirtualHost>

通过重新制作我的foxclone.conf.使其正常工作

最新更新