如何在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
mysiteas your default site - Hit Save, then restart your Crafter CMS service (use
./startup.sh restarton 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(replaceCRAFTER_HOMEwith your actual install path) - Open the
crafter-config.xmlfile in a text editor - Locate the
<defaultSite>tag and update its value tomysite:<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
相关产品推荐
相关产品推荐

