You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

如何在Crafter CMS中设置默认站点,实现根路径直接访问?

Fixing Crafter CMS Root Path "No Site Set" Issue

Got it, let's get your root URL pointing directly to mysite instead of showing that "No Site Set" message. The problem is Crafter doesn’t have a default site configured to serve when you hit the root path—here are two straightforward ways to fix this:

Method 1: Use Crafter Studio UI (Easiest for Most Users)

  • Log into your Crafter Studio dashboard at http://<address>:<port>/studio
  • Click the menu icon in the top-left corner, then select Global Config
  • In the left sidebar, navigate to Site Configuration > Default Site
  • From the dropdown menu, pick mysite as your default site
  • Hit Save, then restart your Crafter CMS service (use ./startup.sh restart on Linux/macOS, or the equivalent startup script on Windows)

Method 2: Manually Edit the Config File

If you prefer working directly with config files or don’t have access to the Studio UI:

  • Navigate to your Crafter installation’s Tomcat webapps root directory: CRAFTER_HOME/bin/apache-tomcat/webapps/ROOT/WEB-INF (replace CRAFTER_HOME with your actual install path)
  • Open the crafter-config.xml file in a text editor
  • Locate the <defaultSite> tag and update its value to mysite:
    <defaultSite>mysite</defaultSite>
    
  • Save the file, then restart your Crafter service to apply the change

Verify the Fix

After restarting, head to http://<address>:<port>/—you should land directly on your mysite without needing to append the ?crafterSite=mysite parameter anymore.

内容的提问来源于stack exchange,提问作者totali

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.05.28 06:31:26