Articles of magento

Ubuntu 14.04 Apache + SSL服务器,如何configurationVarnish

我有一个运行在Apache2和SSL的Ubuntu 14.04服务器上的Magento。 我已经安装了Varnish,但不知道如何使用SSL进行设置,而不使用Nginx。 这是我目前的虚拟主机文件; <VirtualHost *:443> ServerName mysite.com ServerAlias www.mysite.com ServerAdmin webmaster@localhost DocumentRoot /var/www/mysite.com <Directory /var/www/mysite.com/> Options Indexes FollowSymLinks MultiViews AllowOverride All </Directory> SSLEngine on SSLCertificateFile /home/ssl/mysite_com.crt SSLCertificateKeyFile /home/ssl/mysite.com.key SSLCACertificateFile /home/ssl/mysite_com.ca-bundle ErrorLog ${APACHE_LOG_DIR}/error.log CustomLog ${APACHE_LOG_DIR}/access.log combined </VirtualHost> <VirtualHost *:80> ServerName mysite.com RewriteEngine On RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [L,R=permanent] </VirtualHost>

Nginx的Magentoconfigurationindex.php循环错误

我试图在Nginx上设置Magento,但不断收到以下错误 * 41在处理“/index.php”时重写或内部redirect周期 我的这个域的configuration文件如下,我用DOMAIN.inforeplace了我的域 我还评论了一些与SSL相关的部分,因为我还没有安装SSL 任何帮助将大规模赞赏。 server { # Listen on port 80 as well as post 443 for SSL connections. listen 80; listen 443 default ssl; server_name DOMAIN.info www.DOMAIN.info; # Specify path to your SSL certificates. #ssl_certificate /etc/nginx/certificates/yourcertificate.crt; #ssl_certificate_key /etc/nginx/certificates/yourcertificate.key; # Path to the files in which you wish to # store your access […]

Magento在Nginx – configuration

我正在运行一个nginx.conf来运行Magento,这个网站大部分工作,magento是使用php-fpm运行的。 但是它的某些部分仍然没有工作,我已经尝试了networking上的每一个wiki,博客等。 我的问题是,我有一个JavaScript的CMS页面和块popup,主要是tiny_mce所见即所得编辑器(/js/tiny_mce/plugins/advimage/image.htm等),他们打开一个page not found 。 我不知道该怎么做,所以这个编辑器显示正确。 另外,下载器不显示。 看起来,这些都使用自己的index.php在一个不同的文件夹比根目录,所以我应该改变的索引? 像$document_root/downloader/index.php ?

Magento + Nginxcaching+货币select器

我有一个Magento网站http://www.burdastyle.co.uk/ ,我正在努力,并且在更改货币时有一个问题。 货币select器应该添加一个cookie,其中包括“货币”键和所选货币的值,例如“USD”,“AUD”等。 该网站由nginx运行,它也使用nginxcaching。 我知道这是caching导致这不作为caching块的nginx conf的一部分是: fastcgi_hide_header "Set-Cookie"; 如果我删除该行,货币select器按预期工作,但是如果我在购物车中添加物品,并且其他人查看其购物车,则会显示刚刚添加的物品,因为它没有显示该行,所有的cookie值被caching并且被服务给所有最终用户。 完整的nginxcaching块是: location @fcgi_cache { fastcgi_pass phpfpm; #fastcgi_cache mage; fastcgi_cache mage_bs; fastcgi_cache_key "$mobile_request|$request_method|$http_if_modified_since|$http_if_none_match|$host|$request_uri|$cookie_currency"; fastcgi_hide_header "Set-Cookie"; if ($http_cookie !~ "X-Store=1" ) { add_header Set-Cookie "X-Store=1; path=/"; } fastcgi_ignore_headers "Cache-Control" "Expires" "Set-Cookie"; fastcgi_cache_min_uses 1; fastcgi_cache_valid 200 202 8h; fastcgi_cache_use_stale updating error timeout invalid_header http_500; fastcgi_cache_bypass $cookie_EXTERNAL_NO_CACHE $cookie_CUSTOMER_AUTH; fastcgi_no_cache $cookie_EXTERNAL_NO_CACHE […]

Magento 2在子文件夹Nginx中

在Ubuntu上使用Nginx的1.4.6,我试图configurationMagento 2在子文件夹中运行。 我已经在/var/www有一些其他的projets,它们是这样设置的: server { server_name website.com; root /var/www/; location /p1/ { # config } location /p2/ { # config } } 但是现在,我的Magento安装位于/mnt/storage/demo/demo-magento2 ,我无法find将其包含在此服务器块中的方法。 我尝试使用Nginx的示例configuration( https://github.com/magento/magento2/wiki/Nginx-Configuration-Settings-and-Environment-Variables )。 所以,我将这个位置块添加到我的服务器块configuration: location /demos/demo-magento2/ { set $MAGE_ROOT /mnt/storage/demo-magento2/; set $MAGE_MODE developers; include /mnt/storage/demo-magento2/nginx.conf.sample; } 而Nginx不断返回给我这个错误: 2015/10/19 18:15:04 [emerg] 6250#0: location "/setup" is outside location "/demos/demo-magento2/" in /mnt/storage/demo-magento2/nginx.conf.sample:27 对于Nginx来说,我很新,所以有人可以解释一下如何解决这个问题。

与Magento Magmi的hhvm nginx toString服务器错误

我试图在一个Magento应用程序上运行magmi产品导入插件,该应用程序运行在一个具有NGINX&HHVM的aws ec2实例上。 当我尝试在Magento上运行magmi产品导入应用程序时,我在我的hhvm错误日志中得到了下面的服务器错误。 /var/log/hhvm/error.log \nCatchable fatal error: Object of class Magmi_ProductImportEngine could not be converted to string in /var/www/qa-hoi/magmi-importer/inc/magmi_mixin.php on line 9 这是magmi_mixin.php文件 <?php class Magmi_Mixin { protected $_callers; public function bind($caller) { $this->_callers[]=$caller; $this->_callers=array_unique($this->_callers); // LINE 9 } public function unbind($caller) { $ks=array_keys($this->_callers,$caller); if(count($ks)>0) { foreach($ks as $k) { unset($this->_callers[$k]); } } } public […]

nginx multistore magento

我正在寻找一种在Magento的多存储环境中设置Nginx的方法。 我已经设置了服务器+ Nginx,添加了域名,这一切都很好。 不幸的是,通常在.htaccess中进行的调整不起作用。 我不知道在哪里添加(index.php?)。 所以我的问题是:如何使用multiurl设置multistore? (是的:我已经尝试过Magento手册,但它没有提到多核心)

Nginx + Magento在子文件夹中

我看了一下这里的相关话题,但是对我来说并没有把握。 所以这就是我正在做的。 我们正在从一台服务器转移到另一台服务器。 老一个运行Apache,新运行的是Nginx。 所以对于我们的一个网站,我们在http://mydomain.com上有一个WordPress的CMS网站,在http://mydomain.com/shop上有一个Magento安装 CMS运行没有问题。 如果说到店里我就卡住了。 显示Magento index.php – 迄今为止都是很好的。 但只要我试图在商店的其他地方导航,我遇到了404错误。 所以在重写时一定会有一些错误。 我尝试了很多没有用的东西。 所以这里来了我目前的虚拟主机configuration: server { listen 80; listen 443; server_name www.domain.de domain.de *.domain.de; root /var/www/domain.de/www.domain.de/htdocs; index index.php; access_log /var/log/nginx/domain_access.log; error_log /var/log/nginx/domain_error.log; error_page 403 /403.php; error_page 404 /404.php; error_page 500 /500.php; error_page 501 /500.php; error_page 502 /500.php; error_page 503 /500.php; location ~* \.(js|css|jpg|jpeg|gif|png|ico|swf)$ { […]

如何将CORS(跨域策略)添加到NGINX的所有域中?

我已经创build了一个文件夹,将用于提供静态文件(CSS,图像,字体和JS等),我最终将文件夹CNAME到一个CDN使用的子域以使用我的Magento 2设置。 我想要允许所有域通过CORS – 跨来源策略的所有访问,我也想caching数据。 这是我的。 (我不是要求在JSONP问题上提供安全build议或提示 – 我希望全局访问文件目录) location /cdn-directory/ { location ~* \.(ico|jpg|jpeg|png|gif|svg|js|css|swf|eot|ttf|otf|woff|woff2|zip|gz|gzip|bz2|csv|xml)$ { add_header Cache-Control "public"; add_header X-Frame-Options "ALLOW-FROM *"; expires +1y; } } 根据文档说, X-Frame-Options支持ALLOW-FROM uri但是看不到在这个ALLOW-FROM中使用* (所有域)或添加特定多个域的例子。 我需要允许所有域访问我的静态文件文件夹。

Magento的Nginx + PHP-FPM + FastCGIcachingconfiguration

你们中的一些人可能已经注意到了Magento最近发布的最近的Magento For Peak Performance白皮书。 尽pipe它主要是为EE用户编写的,但我相信我们也可以使用Community Edition的大部分技巧。 阅读好后,我继续将他们的Nginx + fastcgi / proxycachingconfiguration与我的标准虚拟主机configurationMagento合并,并做了一些小改进。 以下是我想到的: fastcgi_cache_path /tmp/fcgi levels=1:2 keys_zone=MAGE:64m max_size=128m inactive=10h; server { listen 99999; ## Nginx port server_name domain.com www.domain.com; root /www/magento; ## App folder index index.php; location ~* \.(js|css|png|jpg|jpeg|gif|ico)$ { expires max; access_log off; log_not_found off; } location /index { try_files $uri @fcgi_nocache; } location /checkout […]