繁体   English   中英

[如何使用Opencart]在Xampp Localhost上进行多存储

[英]Opencart How To] Multi-Store on Xampp Localhost

是否有人在本地计算机上建立了Opencart多元存储库,让Xampp知道如何正确添加代码。 我已经投入了与Google一样多的教程,并且该论坛已经并且似乎无法弄清楚如何正确放置代码。 放置在http.conf文件中的外观示例将http.conf

这些教程要求我编辑Apache配置文件,为每个子存储添加“别名”。

别名/opcStore_1 "C:/xampp/htdocs/store"

别名/opcStore_2 "C:/xampp/htdocs/store"

  1. 转到此路径:C:\\ xampp \\ apache \\ conf \\
  2. 查找httppd.conf文件并打开
  3. 搜索“”部分,并在此部分中添加以下代码 ???

别名/opcStore_1 "C:/xampp/htdocs/store"

别名/opcStore_2 "C:/xampp/htdocs/store"

添加该代码后,它看起来如何? 我在哪里添加它,外观应该如何? 因为我尝试放置它,但只收到错误的本地URL。 谢谢

现在,您必须从XAMPP控制面板重新启动Apache服务器。 重新启动后,您必须在Opencart配置中添加子存储。

多商店的OpenCart配置。

  1. 登录到您的主要商店:C:/ xampp / htdocs / store / admin
  2. 转到:系统>设置,您可以在此处添加新商店。
  3. 在添加给商店URL时:对于第一家商店,给URL:“ http:// localhost / opcStore_1 /”

对于第二家商店,请提供网址:“ http:// localhost / opcStore_2 /”

会看起来像这样,最后我添加了5个子商店。

##重定向:允许您告诉客户端有关#曾经存在于服务器名称空间中但不再存在的文档的信息。 客户#将在其新位置对文档提出新请求。 #示例:#重定向永久/ foo http:// localhost / bar

 # # Alias: Maps web paths into filesystem paths and is used to # access content that does not live under the DocumentRoot. # Example: # Alias /webpath /full/filesystem/path # # If you include a trailing / on /webpath then the server will # require it to be present in the URL. You will also likely # need to provide a <Directory> section to allow access to # the filesystem path. # # ScriptAlias: This controls which directories contain server scripts. # ScriptAliases are essentially the same as Aliases, except that # documents in the target directory are treated as applications and # run by the server when requested rather than as documents sent to the # client. The same rules about trailing "/" apply to ScriptAlias # directives as to Alias. # ScriptAlias /cgi-bin/ "cgi-bin/" Alias /allbridaljewelry "C:/wamp/www/newStore" Alias /caketopshop "C:/wamp/www/newStore" 

别名/ myspecialparty“ C:/ wamp / www / newStore”别名/ superweddingday“ C:/ wamp / www / newStore”别名/ weddingfavorsmart“ C:/ wamp / www / newStore”

您可以在开发阶段(不是本地主机)检查此“ 如何设置我们自己的域” /

它是印尼语,但您可以尝试translate.google.com进行翻译。

希望对您有所帮助。

假设您的主要商店是http://localhost/opencart-1.5.6.1

  1. 创建您的多商店名称为Malaysia ),URL为http://localhost/opencart-1.5.6.1/malaysia/
  2. 打开文件C:\\ xampp \\ apache \\ conf \\ httpd.conf并在ScriptAlias /cgi-bin/ "C:/xampp/cgi-bin/"之后的代码中添加Alias /opencart-1.5.6.1/malaysia "C:/xampp/htdocs/opencart-1.5.6.1/"代码ScriptAlias /cgi-bin/ "C:/xampp/cgi-bin/"
  3. 重新启动Apache进程并尝试访问该URL http://localhost/opencart-1.5.6.1/malaysia/

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM