[英]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"
别名/opcStore_1 "C:/xampp/htdocs/store"
别名/opcStore_2 "C:/xampp/htdocs/store"
添加该代码后,它看起来如何? 我在哪里添加它,外观应该如何? 因为我尝试放置它,但只收到错误的本地URL。 谢谢
现在,您必须从XAMPP
控制面板重新启动Apache服务器。 重新启动后,您必须在Opencart
配置中添加子存储。
多商店的OpenCart
配置。
对于第二家商店,请提供网址:“ 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”
假设您的主要商店是http://localhost/opencart-1.5.6.1
http://localhost/opencart-1.5.6.1/malaysia/
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/"
http://localhost/opencart-1.5.6.1/malaysia/
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.