Apache2 如何更改prestashop的默认Apache conf文件?
如何使prestashop在本地服务器上使用Apache2 如何更改prestashop的默认Apache conf文件?,apache2,prestashop,Apache2,Prestashop,如何使prestashop在本地服务器上使用prestashop.conf文件,该文件是000.default.conf的克隆 当我禁用000 default.conf时,不加载prestashop。 当我重新启用该功能时,网页将正常加载 我已经启用了prestashop.conf并重新加载/重新启动了Apache 我使用Apache2,Prestashop1.6.1,操作系统是LinuxMint 也许有人能给我建议,我还应该改变什么。到目前为止,我还没有找到解决办法 p.S.prestasho
prestashop.conf
文件,该文件是000.default.conf
的克隆
当我禁用000 default.conf
时,不加载prestashop。
当我重新启用该功能时,网页将正常加载
我已经启用了prestashop.conf
并重新加载/重新启动了Apache
我使用Apache2,Prestashop1.6.1,操作系统是LinuxMint
也许有人能给我建议,我还应该改变什么。到目前为止,我还没有找到解决办法
p.S.prestashop.conf是
000 default.conf
的完整克隆。您是否更改了路径以匹配您网站的路径
<VirtualHost *:80>
ServerAdmin youradminlogin@yourwebsite.com
DocumentRoot "path/of/your/website"
ServerName website-name.com
Options All Indexes FollowSymLinks
<Directory "path/of/your/website">
DirectoryIndex index.html
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
Allow from all
Require local
</Directory>
</VirtualHost>
服务器管理员youradminlogin@yourwebsite.com
DocumentRoot“路径/您的/网站”
服务器名网站-name.com
选项所有索引都在符号链接之后
DirectoryIndex.html
选项索引跟随符号链接多视图
允许超越所有
命令允许,拒绝
通融
要求本地
使舒尔it处于/etc/apache2/sites启用状态/
修改此文件后,您需要重新启动服务器(sudo apachectl restart)我修改了一点prestashop.conf文件,其中包括一些示例中的字符串。但仍然没有成功。文件prestashop.conf是站点可用且站点已启用的。它已启用,apache已重新启动。当我在地址栏“localhost/prestashop/”中写入时,我收到一条消息,在
apache2.conf
中找不到请求的URL/prestashop/,在prestashop.conf
中有。
我写入了DocumentRoot/home/user/web/prestashop
并且之后是否在/etc/hosts中添加了prestashop.local“127.0.0.1”?是的,我有。但仍然没有。Apache配置中知识的泄露给我带来了问题。你试过用“index.php”代替“index.html”吗?