【问题标题】:Prestashop configuration multishopPrestashop 配置 multishop
【发布时间】:2019-09-23 22:26:23
【问题描述】:

我必须从 prestashop 1.6 迁移到 prestashop 1.7,在新版本中我创建了一个 multishop 站点。 我应该如何设置 httpd.conf 和相关站点的 conf 文件才能正常工作? 现在我的 conf 站点文件是:

 <VirtualHost *:80>
        ServerAdmin name@example.com
        ServerName www.example.it
    ServerAlias example.it
        DocumentRoot /home/sites/www.example.it/web/
        <Directory />
                Options FollowSymLinks
                AllowOverride None
        </Directory>
        <Directory /home/sites/www.example.it/web/>
                Options Indexes FollowSymLinks MultiViews
                AllowOverride None
                Order allow,deny
                allow from all
                Require all granted
        </Directory>
        AddType application/x-httpd-php .php5
        AddType application/x-httpd-php .php4
        AddType application/x-httpd-php .php
        RewriteEngine on
        #RewriteCond %{HTTPS} off
        #RewriteCond %{REQUEST_URI}              !^/.well-known/ [NC]
        #RewriteRule .* https://%{HTTP_HOST}%{REQUEST_URI} [NC,R=301,L]
       #RewriteOptions inherit
</VirtualHost>
<VirtualHost *:443>
        Include /etc/letsencrypt/options-ssl-apache.conf
        SSLCertificateKeyFile   /etc/letsencrypt/live/www.example.it/privkey.pem
        SSLCertificateFile      /etc/letsencrypt/live/www.example.it/cert.pem
        SSLCertificateChainFile /etc/letsencrypt/live/www.example.it/chain.pem
        ServerAdmin name@example.com
        ServerName www.example.it
    ServerAlias example.it
        DocumentRoot /home/sites/www.example.it/web
        <Directory />
                Options FollowSymLinks
                AllowOverride None
        </Directory>
        <Directory /home/sites/www.example.it/web>
                Options Indexes FollowSymLinks MultiViews
                AllowOverride None
                Order allow,deny
                allow from all
                Require all granted
        </Directory>
        AddType application/x-httpd-php .php5
        AddType application/x-httpd-php .php4
        AddType application/x-httpd-php .php
        Header always set Strict-Transport-Security "max-age=63072000; includeSubdomains;"
php_admin_value open_basedir "/home/sites/www.example.it:/home/sites/www.example.it/private:/home/sites/www.example.it/tmp:/tmp"
php_admin_value session.save_path "/home/sites/www.example.it/tmp"
php_admin_value upload_tmp_dir "/var/www/clients/client1/web1/tmp"
php_admin_value sendmail_path] "/usr/sbin/sendmail -t -i -f webmaster@example.it"
php_admin_value max_input_vars 10500
php_admin_value memory_limit 512M
php_admin_value max_execution_time 44000
php_admin_value upload_max_filesize 512M
        RewriteEngine on
        RewriteOptions inherit
    <Directory /home/sites/*/web>
       AllowOverride All
    </Directory>
</VirtualHost>

我应该在这个文件中添加或更改什么? 我还需要更改其他文件吗? 谢谢

【问题讨论】:

    标签: prestashop


    【解决方案1】:

    打开多商店选项时,您不必更改服务器的虚拟主机。你的配置有问题吗?

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2022-12-13
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-07-09
      • 2017-02-28
      • 1970-01-01
      相关资源
      最近更新 更多