簡體   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