嗨,我想更改服务器面板为 CWP 的网站的根目录centos-web-panel
。我找到了一个说 change DocumentRoot
and directory
in的解决方案,httpd.conf
但我无法更改它,因为我的很多网站都使用此服务器。我想更改我的一个网站中的根文件夹。另外,我找到了另一个解决方案,它说编辑文件。
# nano /etc/httpd/conf.d/your_site.conf
并将此代码添加到文件中
<VirtualHost *:80>
DocumentRoot /var/www/html/your_site/public
ServerName your_domain
<Directory /var/www/html/your_site/>
AllowOverride All
</Directory>
</VirtualHost>
但不工作。我该怎么做?有任何解决方案或使用.htaccess
或自己的laravel
模板吗?
所以我想/public_html/
/public_html/public/
centos-web-panel
使用 Nginx更改为in i